From 091c515fea784b639b4a907a2fff4a6c6eef53de Mon Sep 17 00:00:00 2001 From: Rickard Andersson Date: Wed, 14 Jun 2023 22:34:57 +0300 Subject: [PATCH] cleanup(os_linux): remove `select` --- core/os/os_linux.odin | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/os/os_linux.odin b/core/os/os_linux.odin index beb4acec5..70e842aa4 100644 --- a/core/os/os_linux.odin +++ b/core/os/os_linux.odin @@ -1100,14 +1100,6 @@ fcntl :: proc(fd: int, cmd: int, arg: int) -> (int, Errno) { return result, ERROR_NONE } -// select :: proc(nfds: int, readfds: ^fd_set, writefds: ^fd_set, exceptfds: ^fd_set, timeout: ^timeval) -> (int, Errno) { -// result := unix.sys_select(nfds, readfds, writefds, exceptfds, timeout) -// if result < 0 { -// return 0, _get_errno(result) -// } -// return result, ERROR_NONE -// } - poll :: proc(fds: [^]pollfd, nfds: nfds_t, timeout: int) -> (int, Errno) { result := unix.sys_poll(fds, uint(nfds), timeout) if result < 0 {