summaryrefslogtreecommitdiff
path: root/src/stat/mkdirat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stat/mkdirat.c')
-rw-r--r--src/stat/mkdirat.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stat/mkdirat.c b/src/stat/mkdirat.c
new file mode 100644
index 00000000..1fb38250
--- /dev/null
+++ b/src/stat/mkdirat.c
@@ -0,0 +1,7 @@
+#include <sys/stat.h>
+#include "syscall.h"
+
+int mkdirat(int fd, const char *path, mode_t mode)
+{
+ return syscall3(__NR_mkdirat, fd, (long)path, mode);
+}