summaryrefslogtreecommitdiff
path: root/Kernel/Process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r--Kernel/Process.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index 20bd664292..69c3061de6 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -2553,3 +2553,11 @@ void Process::FileDescriptorAndFlags::set(Retained<FileDescriptor>&& d, dword f)
descriptor = move(d);
flags = f;
}
+
+int Process::sys$mknod(const char* pathname, mode_t mode, dev_t dev)
+{
+ if (!validate_read_str(pathname))
+ return -EFAULT;
+
+ return VFS::the().mknod(StringView(pathname), mode, dev, cwd_inode());
+}