cleanup(os_linux): remove select

This commit is contained in:
Rickard Andersson
2023-06-14 22:34:57 +03:00
parent 4f2b9835f5
commit 091c515fea

View File

@@ -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 {