wait4
wait_pid = wait4(pid, &statusp, options, NULL);
return (INTERPOS_SYS(wait4, WAIT_ANY, istat, 0, NULL));
return (INTERPOS_SYS(wait4, WAIT_ANY, istat, options, rup));
return (INTERPOS_SYS(wait4, pid, status, options, ru));
return (INTERPOS_SYS(wait4, pid, istat, options, NULL));
SLOT(wait4, __sys_wait4),
SLOT(wait4);
while(wait4(-1, NULL, WNOHANG, NULL) > 0)
pid = ::wait4(savedpid, &pstat, 0, (struct rusage *)0);
pid_t wait4(pid_t, int *, int, struct rusage *);
ATF_REQUIRE(wait4(-1, &status, 0, NULL) != -1);
ATF_REQUIRE_EQ(-1, wait4(-1, NULL, 0, NULL));
EXPECT_EQ(child, wait4(child, &status, __WALL, NULL));
return wait4(pid, status, options, ru);
rc = wait4(child, &status, 0, NULL);
rc = wait4(-1, &status, WNOHANG, NULL);
while (wait4(pid, &status, 0, &ru) != pid) {
pid = wait4(-1, &status, 0, NULL);
pid = wait4(-1, &status, WNOHANG, NULL);
pid = wait4(cur->pid, &status, 0, NULL);
while ((pid = wait4(childpid, &waiter, 0, NULL)) < 0 && errno == EINTR)
pid = wait4(-1, &status, 0, NULL);
pid = wait4(-1, &status, WNOHANG, NULL);
pid = wait4(-1, &status, 0, NULL);
pid = wait4(-1, &status, WNOHANG, NULL);
if (wait4(pmc_util_get_pid(&pmc_args), &waitstatus, 0, &ru) > 0) {
if (wait4(pmc_util_get_pid(&pmc_args), &waitstatus, 0, &ru) > 0) {
pid = wait4(the_pid, &pstat, 0, (struct rusage *)0);
pid = wait4(-1, &status, WNOHANG, (struct rusage*)0);