summaryrefslogtreecommitdiff
path: root/src/sys/include/compat/unix/syscall.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-10-15 14:49:33 -0400
committerIan Moffett <ian@osmora.org>2025-10-15 14:49:33 -0400
commitfbcc3d9e458b8c3966560028d1f1f10ba4e74d37 (patch)
treef3cef39220a76b3648766175737063f03c8cbd61 /src/sys/include/compat/unix/syscall.h
parentf39d4994c80225986fb6b27ef2ecef9268540b69 (diff)
kern: filedesc: Add close() system call
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include/compat/unix/syscall.h')
-rw-r--r--src/sys/include/compat/unix/syscall.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sys/include/compat/unix/syscall.h b/src/sys/include/compat/unix/syscall.h
index be351e8..a031872 100644
--- a/src/sys/include/compat/unix/syscall.h
+++ b/src/sys/include/compat/unix/syscall.h
@@ -68,6 +68,11 @@ scret_t sys_open(struct syscall_args *scargs);
*/
scret_t sys_read(struct syscall_args *scargs);
+/*
+ * Close a file
+ */
+scret_t sys_close(struct syscall_args *scargs);
+
#ifdef _NEED_UNIX_SCTAB
scret_t(*g_unix_sctab[])(struct syscall_args *) = {
[SYS_none] = NULL,
@@ -83,7 +88,8 @@ scret_t(*g_unix_sctab[])(struct syscall_args *) = {
[SYS_reboot] = sys_reboot,
[SYS_waitpid] = sys_waitpid,
[SYS_dmsio] = sys_dmsio,
- [SYS_read] = sys_read
+ [SYS_read] = sys_read,
+ [SYS_close] = sys_close
};
#endif /* !_NEED_UNIX_SCTAB */