Searched refs:wstatus (Results 1 - 20 of 20) sorted by relevance

/freebsd-current/usr.bin/diff/
H A Dpr.c101 int wstatus; local
114 wstatus = pr->e[0].data;
117 if (WIFEXITED(wstatus) && WEXITSTATUS(wstatus) != 0)
119 else if (WIFSIGNALED(wstatus))
121 WTERMSIG(wstatus));
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Support/SystemZ/
H A DzOSSupport.h30 inline pid_t wait4(pid_t pid, int *wstatus, int options, argument
32 pid_t Result = waitpid(pid, wstatus, options);
/freebsd-current/lib/libc/tests/stdlib/
H A Dquick_exit_test.c53 int p[2], wstatus = 0; local
68 ATF_CHECK_EQ_MSG(pid, waitpid(pid, &wstatus, 0),
70 ATF_CHECK_EQ_MSG(0, wstatus,
/freebsd-current/tests/sys/fs/tarfs/
H A Dmktar.c170 int opt, wstatus; local
211 if (waitpid(pid, &wstatus, 0) < 0)
213 if (!WIFEXITED(wstatus) || WEXITSTATUS(wstatus) != 0)
240 if (waitpid(pid, &wstatus, 0) < 0)
242 if (!WIFEXITED(wstatus) || WEXITSTATUS(wstatus) != 0)
265 if (waitpid(pid, &wstatus, 0) < 0)
267 if (!WIFEXITED(wstatus) || WEXITSTATUS(wstatus) !
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cp_files/
H A Dseekflood.c160 int wstatus; local
161 wait(&wstatus);
162 if (WIFEXITED(wstatus))
163 count += WEXITSTATUS(wstatus);
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Duser_ns_exec.c118 int result, wstatus; local
172 while (waitpid(child, &wstatus, 0) != child)
175 result = WEXITSTATUS(wstatus);
/freebsd-current/contrib/openbsm/bin/auditd/
H A Dauditd.c622 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-current/contrib/llvm-project/lldb/source/Host/common/
H A DHost.cpp564 WaitStatus WaitStatus::Decode(int wstatus) {
565 if (WIFEXITED(wstatus))
566 return {Exit, uint8_t(WEXITSTATUS(wstatus))};
567 else if (WIFSIGNALED(wstatus))
568 return {Signal, uint8_t(WTERMSIG(wstatus))};
569 else if (WIFSTOPPED(wstatus))
570 return {Stop, uint8_t(WSTOPSIG(wstatus))};
/freebsd-current/contrib/diff/src/
H A Dsdiff.c268 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 Dutil.c286 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 Ddiff3.c1144 int fd, wstatus, status;
1261 wstatus = pclose (fpipe);
1262 if (wstatus == -1)
1269 if (waitpid (pid, &wstatus, 0) < 0)
1274 status = ! werrno && WIFEXITED (wstatus) ? WEXITSTATUS (wstatus) : INT_MAX;
1140 int fd, wstatus, status; local
/freebsd-current/contrib/dialog/
H A Dui_getc.c613 union wait wstatus; local
615 int wstatus; local
650 while (-1 == waitpid(pid, &wstatus, 0)) {
662 while (wait(&wstatus) != pid) /* do nothing */
665 _exit(WEXITSTATUS(wstatus));
/freebsd-current/usr.sbin/lpr/lpd/
H A Dprintjob.c612 int p[2], retcode, stopped, wstatus, wstatus_set; local
791 wait3(&wstatus, WUNTRACED, 0)) > 0 && wpid != of_pid)
797 else if (!WIFSTOPPED(wstatus)) {
801 pp->printer, of_pid, WEXITSTATUS(wstatus),
802 WTERMSIG(wstatus));
828 while ((wpid = wait(&wstatus)) > 0 && wpid != child)
837 retcode = WEXITSTATUS(wstatus);
857 if (wstatus_set && !WIFEXITED(wstatus)) {
859 pp->printer, format, WTERMSIG(wstatus));
1342 int errfd, retcode, wstatus; local
[all...]
/freebsd-current/contrib/llvm-project/lldb/include/lldb/Host/
H A DHost.h50 static WaitStatus Decode(int wstatus);
/freebsd-current/contrib/ntp/ntpd/
H A Dntpd.c1713 int wstatus; local
1714 if (cpid == waitpid(cpid, &wstatus, (blocking ? 0 : WNOHANG))) {
1716 if (WIFEXITED(wstatus)) {
1717 rc = WEXITSTATUS(wstatus);
1720 } else if (WIFSIGNALED(wstatus)) {
1723 WTERMSIG(wstatus));
/freebsd-current/contrib/llvm-project/lldb/source/Plugins/Process/NetBSD/
H A DNativeProcessNetBSD.cpp74 int wstatus; local
75 ::pid_t wpid = llvm::sys::RetryAfterSignal(-1, ::waitpid, pid, &wstatus, 0);
78 if (!WIFSTOPPED(wstatus)) {
79 LLDB_LOG(log, "Could not sync with inferior process: wstatus={1}",
80 WaitStatus::Decode(wstatus));
877 int wstatus; local
880 if ((wstatus = llvm::sys::RetryAfterSignal(-1, waitpid, m_pid, nullptr,
/freebsd-current/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/
H A DNativeProcessFreeBSD.cpp69 int wstatus; local
70 ::pid_t wpid = llvm::sys::RetryAfterSignal(-1, ::waitpid, pid, &wstatus, 0);
73 if (!WIFSTOPPED(wstatus)) {
74 LLDB_LOG(log, "Could not sync with inferior process: wstatus={1}",
75 WaitStatus::Decode(wstatus));
832 int wstatus; local
835 if ((wstatus = llvm::sys::RetryAfterSignal(-1, waitpid, m_pid, nullptr, 0)) <
/freebsd-current/libexec/tftpd/tests/
H A Dfunctional.c267 int wstatus; local
275 ATF_REQUIRE_EQ(pid, waitpid(pid, &wstatus, 0));
276 ATF_CHECK(WIFEXITED(wstatus));
277 ATF_CHECK_INTEQ(exitcode, WEXITSTATUS(wstatus));
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/
H A Ddtrace.c848 int wstatus = proc_getwstat(P);
877 if (WIFSIGNALED(wstatus)) {
879 WTERMSIG(wstatus));
886 } else if (WEXITSTATUS(wstatus) != 0) {
888 pid, WEXITSTATUS(wstatus));
/freebsd-current/sbin/dhclient/
H A Ddhclient.c2337 int pid, wpid, wstatus; local
2358 wstatus = 0;
2361 wpid = wait(&wstatus);
2365 wstatus = 0;
2375 return (WIFEXITED(wstatus) ?
2376 WEXITSTATUS(wstatus) : 128 + WTERMSIG(wstatus));

Completed in 175 milliseconds