aboutsummaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-07-22 14:31:35 -0400
committerIan Moffett <ian@osmora.org>2024-07-22 14:31:35 -0400
commit599ef07b89aa31c089398922ef65804f47f44b55 (patch)
tree595a84a66d105f049c82c545d35a7e08868b7e17 /sys/include
parent0393c8b5c2e229e022dcb63a8cd171ac10a23081 (diff)
kernel: vfs_syscalls: Add sys_read()
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 e4a72f2..9aa96e7 100644
--- a/sys/include/sys/syscall.h
+++ b/sys/include/sys/syscall.h
@@ -38,6 +38,7 @@
#define SYS_none 0
#define SYS_exit 1
#define SYS_open 2
+#define SYS_read 3
#if defined(_KERNEL)
/* Syscall return value and arg type */
diff --git a/sys/include/sys/vfs.h b/sys/include/sys/vfs.h
index 16c7795..52d35f3 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_read(struct syscall_args *scargs);
#endif /* _KERNEL */
#endif /* !_SYS_VFS_H_ */