Lines Matching full:pid
28 LIBC_INLINE ErrorOr<pid_t> wait4impl(pid_t pid, int *wait_status, int options,
31 pid = LIBC_NAMESPACE::syscall_impl<pid_t>(SYS_wait4, pid, wait_status,
35 if (pid == -1) {
37 } else if (pid < -1) {
39 pid *= -1;
40 } else if (pid == 0) {
47 pid = LIBC_NAMESPACE::syscall_impl<pid_t>(SYS_waitid, idtype, pid, &info,
49 if (pid >= 0)
50 pid = info.si_pid;
78 if (pid < 0)
79 return Error(-pid);
80 return pid;