summaryrefslogtreecommitdiff
path: root/sys/kern/kern_syscall.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-07-22 12:19:16 -0400
committerIan Moffett <ian@osmora.org>2024-07-22 12:41:21 -0400
commit8daa8f7d5702fcb4c252665e5fc6785235266cd7 (patch)
tree12d05ed04554946846e8dc9d6d4836d2b495d7c3 /sys/kern/kern_syscall.c
parent0c201029c7b69e50aa1faee8ecc4ea86d30780f5 (diff)
kernel: vfs_syscalls: Add sys_open()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/kern_syscall.c')
-rw-r--r--sys/kern/kern_syscall.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_syscall.c b/sys/kern/kern_syscall.c
index 1a750cc..2c81d2c 100644
--- a/sys/kern/kern_syscall.c
+++ b/sys/kern/kern_syscall.c
@@ -30,10 +30,12 @@
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/proc.h>
+#include <sys/vfs.h>
scret_t(*g_sctab[])(struct syscall_args *) = {
NULL, /* SYS_none */
sys_exit, /* SYS_exit */
+ sys_open, /* SYS_open */
};
const size_t MAX_SYSCALLS = NELEM(g_sctab);