From 08b63b747f9a6b4d1460195f6ca68680abcdd656 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Fri, 24 Nov 2023 21:29:12 +0100 Subject: Refactor open() --- kernel/cpu/syscall.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'kernel/cpu/syscall.c') 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); -- cgit v1.2.3