summaryrefslogtreecommitdiff
path: root/kernel/cpu
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-11-24 21:29:12 +0100
committerAnton Kling <anton@kling.gg>2023-11-24 21:29:12 +0100
commit08b63b747f9a6b4d1460195f6ca68680abcdd656 (patch)
tree0a1b8620cd3b56bf1d9b389f44876e8c391bd47e /kernel/cpu
parent6757803629574fe46e9047be8567e0c7e0522973 (diff)
Refactor open()
Diffstat (limited to 'kernel/cpu')
-rw-r--r--kernel/cpu/syscall.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/kernel/cpu/syscall.c b/kernel/cpu/syscall.c
index 2a67235..cb2b52e 100644
--- a/kernel/cpu/syscall.c
+++ b/kernel/cpu/syscall.c
@@ -13,17 +13,6 @@
#pragma GCC diagnostic ignored "-Wpedantic"
-int syscall_open(SYS_OPEN_PARAMS *args) {
- char file[256];
- strcpy(file, args->file);
- // const char *file = copy_and_allocate_user_string(args->file);
- int flags = args->flags;
- int mode = args->mode;
- int rc = vfs_open(file, flags, mode);
- // kfree((void *)file);
- return rc;
-}
-
int syscall_exec(SYS_EXEC_PARAMS *args) {
const char *filename = copy_and_allocate_user_string(args->path);