summaryrefslogtreecommitdiff
path: root/src/sys/include/compat/unix
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-10-15 13:01:39 -0400
committerIan Moffett <ian@osmora.org>2025-10-15 13:01:39 -0400
commitb9e8dbfd957337ff064c4cb8bb5bd7b23ac88b8d (patch)
tree888d6e5c69a0178c4b00e11c80fdd96c22dfa53a /src/sys/include/compat/unix
parent9970641f0ee8c80be660e2b49e63f6ed4e3b8859 (diff)
kern: Add SYS_read system call for file I/O
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include/compat/unix')
-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 8b7e7d7..be351e8 100644
--- a/src/sys/include/compat/unix/syscall.h
+++ b/src/sys/include/compat/unix/syscall.h
@@ -63,6 +63,11 @@ scret_t sys_query(struct syscall_args *scargs);
*/
scret_t sys_open(struct syscall_args *scargs);
+/*
+ * Read a file
+ */
+scret_t sys_read(struct syscall_args *scargs);
+
#ifdef _NEED_UNIX_SCTAB
scret_t(*g_unix_sctab[])(struct syscall_args *) = {
[SYS_none] = NULL,
@@ -77,7 +82,8 @@ scret_t(*g_unix_sctab[])(struct syscall_args *) = {
[SYS_getargv] = sys_getargv,
[SYS_reboot] = sys_reboot,
[SYS_waitpid] = sys_waitpid,
- [SYS_dmsio] = sys_dmsio
+ [SYS_dmsio] = sys_dmsio,
+ [SYS_read] = sys_read
};
#endif /* !_NEED_UNIX_SCTAB */