From ff1ab74b3c464f34dda1fa3a4308ad40c1276076 Mon Sep 17 00:00:00 2001 From: flysand7 Date: Fri, 10 Nov 2023 05:24:24 +1100 Subject: [PATCH] [sys/linux]: Fix missing return; Remove TODO for select() --- core/sys/linux/sys.odin | 3 +-- 1 file changed, 1 insertion(+), 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.