userspace: Implement true and false utilities

This commit is contained in:
Bananymous 2025-06-28 22:39:19 +03:00
parent 5df0e25c1f
commit 42a10b21c7
5 changed files with 32 additions and 0 deletions

View File

@ -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

View File

@ -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)

View File

@ -0,0 +1,6 @@
#include <stdlib.h>
int main()
{
return EXIT_FAILURE;
}

View File

@ -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)

View File

@ -0,0 +1,6 @@
#include <stdlib.h>
int main()
{
return EXIT_SUCCESS;
}