Home
last modified time | relevance | path

Searched refs:wstatus (Results 1 – 19 of 19) sorted by relevance

/freebsd/lib/libc/tests/stdlib/
H A Dlibc_exit_test.c58 int p[2], wstatus = 0; in ATF_TC_BODY() local
73 ATF_CHECK_EQ_MSG(pid, waitpid(pid, &wstatus, 0), in ATF_TC_BODY()
75 ATF_CHECK_EQ_MSG(0, wstatus, in ATF_TC_BODY()
92 int wstatus; in ATF_TC_BODY() local
101 ATF_CHECK_EQ_MSG(pid, waitpid(pid, &wstatus, 0), in ATF_TC_BODY()
103 ATF_CHECK(WIFEXITED(wstatus)); in ATF_TC_BODY()
104 ATF_CHECK_EQ(WEXITSTATUS(wstatus), 12); in ATF_TC_BODY()
127 int wstatus; in ATF_TC_BODY() local
142 ATF_CHECK_EQ_MSG(pid, waitpid(pid, &wstatus, 0), in ATF_TC_BODY()
144 ATF_CHECK(WIFEXITED(wstatus)); in ATF_TC_BODY()
[all …]
/freebsd/tests/sys/fs/tarfs/
H A Dmktar.c170 int opt, wstatus; in main() local
211 if (waitpid(pid, &wstatus, 0) < 0) in main()
213 if (!WIFEXITED(wstatus) || WEXITSTATUS(wstatus) != 0) in main()
240 if (waitpid(pid, &wstatus, 0) < 0) in main()
242 if (!WIFEXITED(wstatus) || WEXITSTATUS(wstatus) != 0) in main()
265 if (waitpid(pid, &wstatus, 0) < 0) in main()
267 if (!WIFEXITED(wstatus) || WEXITSTATUS(wstatus) != 0) in main()
/freebsd/usr.bin/diff/
H A Dpr.c101 int wstatus; in stop_pr() local
114 wstatus = pr->e[0].data; in stop_pr()
117 if (WIFEXITED(wstatus) && WEXITSTATUS(wstatus) != 0) in stop_pr()
119 else if (WIFSIGNALED(wstatus)) in stop_pr()
121 WTERMSIG(wstatus)); in stop_pr()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cp_files/
H A Dseekflood.c167 int wstatus; in main() local
168 wait(&wstatus); in main()
169 if (WIFEXITED(wstatus)) in main()
170 count += WEXITSTATUS(wstatus); in main()
/freebsd/contrib/diff/src/
H A Dsdiff.c268 check_child_status (int werrno, int wstatus, int max_ok_status, in check_child_status() argument
271 int status = (! werrno && WIFEXITED (wstatus) in check_child_status()
272 ? WEXITSTATUS (wstatus) in check_child_status()
707 int wstatus; in main() local
711 wstatus = pclose (diffout); in main()
712 if (wstatus == -1) in main()
716 while (waitpid (diffpid, &wstatus, 0) < 0) in main()
733 check_child_status (werrno, wstatus, EXIT_FAILURE, diffargv[0]); in main()
736 exit (WEXITSTATUS (wstatus)); in main()
1052 int wstatus; in edit() local
[all …]
H A Dutil.c283 int wstatus; in finish_output() local
288 wstatus = pclose (outfile); in finish_output()
289 if (wstatus == -1) in finish_output()
294 if (waitpid (pr_pid, &wstatus, 0) < 0) in finish_output()
297 status = (! werrno && WIFEXITED (wstatus) in finish_output()
298 ? WEXITSTATUS (wstatus) in finish_output()
H A Ddiff3.c1140 int fd, wstatus, status; in read_diff() local
1257 wstatus = pclose (fpipe); in read_diff()
1258 if (wstatus == -1) in read_diff()
1265 if (waitpid (pid, &wstatus, 0) < 0) in read_diff()
1270 status = ! werrno && WIFEXITED (wstatus) ? WEXITSTATUS (wstatus) : INT_MAX; in read_diff()
/freebsd/contrib/openbsm/bin/auditd/
H A Dauditd.c622 int wstatus; in auditd_reap_children() local
624 while ((child = waitpid(-1, &wstatus, WNOHANG)) > 0) { in auditd_reap_children()
625 if (!wstatus) in auditd_reap_children()
628 ((WIFEXITED(wstatus)) ? "exited with non-zero status" : in auditd_reap_children()
630 ((WIFEXITED(wstatus)) ? WEXITSTATUS(wstatus) : in auditd_reap_children()
631 WTERMSIG(wstatus))); in auditd_reap_children()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Duser_ns_exec.c118 int result, wstatus; in main() local
172 while (waitpid(child, &wstatus, 0) != child) in main()
175 result = WEXITSTATUS(wstatus); in main()
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DHost.cpp597 WaitStatus WaitStatus::Decode(int wstatus) { in Decode() argument
598 if (WIFEXITED(wstatus)) in Decode()
599 return {Exit, uint8_t(WEXITSTATUS(wstatus))}; in Decode()
600 else if (WIFSIGNALED(wstatus)) in Decode()
601 return {Signal, uint8_t(WTERMSIG(wstatus))}; in Decode()
602 else if (WIFSTOPPED(wstatus)) in Decode()
603 return {Stop, uint8_t(WSTOPSIG(wstatus))}; in Decode()
/freebsd/contrib/dialog/
H A Dui_getc.c613 union wait wstatus; in dlg_killall_bg() local
615 int wstatus; in dlg_killall_bg() local
650 while (-1 == waitpid(pid, &wstatus, 0)) { in dlg_killall_bg()
662 while (wait(&wstatus) != pid) /* do nothing */ in dlg_killall_bg()
665 _exit(WEXITSTATUS(wstatus)); in dlg_killall_bg()
/freebsd/usr.sbin/lpr/lpd/
H A Dprintjob.c612 int p[2], retcode, stopped, wstatus, wstatus_set; in print() local
791 wait3(&wstatus, WUNTRACED, 0)) > 0 && wpid != of_pid) in print()
797 else if (!WIFSTOPPED(wstatus)) { in print()
801 pp->printer, of_pid, WEXITSTATUS(wstatus), in print()
802 WTERMSIG(wstatus)); in print()
828 while ((wpid = wait(&wstatus)) > 0 && wpid != child) in print()
837 retcode = WEXITSTATUS(wstatus); in print()
857 if (wstatus_set && !WIFEXITED(wstatus)) { in print()
859 pp->printer, format, WTERMSIG(wstatus)); in print()
1342 int errfd, retcode, wstatus; in execfilter() local
[all …]
/freebsd/contrib/ntp/ntpd/
H A Dntpd.c1733 int wstatus;
1734 if (cpid == waitpid(cpid, &wstatus, (blocking ? 0 : WNOHANG))) {
1735 if (WIFEXITED(wstatus)) {
1736 rc = WEXITSTATUS(wstatus);
1739 } else if (WIFSIGNALED(wstatus)) {
1742 WTERMSIG(wstatus));
1713 int wstatus; global() local
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/NetBSD/
H A DNativeProcessNetBSD.cpp74 int wstatus; in Launch() local
75 ::pid_t wpid = llvm::sys::RetryAfterSignal(-1, ::waitpid, pid, &wstatus, 0); in Launch()
78 if (!WIFSTOPPED(wstatus)) { in Launch()
79 LLDB_LOG(log, "Could not sync with inferior process: wstatus={1}", in Launch()
80 WaitStatus::Decode(wstatus)); in Launch()
877 int wstatus;
880 if ((wstatus = llvm::sys::RetryAfterSignal(-1, waitpid, m_pid, nullptr, in ReadMemory()
856 int wstatus; Attach() local
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/
H A DNativeProcessFreeBSD.cpp87 int wstatus; in Launch() local
88 ::pid_t wpid = llvm::sys::RetryAfterSignal(-1, ::waitpid, pid, &wstatus, 0); in Launch()
91 if (!WIFSTOPPED(wstatus)) { in Launch()
93 WaitStatus::Decode(wstatus)); in Launch()
861 int wstatus; in Attach() local
864 if ((wstatus = llvm::sys::RetryAfterSignal(-1, waitpid, m_pid, nullptr, 0)) < in Attach()
/freebsd/libexec/tftpd/tests/
H A Dfunctional.c267 int wstatus; in check_server() local
275 ATF_REQUIRE_EQ(pid, waitpid(pid, &wstatus, 0)); in check_server()
276 ATF_CHECK(WIFEXITED(wstatus)); in check_server()
277 ATF_CHECK_INTEQ(exitcode, WEXITSTATUS(wstatus)); in check_server()
/freebsd/contrib/llvm-project/lldb/include/lldb/Host/
H A DHost.h50 static WaitStatus Decode(int wstatus);
/freebsd/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/sbin/dhclient/
H A Ddhclient.c2359 int pid, wpid, wstatus; in priv_script_go() local
2380 wstatus = 0; in priv_script_go()
2383 wpid = wait(&wstatus); in priv_script_go()
2387 wstatus = 0; in priv_script_go()
2397 return (WIFEXITED(wstatus) ? in priv_script_go()
2398 WEXITSTATUS(wstatus) : 128 + WTERMSIG(wstatus)); in priv_script_go()