summaryrefslogtreecommitdiff
path: root/kernel/syscalls/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/syscalls/open.c')
-rw-r--r--kernel/syscalls/open.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/kernel/syscalls/open.c b/kernel/syscalls/open.c
deleted file mode 100644
index ef5297b..0000000
--- a/kernel/syscalls/open.c
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <errno.h>
-#include <syscalls.h>
-
-int syscall_open(const char *file, int flags, mode_t mode) {
- const char *_file = copy_and_allocate_user_string(file);
- if (!_file) {
- return -EFAULT;
- }
- int _flags = flags;
- int _mode = mode;
- int rc = vfs_open(_file, _flags, _mode);
- kfree((void *)_file);
- return rc;
-}