/freebsd-11-stable/contrib/openbsm/bin/auditd/ |
H A D | auditd.c | 622 int wstatus; local 624 while ((child = waitpid(-1, &wstatus, WNOHANG)) > 0) { 625 if (!wstatus) 628 ((WIFEXITED(wstatus)) ? "exited with non-zero status" : 630 ((WIFEXITED(wstatus)) ? WEXITSTATUS(wstatus) : 631 WTERMSIG(wstatus)));
|
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/common/ |
H A D | Host.cpp | 635 WaitStatus WaitStatus::Decode(int wstatus) { argument 636 if (WIFEXITED(wstatus)) 637 return {Exit, uint8_t(WEXITSTATUS(wstatus))}; 638 else if (WIFSIGNALED(wstatus)) 639 return {Signal, uint8_t(WTERMSIG(wstatus))}; 640 else if (WIFSTOPPED(wstatus)) 641 return {Stop, uint8_t(WSTOPSIG(wstatus))};
|
/freebsd-11-stable/contrib/diff/src/ |
H A D | sdiff.c | 268 check_child_status (int werrno, int wstatus, int max_ok_status, argument 271 int status = (! werrno && WIFEXITED (wstatus) 272 ? WEXITSTATUS (wstatus) 709 int wstatus; 713 wstatus = pclose (diffout); 714 if (wstatus == -1) 718 while (waitpid (diffpid, &wstatus, 0) < 0) 735 check_child_status (werrno, wstatus, EXIT_FAILURE, diffargv[0]); 738 exit (WEXITSTATUS (wstatus)); 1056 int wstatus; 707 int wstatus; local 1052 int wstatus; local [all...] |
H A D | util.c | 286 int wstatus; 291 wstatus = pclose (outfile); 292 if (wstatus == -1) 297 if (waitpid (pr_pid, &wstatus, 0) < 0) 300 status = (! werrno && WIFEXITED (wstatus) 301 ? WEXITSTATUS (wstatus) 283 int wstatus; local
|
H A D | diff3.c | 1145 int fd, wstatus, status; 1262 wstatus = pclose (fpipe); 1263 if (wstatus == -1) 1270 if (waitpid (pid, &wstatus, 0) < 0) 1275 status = ! werrno && WIFEXITED (wstatus) ? WEXITSTATUS (wstatus) : INT_MAX; 1141 int fd, wstatus, status; local
|
/freebsd-11-stable/contrib/dialog/ |
H A D | ui_getc.c | 592 union wait wstatus; local 594 int wstatus; local 628 while (-1 == waitpid(pid, &wstatus, 0)) { 640 while (wait(&wstatus) != pid) /* do nothing */ 643 _exit(WEXITSTATUS(wstatus));
|
/freebsd-11-stable/gnu/usr.bin/rcs/lib/ |
H A D | rcsutil.c | 1010 int wstatus; local 1066 wstatus = spawn_RCS(0, args[1], (char**)(args + 1)); 1068 if (wstatus == -1 && errno == ENOEXEC) { 1070 wstatus = spawnv(0, args[0], (char**)args); 1123 if (waitpid(pid, &wstatus, 0) < 0) 1129 if ((w = wait(&wstatus)) < 0) 1150 wstatus = system(b.string); 1154 if (!WIFEXITED(wstatus)) { 1155 if (WIFSIGNALED(wstatus)) { 1156 psignal(WTERMSIG(wstatus), arg [all...] |
H A D | rcsfnms.c | 966 int closeerrno, closeerror, e, fd[2], readerror, toolong, wstatus; local 1005 readerror = toolong = wstatus = 0; 1029 if (waitpid(child, &wstatus, 0) < 0) 1030 wstatus = 1; 1035 if ((w = wait(&wstatus)) < 0) { 1036 wstatus = 1; 1062 if (wstatus || p == path || *--p != '\n') {
|
/freebsd-11-stable/contrib/llvm-project/lldb/include/lldb/Host/ |
H A D | Host.h | 49 static WaitStatus Decode(int wstatus);
|
/freebsd-11-stable/usr.sbin/lpr/lpd/ |
H A D | printjob.c | 624 int p[2], retcode, stopped, wstatus, wstatus_set; local 803 wait3(&wstatus, WUNTRACED, 0)) > 0 && wpid != of_pid) 809 else if (!WIFSTOPPED(wstatus)) { 813 pp->printer, of_pid, WEXITSTATUS(wstatus), 814 WTERMSIG(wstatus)); 840 while ((wpid = wait(&wstatus)) > 0 && wpid != child) 849 retcode = WEXITSTATUS(wstatus); 869 if (wstatus_set && !WIFEXITED(wstatus)) { 871 pp->printer, format, WTERMSIG(wstatus)); 1354 int errfd, retcode, wstatus; local [all...] |
/freebsd-11-stable/contrib/ntp/ntpd/ |
H A D | ntpd.c | 1688 int wstatus; local 1689 if (cpid == waitpid(cpid, &wstatus, (blocking ? 0 : WNOHANG))) { 1691 if (WIFEXITED(wstatus)) { 1692 rc = WEXITSTATUS(wstatus); 1695 } else if (WIFSIGNALED(wstatus)) { 1698 WTERMSIG(wstatus));
|
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Process/NetBSD/ |
H A D | NativeProcessNetBSD.cpp | 75 int wstatus; local 76 ::pid_t wpid = llvm::sys::RetryAfterSignal(-1, ::waitpid, pid, &wstatus, 0); 79 if (!WIFSTOPPED(wstatus)) { 80 LLDB_LOG(log, "Could not sync with inferior process: wstatus={1}", 81 WaitStatus::Decode(wstatus)); 806 int wstatus; local 809 if ((wstatus = llvm::sys::RetryAfterSignal(-1, waitpid,
|
/freebsd-11-stable/usr.bin/diff/ |
H A D | diffreg.c | 448 int wstatus; local 458 wstatus = e[0].data; 460 if (WIFEXITED(wstatus) && WEXITSTATUS(wstatus) != 0) 462 else if (WIFSIGNALED(wstatus)) 464 WTERMSIG(wstatus));
|
/freebsd-11-stable/usr.bin/rlogin/ |
H A D | rlogin.c | 325 int w, wstatus; local 332 while ((w = wait(&wstatus)) > 0 && w != child);
|
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/ |
H A D | dtrace.c | 841 int wstatus = proc_getwstat(P); 870 if (WIFSIGNALED(wstatus)) { 872 WTERMSIG(wstatus)); 879 } else if (WEXITSTATUS(wstatus) != 0) { 881 pid, WEXITSTATUS(wstatus));
|
/freebsd-11-stable/usr.sbin/rtsold/ |
H A D | rtsol.c | 815 int wstatus; local 837 wpid = wait(&wstatus);
|
/freebsd-11-stable/sbin/dhclient/ |
H A D | dhclient.c | 2290 int pid, wpid, wstatus; local 2311 wstatus = 0; 2314 wpid = wait(&wstatus); 2318 wstatus = 0; 2328 return (wstatus & 0xff);
|