mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 13:00:28 +00:00
cleanup(os_linux): remove select
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user