summaryrefslogtreecommitdiff
path: root/sys/kern/kern_syscall.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-11-12 00:19:12 -0500
committerIan Moffett <ian@osmora.org>2024-11-12 00:19:12 -0500
commitfcb9fd7c83420e6ddcd8f29af6f4e61b0601a529 (patch)
tree4f81f43538731831ca853c6372505a20624a9f2b /sys/kern/kern_syscall.c
parent24c1598929ac4cfd2c0a1e3c34b46a35ed1775bd (diff)
kernel: syscall: Add SYS_sysctl syscall
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/kern_syscall.c')
-rw-r--r--sys/kern/kern_syscall.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_syscall.c b/sys/kern/kern_syscall.c
index f4d9cb8..2d3d6ea 100644
--- a/sys/kern/kern_syscall.c
+++ b/sys/kern/kern_syscall.c
@@ -28,6 +28,7 @@
*/
#include <sys/syscall.h>
+#include <sys/sysctl.h>
#include <sys/types.h>
#include <sys/proc.h>
#include <sys/vfs.h>
@@ -39,6 +40,7 @@ scret_t(*g_sctab[])(struct syscall_args *) = {
sys_read, /* SYS_read */
sys_close, /* SYS_close */
sys_stat, /* SYS_stat */
+ sys_sysctl, /* SYS_sysctl */
};
const size_t MAX_SYSCALLS = NELEM(g_sctab);