From 17fe7bc9c8311f7e192385e47550607e61874528 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 10 Jun 2023 17:47:16 +0200 Subject: kernel: implement DUP_SEARCH (like unix's F_DUPFD) --- src/kernel/syscalls.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/kernel/syscalls.c') diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index 03d9ef1..1e75f9d 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -177,8 +177,7 @@ fail: } hid_t _sys_dup(hid_t from, hid_t to, int flags) { - if (flags != 0) SYSCALL_RETURN(-ENOSYS); - SYSCALL_RETURN(proc_handle_dup(proc_cur, from, to)); + SYSCALL_RETURN(proc_handle_dup(proc_cur, from, to, flags)); } static long simple_vfsop( -- cgit v1.2.3