summaryrefslogtreecommitdiff
path: root/sys/include
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/include
parent24c1598929ac4cfd2c0a1e3c34b46a35ed1775bd (diff)
kernel: syscall: Add SYS_sysctl syscall
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/syscall.h1
-rw-r--r--sys/include/sys/sysctl.h5
2 files changed, 6 insertions, 0 deletions
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 <sys/types.h>
+#if defined(_KERNEL)
+#include <sys/syscall.h>
+#endif
#include <sys/param.h>
#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 */
/*