diff options
author | Anton Kling <anton@kling.gg> | 2023-11-15 02:44:45 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-11-15 21:40:13 +0100 |
commit | e22e493940266e0aa9be2bf58df1821a3539e19b (patch) | |
tree | 64d3516642fae984b5f801db3348d884f661731d /userland/libc/unistd | |
parent | 6747f9407a061684c2fba837541c254f48bfcff0 (diff) |
Kernel/LibC: Add chdir function and syscall
Diffstat (limited to 'userland/libc/unistd')
-rw-r--r-- | userland/libc/unistd/chdir.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 <unistd.h> +#include <syscall.h> + +int chdir(const char *path) { RC_ERRNO(syscall(SYS_CHDIR, path, 0, 0, 0, 0)); } |