wait4
__warn_references(wait4,
__weak_alias(wait4, _wait4)
return (wait4(WAIT_ANY, istat, 0, (struct rusage *)NULL));
return (wait4(WAIT_ANY, istat, options, rup));
return (wait4(pid, istat, options, (struct rusage *)0));
pid_t wait4(pid_t, int *, int, struct rusage50 *);
pid_t wait4(pid_t, int *, int, struct rusage *) __RENAME(__wait450);
ATF_REQUIRE(wait4((pid_t)event.ident,
# define TWAIT_WAIT4TYPE(a,b,c,d) wait4((a),(b),(c),(d))
# define TWAIT_GENERIC(a,b,c) wait4((a),(b),(c),NULL)
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)
if ((pid = wait4(pid, &status, 0, &ru)) == -1)
wait4(pid, &status, 0, 0);
pid = wait4(-1, &status, 0, NULL);
pid = wait4(-1, &status, WNOHANG, NULL);
pid = wait4(cur->pid, &status, 0, NULL);
pid = wait4(-1, &sstatus, WNOHANG, NULL);
wait4(pid, &status, WNOHANG, 0);
pid = wait4(child, &status, WNOHANG, 0);
pid = wait4(-1, &status, 0, NULL);
wait4(pid, NULL, 0, NULL);