summaryrefslogtreecommitdiff
path: root/userland/libc/sys/stat/mkdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'userland/libc/sys/stat/mkdir.c')
-rw-r--r--userland/libc/sys/stat/mkdir.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/userland/libc/sys/stat/mkdir.c b/userland/libc/sys/stat/mkdir.c
index c057fa7..927afd8 100644
--- a/userland/libc/sys/stat/mkdir.c
+++ b/userland/libc/sys/stat/mkdir.c
@@ -1,9 +1,6 @@
#include <sys/stat.h>
-#include <assert.h>
+#include <syscall.h>
int mkdir(const char *path, mode_t mode) {
- (void)path;
- (void)mode;
- assert(0); // TODO: Implement
- return 0;
+ return syscall(SYS_MKDIR, (void *)path, (void *)mode, 0, 0, 0);
}