Home
last modified time | relevance | path

Searched refs:wpid (Results 1 – 25 of 31) sorted by relevance

12

/freebsd/tests/sys/kern/
H A Dptrace_test.c135 pid_t wpid; in attach_child() local
140 wpid = waitpid(pid, &status, 0); in attach_child()
141 REQUIRE_EQ(wpid, pid); in attach_child()
185 pid_t child, wpid; in ATF_TC_BODY() local
199 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
200 REQUIRE_EQ(wpid, child); in ATF_TC_BODY()
208 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
209 REQUIRE_EQ(wpid, child); in ATF_TC_BODY()
214 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
215 REQUIRE_EQ(wpid, -1); in ATF_TC_BODY()
[all …]
H A Dfdgrowtable_test.c176 pid_t wpid; in ATF_TC_BODY() local
179 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
180 ATF_REQUIRE(wpid == child); in ATF_TC_BODY()
237 pid_t child, wpid; in ATF_TC_BODY() local
254 wpid = waitpid(child, &status, WUNTRACED); in ATF_TC_BODY()
255 ATF_REQUIRE(wpid == child); in ATF_TC_BODY()
274 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
275 ATF_REQUIRE(wpid == child); in ATF_TC_BODY()
/freebsd/tests/sys/fifo/
H A Dfifo_open.c128 pid_t wpid; in wait_and_timeout() local
136 wpid = waitpid(pid, status, WNOHANG); in wait_and_timeout()
137 if (wpid < 0) { in wait_and_timeout()
142 if (wpid == pid) in wait_and_timeout()
148 wpid = waitpid(pid, status, WNOHANG); in wait_and_timeout()
149 if (wpid < 0) { in wait_and_timeout()
154 if (wpid == pid) in wait_and_timeout()
162 wpid = waitpid(pid, status, 0); in wait_and_timeout()
163 if (wpid < 0) { in wait_and_timeout()
168 if (wpid != pid) { in wait_and_timeout()
[all …]
/freebsd/contrib/netbsd-tests/kernel/
H A Dt_ptrace_wait.c82 pid_t child, wpid; in ATF_TC_BODY() local
102 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child); in ATF_TC_BODY()
111 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child); in ATF_TC_BODY()
116 TWAIT_REQUIRE_FAILURE(ECHILD, wpid = TWAIT_GENERIC(child, &status, 0)); in ATF_TC_BODY()
140 pid_t child, wpid; in ATF_TC_BODY() local
169 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child); in ATF_TC_BODY()
178 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child); in ATF_TC_BODY()
183 TWAIT_REQUIRE_FAILURE(ECHILD, wpid = TWAIT_GENERIC(child, &status, 0)); in ATF_TC_BODY()
196 pid_t child, wpid; in ATF_TC_BODY() local
217 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child); in ATF_TC_BODY()
[all …]
/freebsd/contrib/netbsd-tests/kernel/arch/amd64/
H A Dt_ptrace_wait.c70 pid_t child, wpid; in ATF_TC_BODY() local
91 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child); in ATF_TC_BODY()
132 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child); in ATF_TC_BODY()
137 TWAIT_REQUIRE_FAILURE(ECHILD, wpid = TWAIT_GENERIC(child, &status, 0)); in ATF_TC_BODY()
153 pid_t child, wpid; in ATF_TC_BODY() local
174 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child); in ATF_TC_BODY()
189 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child); in ATF_TC_BODY()
194 TWAIT_REQUIRE_FAILURE(ECHILD, wpid = TWAIT_GENERIC(child, &status, 0)); in ATF_TC_BODY()
210 pid_t child, wpid; in ATF_TC_BODY() local
233 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child); in ATF_TC_BODY()
[all …]
/freebsd/lib/libthr/tests/
H A Datfork_test.c121 pid_t p, wpid; in ATF_TC_BODY() local
136 while ((wpid = waitpid(p, &status, 0)) != p) { in ATF_TC_BODY()
137 ATF_REQUIRE_ERRNO(EINTR, wpid == -1); in ATF_TC_BODY()
138 if (wpid == -1) in ATF_TC_BODY()
238 pid_t p, wpid; in ATF_TC_BODY() local
254 while ((wpid = waitpid(p, &status, 0)) != p) { in ATF_TC_BODY()
255 ATF_REQUIRE_ERRNO(EINTR, wpid == -1); in ATF_TC_BODY()
256 if (wpid == -1) in ATF_TC_BODY()
/freebsd/lib/csu/tests/
H A Dfini_test.c70 pid_t pid, wpid; in ATF_TC_BODY() local
81 while ((wpid = waitpid(pid, &status, 0)) == -1 && in ATF_TC_BODY()
112 pid_t pid, wpid; in ATF_TC_BODY() local
123 while ((wpid = waitpid(pid, &status, 0)) == -1 && in ATF_TC_BODY()
H A Dcxx_constructors.cc77 pid_t pid, wpid; in ATF_TEST_CASE_BODY() local
88 while ((wpid = waitpid(pid, &status, 0)) == -1 && in ATF_TEST_CASE_BODY()
/freebsd/contrib/netbsd-tests/kernel/arch/i386/
H A Dt_ptrace_wait.c69 pid_t child, wpid; in ATF_TC_BODY() local
90 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child); in ATF_TC_BODY()
124 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child); in ATF_TC_BODY()
129 TWAIT_REQUIRE_FAILURE(ECHILD, wpid = TWAIT_GENERIC(child, &status, 0)); in ATF_TC_BODY()
/freebsd/tools/test/stress2/misc/
H A Drename7.sh82 pid_t wpid, spid;
124 pid_t wpid, spid;
128 if ((wpid = fork()) == 0)
143 kill(wpid, SIGINT);
H A Dholdcnt02.sh210 pid_t rpid[RPARALLEL], wpid[WPARALLEL];
220 if ((wpid[i] = fork()) == 0)
229 waitpid(wpid[i], &s, 0);
H A Dholdcnt03.sh209 pid_t rpid[RPARALLEL], wpid[WPARALLEL];
219 if ((wpid[i] = fork()) == 0)
228 waitpid(wpid[i], &s, 0);
H A Dholdcnt05.sh218 pid_t rpid[RPARALLEL], wpid[WPARALLEL];
228 if ((wpid[i] = fork()) == 0)
237 waitpid(wpid[i], &s, 0);
H A Dholdcnt0.sh229 pid_t rpid[RPARALLEL], wpid[WPARALLEL];
239 if ((wpid[i] = fork()) == 0)
248 waitpid(wpid[i], &s, 0);
H A Dholdcnt04.sh219 pid_t rpid[RPARALLEL], wpid[WPARALLEL];
229 if ((wpid[i] = fork()) == 0)
238 waitpid(wpid[i], &s, 0);
/freebsd/lib/libulog/
H A Dulog_login_pseudo.c49 pid_t pid, wpid; in ulog_exec_helper() local
70 wpid = waitpid(pid, &status, 0); in ulog_exec_helper()
71 } while (wpid == -1 && errno == EINTR); in ulog_exec_helper()
/freebsd/tools/test/pthread_vfork/
H A Dpthread_vfork_test.c44 pid_t pid, wpid; in vfork_test() local
54 wpid = waitpid(pid, &status, 0); in vfork_test()
55 if (wpid == -1) in vfork_test()
/freebsd/sbin/init/
H A Dinit.c848 pid_t pid, wpid; in single_user() local
970 if ((wpid = waitpid(-1, &status, WUNTRACED)) != -1) in single_user()
971 collect_child(wpid); in single_user()
972 if (wpid == -1) { in single_user()
978 if (wpid == pid && WIFSTOPPED(status)) { in single_user()
981 wpid = -1; in single_user()
983 } while (wpid != pid && !requested_transition); in single_user()
1106 pid_t pid, wpid; in run_script() local
1139 if ((wpid = waitpid(-1, &status, WUNTRACED)) != -1) in run_script()
1140 collect_child(wpid); in run_script()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_getpid.c61 pid_t ppid, fpid, cpid, tpid, wpid; in ATF_TC_BODY() local
88 wpid = wait(&sta); in ATF_TC_BODY()
90 if (wpid != fpid) in ATF_TC_BODY()
/freebsd/lib/libc/tests/gen/
H A Dfmtmsg_test.c161 pid_t pid, wpid; in run_test() local
208 while ((wpid = waitpid(pid, &status, 0)) == -1 && errno == EINTR) in run_test()
210 if (wpid == -1) in run_test()
/freebsd/tools/regression/security/cap_test/
H A Dcap_test_capmode.c68 pid_t pid, wpid; in test_capmode() local
156 wpid = waitpid(pid, NULL, 0); in test_capmode()
157 if (wpid < 0) { in test_capmode()
/freebsd/contrib/sendmail/libsmutil/
H A Dt-lockfile-0.sh62 wpid=$!
66 wait $wpid
H A Dt-maplock-0.sh87 wpid=$!
98 wait $wpid
/freebsd/lib/libc/gen/
H A Dwordexp.c132 pid_t wpid; /* waitpid return value */ in we_askshell() local
261 wpid = _waitpid(pid, &status, 0); in we_askshell()
262 while (wpid < 0 && errno == EINTR); in we_askshell()
268 if (wpid < 0 || !WIFEXITED(status) || WEXITSTATUS(status) != 0) in we_askshell()
/freebsd/tools/tools/netrate/juggle/
H A Djuggle.c377 pid_t pid, ppid, wpid; in process_juggle() local
440 wpid = waitpid(pid, NULL, 0); in process_juggle()
441 if (wpid < 0) in process_juggle()
443 if (wpid != pid) in process_juggle()

12