summaryrefslogtreecommitdiff
path: root/userland/libc/unistd/chdir.c
blob: 61372c0437e41bad580b04985a513b387b1f8370 (plain)
1
2
3
4
5
6
#include <syscall.h>
#include <unistd.h>

int chdir(const char *path) {
  RC_ERRNO(syscall(SYS_CHDIR, path, 0, 0, 0, 0));
}