X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstat%2Fmkdir.c;h=32625b7de32768dc45916b76c0d063af89e1203c;hb=0ea78a6421322cab24d448670006ee2f99af3ac9;hp=8295cad5a90b3972529015bc7b48ef43fb45b781;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/stat/mkdir.c b/src/stat/mkdir.c index 8295cad5..32625b7d 100644 --- a/src/stat/mkdir.c +++ b/src/stat/mkdir.c @@ -1,7 +1,12 @@ #include +#include #include "syscall.h" int mkdir(const char *path, mode_t mode) { - return syscall2(__NR_mkdir, (long)path, mode); +#ifdef SYS_mkdir + return syscall(SYS_mkdir, path, mode); +#else + return syscall(SYS_mkdirat, AT_FDCWD, path, mode); +#endif }