#include "asm/unistd_64.h" // for __NR_mkdir #include // for mkdir #include // for mode_t #include // for __syscall_2, syscall int mkdir(const char *path, mode_t mode) { #ifdef __NR_mkdir return syscall(mkdir, path, mode); #else return syscall(mkdirat, AT_FDCWD, path, mode); #endif }