1 2 3 4 5 6 7 8
#include "asm/unistd_64.h" // for __NR_fchdir #include <syscall.h> // for __syscall_1, syscall int fchdir(int fildes) { return syscall(fchdir, fildes); }