From 42ad59bdb6df99ccd146d6d67cb8c838be709ec5 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 26 Mar 2024 18:25:07 -0400 Subject: kernel: Add sys_close() Signed-off-by: Ian Moffett --- sys/include/sys/filedesc.h | 1 + sys/include/sys/syscall.h | 1 + 2 files changed, 2 insertions(+) (limited to 'sys/include') diff --git a/sys/include/sys/filedesc.h b/sys/include/sys/filedesc.h index 6eb500e..e0835a5 100644 --- a/sys/include/sys/filedesc.h +++ b/sys/include/sys/filedesc.h @@ -58,6 +58,7 @@ int open(const char *pathname, int oflag); uint64_t sys_write(struct syscall_args *args); uint64_t sys_open(struct syscall_args *args); +uint64_t sys_close(struct syscall_args *args); #endif #endif diff --git a/sys/include/sys/syscall.h b/sys/include/sys/syscall.h index 0f066e5..5020d3a 100644 --- a/sys/include/sys/syscall.h +++ b/sys/include/sys/syscall.h @@ -40,6 +40,7 @@ enum { SYS_exit = 1, SYS_write, SYS_open, + SYS_close, __MAX_SYSCALLS }; -- cgit v1.2.3