diff options
| author | jason <jkercher43@gmail.com> | 2025-01-03 09:29:39 -0500 |
|---|---|---|
| committer | jason <jkercher43@gmail.com> | 2025-01-03 09:29:39 -0500 |
| commit | 1221e393f7e1ab5efaafdc4c168f2b3467efd2d2 (patch) | |
| tree | 02c707e2cd0240701f8e5dc4f65f4e0e906d0ecd /core/sys/linux/sys.odin | |
| parent | 074bef7bafbf4b111ca1bc245dda21ac86810b13 (diff) | |
add 32 bit Sig_Info and remove ppoll_time64 call
Diffstat (limited to 'core/sys/linux/sys.odin')
| -rw-r--r-- | core/sys/linux/sys.odin | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/core/sys/linux/sys.odin b/core/sys/linux/sys.odin index 2117d7d43..fee385fe8 100644 --- a/core/sys/linux/sys.odin +++ b/core/sys/linux/sys.odin @@ -2699,13 +2699,8 @@ faccessat :: proc "contextless" (dirfd: Fd, name: cstring, mode: Mode = F_OK) -> Available since Linux 2.6.16. */ ppoll :: proc "contextless" (fds: []Poll_Fd, timeout: ^Time_Spec, sigmask: ^Sig_Set) -> (i32, Errno) { - when size_of(int) == 8 { - ret := syscall(SYS_ppoll, raw_data(fds), len(fds), timeout, sigmask, size_of(Sig_Set)) - return errno_unwrap(ret, i32) - } else { - ret := syscall(SYS_ppoll_time64, raw_data(fds), len(fds), timeout, sigmask, size_of(Sig_Set)) - return errno_unwrap(ret, i32) - } + ret := syscall(SYS_ppoll, raw_data(fds), len(fds), timeout, sigmask, size_of(Sig_Set)) + return errno_unwrap(ret, i32) } // TODO(flysand): unshare |