diff options
Diffstat (limited to 'LibC/stat.cpp')
-rw-r--r-- | LibC/stat.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/LibC/stat.cpp b/LibC/stat.cpp index 9dd53da298..7ddd35314c 100644 --- a/LibC/stat.cpp +++ b/LibC/stat.cpp @@ -1,4 +1,5 @@ #include <sys/stat.h> +#include <errno.h> #include <Kernel/Syscall.h> extern "C" { @@ -8,5 +9,11 @@ mode_t umask(mode_t mask) return Syscall::invoke(Syscall::SC_umask, (dword)mask); } +int mkdir(const char* pathname, mode_t mode) +{ + int rc = Syscall::invoke(Syscall::SC_mkdir, (dword)pathname, (dword)mode); + __RETURN_WITH_ERRNO(rc, rc, -1); +} + } |