summaryrefslogtreecommitdiff
path: root/lib/libc/devctl
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-07 22:22:16 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-07 22:22:16 +0100
commit8f9e448b2ef6db7cd905540c21f3c5b190e7a1e7 (patch)
treeae0285dd15042d1e9236a5ce2e60daf65acbdca0 /lib/libc/devctl
parentfc00c656c96528112d05cf0edf8631bd5eaea446 (diff)
Add bin/true and bin/false implementations
- Added assembly implementations for `true` and `false` commands. - Updated Kbuild files to include new binaries. - Removed unused libraries and headers. - Cleaned up makefile and unused code.
Diffstat (limited to 'lib/libc/devctl')
-rw-r--r--lib/libc/devctl/Kbuild1
-rw-r--r--lib/libc/devctl/posix_devctl.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/devctl/Kbuild b/lib/libc/devctl/Kbuild
new file mode 100644
index 00000000..922f854e
--- /dev/null
+++ b/lib/libc/devctl/Kbuild
@@ -0,0 +1 @@
+obj-y += posix_devctl.o
diff --git a/lib/libc/devctl/posix_devctl.c b/lib/libc/devctl/posix_devctl.c
index bc8e7331..b7c24d79 100644
--- a/lib/libc/devctl/posix_devctl.c
+++ b/lib/libc/devctl/posix_devctl.c
@@ -4,7 +4,7 @@
#include <syscall.h>
int posix_devctl(int fildes, int dcmd, void *restrict dev_data_ptr,
- size_t unused nbyte, int *restrict dev_info_ptr)
+ size_t __unused nbyte, int *restrict dev_info_ptr)
{
long r;