From 23257cac5271ddc7b445eb8dc317afba3df6ce51 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Boric Date: Sun, 12 Dec 2021 10:53:07 +0100 Subject: Kernel: Remove sys$select() syscall Now that the userland has a compatiblity wrapper for select(), the kernel doesn't need to implement this syscall natively. The poll() interface been around since 1987, any code still using select() should be slapped silly. Note: the SerenityOS source tree mostly uses select() and not poll() despite SerenityOS having support for poll() since early 2019... --- Kernel/API/Syscall.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'Kernel/API/Syscall.h') diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h index 8d6c97276e..5a6b793eee 100644 --- a/Kernel/API/Syscall.h +++ b/Kernel/API/Syscall.h @@ -150,7 +150,6 @@ enum class NeedsBigProcessLock { S(rmdir, NeedsBigProcessLock::Yes) \ S(sched_getparam, NeedsBigProcessLock::Yes) \ S(sched_setparam, NeedsBigProcessLock::Yes) \ - S(select, NeedsBigProcessLock::Yes) \ S(sendfd, NeedsBigProcessLock::Yes) \ S(sendmsg, NeedsBigProcessLock::Yes) \ S(set_coredump_metadata, NeedsBigProcessLock::Yes) \ @@ -264,15 +263,6 @@ struct SC_open_params { u16 mode; }; -struct SC_select_params { - int nfds; - fd_set* readfds; - fd_set* writefds; - fd_set* exceptfds; - const struct timespec* timeout; - const u32* sigmask; -}; - struct SC_poll_params { struct pollfd* fds; unsigned nfds; -- cgit v1.2.3