about summary refs log tree commit diff
path: root/src/stat/mkdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stat/mkdir.c')
-rw-r--r--src/stat/mkdir.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stat/mkdir.c b/src/stat/mkdir.c
new file mode 100644
index 00000000..8295cad5
--- /dev/null
+++ b/src/stat/mkdir.c
@@ -0,0 +1,7 @@
+#include <sys/stat.h>
+#include "syscall.h"
+
+int mkdir(const char *path, mode_t mode)
+{
+	return syscall2(__NR_mkdir, (long)path, mode);
+}