summaryrefslogtreecommitdiff
path: root/src/sys/include/compat/unix/syscall.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-10-18 16:45:26 -0400
committerIan Moffett <ian@osmora.org>2025-10-18 16:47:01 -0400
commit341c360a90a6698a11ffada0feb1527eb1b46a53 (patch)
treecec4a26027ead84ac2b06925e97f8b2374cb0990 /src/sys/include/compat/unix/syscall.h
parent67e666762e60080ee85b750220db4664d691fea2 (diff)
kern: Implement skeleton for POSIX sockets
- Adds POSIX socket() - Adds POSIX listen() - Adds vnode socket type - Adds tmpfs socket awareness Much work is to be done but this commit provides a solid skeleton to be built upon. 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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sys/include/compat/unix/syscall.h b/src/sys/include/compat/unix/syscall.h
index 42dc4c0..38419af 100644
--- a/src/sys/include/compat/unix/syscall.h
+++ b/src/sys/include/compat/unix/syscall.h
@@ -31,6 +31,7 @@
#define _UNIX_SYSCALL_H_ 1
#include <sys/proc.h>
+#include <sys/socket.h>
#include <sys/param.h>
#include <sys/mount.h>
#include <sys/syscall.h>
@@ -95,7 +96,9 @@ scret_t(*g_unix_sctab[])(struct syscall_args *) = {
[SYS_dmsio] = sys_dmsio,
[SYS_read] = sys_read,
[SYS_close] = sys_close,
- [SYS_lseek] = sys_lseek
+ [SYS_lseek] = sys_lseek,
+ [SYS_socket] = sys_socket,
+ [SYS_listen] = sys_listen
};
#endif /* !_NEED_UNIX_SCTAB */