1 2 3 4 5 6 7
#include <sys/stat.h> #include <syscall.h> int fchmodat(int fd, const char *path, mode_t mode, int flag) { return syscall(fchmodat2, fd, path, mode, flag); }