summaryrefslogtreecommitdiff
path: root/userland/libc/unistd/chdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'userland/libc/unistd/chdir.c')
-rw-r--r--userland/libc/unistd/chdir.c4
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)); }