From fcb9fd7c83420e6ddcd8f29af6f4e61b0601a529 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 12 Nov 2024 00:19:12 -0500 Subject: kernel: syscall: Add SYS_sysctl syscall Signed-off-by: Ian Moffett --- sys/include/sys/syscall.h | 1 + sys/include/sys/sysctl.h | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'sys/include') diff --git a/sys/include/sys/syscall.h b/sys/include/sys/syscall.h index b9e1d09..e93c0ce 100644 --- a/sys/include/sys/syscall.h +++ b/sys/include/sys/syscall.h @@ -41,6 +41,7 @@ #define SYS_read 3 #define SYS_close 4 #define SYS_stat 5 +#define SYS_sysctl 6 #if defined(_KERNEL) /* Syscall return value and arg type */ diff --git a/sys/include/sys/sysctl.h b/sys/include/sys/sysctl.h index 364d8e5..0f1df26 100644 --- a/sys/include/sys/sysctl.h +++ b/sys/include/sys/sysctl.h @@ -31,6 +31,9 @@ #define _SYS_SYSCTL_H_ #include +#if defined(_KERNEL) +#include +#endif #include #define KERN_OSTYPE 0 @@ -55,6 +58,8 @@ struct sysctl_entry { int optype; void *data; }; + +scret_t sys_sysctl(struct syscall_args *scargs); #endif /* _KERNEL */ /* -- cgit v1.2.3