summaryrefslogtreecommitdiff
path: root/Kernel/Process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r--Kernel/Process.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index 94ab2fdd6b..8dd94efec1 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -1751,3 +1751,15 @@ int Process::sys$setgroups(size_t count, const gid_t* gids)
m_gids.set(gids[i]);
return 0;
}
+
+int Process::sys$mkdir(const char* pathname, mode_t mode)
+{
+ if (!validate_read_str(pathname))
+ return -EFAULT;
+ if (strlen(pathname) >= 255)
+ return -ENAMETOOLONG;
+ int error;
+ if (!VFS::the().mkdir(pathname, mode, cwd_inode()->identifier(), error))
+ return error;
+ return 0;
+}