aboutsummaryrefslogtreecommitdiff
path: root/core/sys/linux
diff options
context:
space:
mode:
authorflysand7 <yyakut.ac@gmail.com>2023-11-10 05:24:24 +1100
committerflysand7 <yyakut.ac@gmail.com>2023-11-10 05:24:24 +1100
commitff1ab74b3c464f34dda1fa3a4308ad40c1276076 (patch)
tree06d4d80b357b0811df1a1a17e3c7f2d9abab750d /core/sys/linux
parentaed67ba665ad75857b5a11b07cf31b7e72d695bd (diff)
[sys/linux]: Fix missing return; Remove TODO for select()
Diffstat (limited to 'core/sys/linux')
-rw-r--r--core/sys/linux/sys.odin3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/sys/linux/sys.odin b/core/sys/linux/sys.odin
index 6668c54c8..e271a30b9 100644
--- a/core/sys/linux/sys.odin
+++ b/core/sys/linux/sys.odin
@@ -838,6 +838,7 @@ semop :: proc "contextless" (key: Key, ops: []Sem_Buf) -> (Errno) {
time_nsec = 0,
}
ret := syscall(SYS_semtimedop_time64, key, raw_data(ops), len(ops), &max_timespec)
+ return Errno(-ret)
}
}
@@ -2559,8 +2560,6 @@ faccessat :: proc "contextless" (dirfd: Fd, name: cstring, mode: Mode = F_OK) ->
return errno_unwrap(ret, bool)
}
-// TODO(flysand): pselect6
-
/*
Wait for events on a file descriptor.
Available since Linux 2.6.16.