blob: 1f97fb3f96d5bebd4f82f213e2ac5c8462d14319 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <fcntl.h>
#include <syscall.h>
#include <sys/stat.h>
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
}
|