aboutsummaryrefslogtreecommitdiff
path: root/core/sys
diff options
context:
space:
mode:
authorRickard Andersson <gonz@severnatazvezda.com>2023-06-14 23:38:00 +0300
committerRickard Andersson <gonz@severnatazvezda.com>2023-06-14 23:38:00 +0300
commit003c470a4df12fe2e82b13fde532f95b2ac85637 (patch)
treebca4f5cd9d08e8846ec9a8ce75c3fefc13748f4b /core/sys
parentd6540d9077cbfe18f0d6804ec2a301c04758c820 (diff)
fix(os_linux): make `when` for `arm64` check correct order
Also remove `sys_select` since we aren't using it anyway
Diffstat (limited to 'core/sys')
-rw-r--r--core/sys/unix/syscalls_linux.odin6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/sys/unix/syscalls_linux.odin b/core/sys/unix/syscalls_linux.odin
index 2e5bad153..0accc9d53 100644
--- a/core/sys/unix/syscalls_linux.odin
+++ b/core/sys/unix/syscalls_linux.odin
@@ -2074,13 +2074,9 @@ sys_fcntl :: proc "contextless" (fd: int, cmd: int, arg: int) -> int {
return int(intrinsics.syscall(SYS_fcntl, uintptr(fd), uintptr(cmd), uintptr(arg)))
}
-sys_select :: proc "contextless" (nfds: int, readfds, writefds, exceptfds: rawptr, timeout: rawptr) -> int {
- return int(intrinsics.syscall(SYS_select, uintptr(nfds), uintptr(readfds), uintptr(writefds), uintptr(exceptfds), uintptr(timeout)))
-}
-
sys_poll :: proc "contextless" (fds: rawptr, nfds: uint, timeout: int) -> int {
// NOTE: specialcased here because `arm64` does not have `poll`
- when ODIN_ARCH != .arm64 {
+ when ODIN_ARCH == .arm64 {
// redefined because we can't depend on the `unix` module here
timespec :: struct {
tv_sec: i64,