summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
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 */
/*