diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-28 03:06:19 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-28 03:31:26 -0400 |
commit | 8b599e8c8d32bdbbfe5a5ca696d4d9cdff5d5350 (patch) | |
tree | d768ed1065c2a0a0af97e2ea115cf2635a9a6ef5 /sys/kern/kern_syscall.c | |
parent | 275108db200f6303d84d5225b80081b58866fe22 (diff) |
kernel: net: Add socket syscalls
Introduce the following syscalls:
- SYS_socket
- SYS_bind
- SYS_recv
- SYS_send
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/kern_syscall.c')
-rw-r--r-- | sys/kern/kern_syscall.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/kern_syscall.c b/sys/kern/kern_syscall.c index cb7e1d2..dd3de4f 100644 --- a/sys/kern/kern_syscall.c +++ b/sys/kern/kern_syscall.c @@ -29,6 +29,7 @@ #include <sys/syscall.h> #include <sys/sysctl.h> +#include <sys/socket.h> #include <sys/reboot.h> #include <sys/types.h> #include <sys/ucred.h> @@ -60,6 +61,10 @@ scret_t(*g_sctab[])(struct syscall_args *) = { sys_setuid, /* SYS_setuid */ sys_getuid, /* SYS_getuid */ sys_waitpid, /* SYS_waitpid */ + sys_socket, /* SYS_socket */ + sys_bind, /* SYS_bind */ + sys_recv, /* SYS_recv */ + sys_send, /* SYS_send */ }; const size_t MAX_SYSCALLS = NELEM(g_sctab); |