wait4
return (wait4(WAIT_ANY, istat, 0, NULL));
return (wait4(WAIT_ANY, istat, options, rup));
return (wait4(pid, istat, options, NULL));
PROTO_CANCEL(wait4);
ret = HIDDEN(wait4)(wpid, status, options, rusage);
DEF_CANCEL(wait4);
ATF_TC_BODY(wait4, tc)
wait4(WAIT_ANY, NULL, TWAIT_OPTION, NULL) == -1);
wait4(WAIT_ANY, NULL, o | TWAIT_OPTION, NULL) == -1);
ATF_TP_ADD_TC(tp, wait4);
ATF_TC(wait4);
ATF_TC_HEAD(wait4, tc)
wait4(child, &status, 0, NULL);
while (!ischild && wait4(-1, &status, 0, NULL) > 0)
pid_t wait4(pid_t, int *, int, struct rusage *);
pid = wait4(WAIT_ANY, &st, 0, &ru);
wait4(pid, &status, 0, 0);
if (wait4(external->pid, &s, WNOHANG, NULL) == 0)
if (wait4(wpid, &status, WNOHANG, NULL) == wpid) {
pid = wait4(-1, &sstatus, WNOHANG, NULL);
wait4(pid, &status, 0, &res);