From e22e493940266e0aa9be2bf58df1821a3539e19b Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Wed, 15 Nov 2023 02:44:45 +0100 Subject: Kernel/LibC: Add chdir function and syscall --- userland/libc/unistd/chdir.c | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 userland/libc/unistd/chdir.c (limited to 'userland/libc/unistd') diff --git a/userland/libc/unistd/chdir.c b/userland/libc/unistd/chdir.c new file mode 100644 index 0000000..90b30ae --- /dev/null +++ b/userland/libc/unistd/chdir.c @@ -0,0 +1,4 @@ +#include +#include + +int chdir(const char *path) { RC_ERRNO(syscall(SYS_CHDIR, path, 0, 0, 0, 0)); } -- cgit v1.2.3