Преглед изворни кода

cleanup(os_linux): remove `select`

Rickard Andersson пре 2 година
родитељ
комит
091c515fea
1 измењених фајлова са 0 додато и 8 уклоњено
  1. 0 8
      core/os/os_linux.odin

+ 0 - 8
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 {