1 2 3 4
#include <unistd.h> #include <syscall.h> int chdir(const char *path) { RC_ERRNO(syscall(SYS_CHDIR, path, 0, 0, 0, 0)); }