summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-08-21 11:58:32 -0400
committerIan Moffett <ian@osmora.org>2024-08-21 12:03:58 -0400
commit8bc9542f9dadb9a99f92c20af3291a048e3a75fd (patch)
treeab00e30f437ec5f6b99fab6866926c2d209d6e2e /sys/include
parent8f2a455cf3866857349e377cd2cf2bb898e0a494 (diff)
kernel: vfs: Add sys_close()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/syscall.h1
-rw-r--r--sys/include/sys/vfs.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/sys/syscall.h b/sys/include/sys/syscall.h
index 9aa96e7..4df3825 100644
--- a/sys/include/sys/syscall.h
+++ b/sys/include/sys/syscall.h
@@ -39,6 +39,7 @@
#define SYS_exit 1
#define SYS_open 2
#define SYS_read 3
+#define SYS_close 4
#if defined(_KERNEL)
/* Syscall return value and arg type */
diff --git a/sys/include/sys/vfs.h b/sys/include/sys/vfs.h
index 52d35f3..776ee66 100644
--- a/sys/include/sys/vfs.h
+++ b/sys/include/sys/vfs.h
@@ -36,6 +36,7 @@
#if defined(_KERNEL)
scret_t sys_open(struct syscall_args *scargs);
+scret_t sys_close(struct syscall_args *args);
scret_t sys_read(struct syscall_args *scargs);
#endif /* _KERNEL */