mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +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
|
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) {
|
poll :: proc(fds: [^]pollfd, nfds: nfds_t, timeout: int) -> (int, Errno) {
|
||||||
result := unix.sys_poll(fds, uint(nfds), timeout)
|
result := unix.sys_poll(fds, uint(nfds), timeout)
|
||||||
if result < 0 {
|
if result < 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user