mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
cleanup: more tabs
This commit is contained in:
+10
-10
@@ -1099,17 +1099,17 @@ fcntl :: proc(fd: int, cmd: int, arg: int) -> (int, Errno) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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 {
|
||||||
return 0, _get_errno(result)
|
return 0, _get_errno(result)
|
||||||
}
|
}
|
||||||
return result, ERROR_NONE
|
return result, ERROR_NONE
|
||||||
}
|
}
|
||||||
|
|
||||||
ppoll :: proc(fds: [^]pollfd, nfds: nfds_t, timeout: ^unix.timespec, sigmask: ^sigset_t) -> (int, Errno) {
|
ppoll :: proc(fds: [^]pollfd, nfds: nfds_t, timeout: ^unix.timespec, sigmask: ^sigset_t) -> (int, Errno) {
|
||||||
result := unix.sys_ppoll(fds, uint(nfds), timeout, sigmask, size_of(sigset_t))
|
result := unix.sys_ppoll(fds, uint(nfds), timeout, sigmask, size_of(sigset_t))
|
||||||
if result < 0 {
|
if result < 0 {
|
||||||
return 0, _get_errno(result)
|
return 0, _get_errno(result)
|
||||||
}
|
}
|
||||||
return result, ERROR_NONE
|
return result, ERROR_NONE
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user