userspace: Implement true and false utilities
This commit is contained in:
parent
5df0e25c1f
commit
42a10b21c7
|
@ -12,6 +12,7 @@ set(USERSPACE_PROGRAMS
|
||||||
DynamicLoader
|
DynamicLoader
|
||||||
echo
|
echo
|
||||||
env
|
env
|
||||||
|
false
|
||||||
getopt
|
getopt
|
||||||
http-server
|
http-server
|
||||||
id
|
id
|
||||||
|
@ -37,6 +38,7 @@ set(USERSPACE_PROGRAMS
|
||||||
sudo
|
sudo
|
||||||
sync
|
sync
|
||||||
tee
|
tee
|
||||||
|
true
|
||||||
TaskBar
|
TaskBar
|
||||||
Terminal
|
Terminal
|
||||||
touch
|
touch
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
set(SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
add_executable(false ${SOURCES})
|
||||||
|
banan_link_library(false ban)
|
||||||
|
banan_link_library(false libc)
|
||||||
|
|
||||||
|
install(TARGETS false OPTIONAL)
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
set(SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
add_executable(true ${SOURCES})
|
||||||
|
banan_link_library(true ban)
|
||||||
|
banan_link_library(true libc)
|
||||||
|
|
||||||
|
install(TARGETS true OPTIONAL)
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
Loading…
Reference in New Issue