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

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;
}