aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_syscall.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-19 23:03:26 -0400
committerIan Moffett <ian@osmora.org>2024-03-19 23:03:26 -0400
commit60e89b6b9cf2af1ebd7e71c8624282b9ecd79a09 (patch)
treedc61fa44be993af0e5cd82f08e0d258182d148b2 /sys/kern/kern_syscall.c
parent4d4d412ca48802200933eb0e2b0b007855d4aa7d (diff)
kernel: syscall: Add sys_write()
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 b6e31d1..2659448 100644
--- a/sys/kern/kern_syscall.c
+++ b/sys/kern/kern_syscall.c
@@ -31,6 +31,7 @@
#include <sys/sched.h>
#include <sys/cdefs.h>
#include <sys/types.h>
+#include <sys/filedesc.h>
__noreturn static uint64_t
sys_exit(struct syscall_args *args)
@@ -41,4 +42,5 @@ sys_exit(struct syscall_args *args)
uint64_t(*g_syscall_table[__MAX_SYSCALLS])(struct syscall_args *args) = {
sys_exit,
+ sys_write,
};