mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +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.
|
Wait for the process to change state.
|
||||||
Available since Linux 1.0.
|
Available since Linux 1.0.
|
||||||
*/
|
*/
|
||||||
wait4 :: proc "contextless" (pid: Pid, status: ^u32, options: Wait_Options) -> (Pid, Errno) {
|
wait4 :: proc "contextless" (pid: Pid, status: ^u32, options: Wait_Options, rusage: ^RUsage) -> (Pid, Errno) {
|
||||||
ret := syscall(SYS_wait4, pid, status, transmute(u32) options)
|
ret := syscall(SYS_wait4, pid, status, transmute(u32) options, rusage)
|
||||||
return errno_unwrap(ret, Pid)
|
return errno_unwrap(ret, Pid)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user