From a288258785bac3c2000227532f4a17210813c506 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 16 Nov 2023 15:24:45 +0100 Subject: Kernel: Change how syscalls are built and implemented. --- kernel/scalls/stat.c | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 kernel/scalls/stat.c (limited to 'kernel/scalls/stat.c') diff --git a/kernel/scalls/stat.c b/kernel/scalls/stat.c deleted file mode 100644 index 9fc115b..0000000 --- a/kernel/scalls/stat.c +++ /dev/null @@ -1,12 +0,0 @@ -#include -#include -#include - -int syscall_stat(SYS_STAT_PARAMS *args) { - const char *pathname = copy_and_allocate_user_string(args->pathname); - struct stat *statbuf = args->statbuf; - int fd = vfs_open(pathname, O_READ, 0); - int rc = vfs_fstat(fd, statbuf); - vfs_close(fd); - return rc; -} -- cgit v1.2.3