prefer new socket syscalls, fallback to SYS_socketcall only if needed
[musl.git] / src / stat / mkdir.c
blob32625b7de32768dc45916b76c0d063af89e1203c
1 #include <sys/stat.h>
2 #include <fcntl.h>
3 #include "syscall.h"
5 int mkdir(const char *path, mode_t mode)
7 #ifdef SYS_mkdir
8 return syscall(SYS_mkdir, path, mode);
9 #else
10 return syscall(SYS_mkdirat, AT_FDCWD, path, mode);
11 #endif