summaryrefslogtreecommitdiff
path: root/lib/libc/unistd/chroot.c
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-16 00:36:30 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-16 00:36:30 +0100
commit91ecd00cc83cf701fe7f73b1aa244c27174e8386 (patch)
treec38ffefaa73e671fd917ca0b94b8adec53456a06 /lib/libc/unistd/chroot.c
parent01cf24ec66c663e3f40be1d5c703aa9666effc85 (diff)
Add init prog, chroot syscall and fix menuconfig build
Diffstat (limited to 'lib/libc/unistd/chroot.c')
-rw-r--r--lib/libc/unistd/chroot.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/unistd/chroot.c b/lib/libc/unistd/chroot.c
new file mode 100644
index 00000000..5a895e13
--- /dev/null
+++ b/lib/libc/unistd/chroot.c
@@ -0,0 +1,7 @@
+#include <syscall.h>
+#include <unistd.h>
+
+int chroot(const char *path)
+{
+ return syscall(chroot, path);
+}