aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_syscall.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-24 19:51:31 -0400
committerIan Moffett <ian@osmora.org>2024-04-24 19:51:31 -0400
commiteb5d1c92c4e79c04a9d2e0027728e1378ba61f49 (patch)
tree11f2dd9d5c722924bafff87362a22c6eacafa8ac /sys/kern/kern_syscall.c
parent0dd63753b6e8c3cbcc1a790c3c6ecd40d8320048 (diff)
kernel: Add ioctl support
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/kern_syscall.c')
-rw-r--r--sys/kern/kern_syscall.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_syscall.c b/sys/kern/kern_syscall.c
index b4a86f3..e892c39 100644
--- a/sys/kern/kern_syscall.c
+++ b/sys/kern/kern_syscall.c
@@ -32,6 +32,7 @@
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/filedesc.h>
+#include <sys/system.h>
#include <vm/map.h>
__noreturn static uint64_t
@@ -49,5 +50,6 @@ uint64_t(*g_syscall_table[__MAX_SYSCALLS])(struct syscall_args *args) = {
sys_read,
sys_lseek,
sys_mmap,
- sys_munmap
+ sys_munmap,
+ sys_ioctl,
};