userspace: Implement true and false utilities
This commit is contained in:
parent
5df0e25c1f
commit
42a10b21c7
|
@ -12,6 +12,7 @@ set(USERSPACE_PROGRAMS
|
|||
DynamicLoader
|
||||
echo
|
||||
env
|
||||
false
|
||||
getopt
|
||||
http-server
|
||||
id
|
||||
|
@ -37,6 +38,7 @@ set(USERSPACE_PROGRAMS
|
|||
sudo
|
||||
sync
|
||||
tee
|
||||
true
|
||||
TaskBar
|
||||
Terminal
|
||||
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