mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 13:00:28 +00:00
[sys/linux]: Fix signature on wait4 syscall
This commit is contained in:
@@ -787,8 +787,8 @@ exit :: proc "contextless" (code: i32) -> ! {
|
||||
Wait for the process to change state.
|
||||
Available since Linux 1.0.
|
||||
*/
|
||||
wait4 :: proc "contextless" (pid: Pid, status: ^u32, options: Wait_Options) -> (Pid, Errno) {
|
||||
ret := syscall(SYS_wait4, pid, status, transmute(u32) options)
|
||||
wait4 :: proc "contextless" (pid: Pid, status: ^u32, options: Wait_Options, rusage: ^RUsage) -> (Pid, Errno) {
|
||||
ret := syscall(SYS_wait4, pid, status, transmute(u32) options, rusage)
|
||||
return errno_unwrap(ret, Pid)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user