diff options
author | dzwdz | 2023-06-10 17:47:16 +0200 |
---|---|---|
committer | dzwdz | 2023-06-10 17:47:16 +0200 |
commit | 17fe7bc9c8311f7e192385e47550607e61874528 (patch) | |
tree | 2e64187a886fa88c652e5df5e6b8e36e34609f7e /src/kernel/syscalls.c | |
parent | ede58f88397ad32f4d573d17811279735e2e386a (diff) |
kernel: implement DUP_SEARCH (like unix's F_DUPFD)
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r-- | src/kernel/syscalls.c | 3 |
1 files changed, 1 insertions, 2 deletions
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( |