WEXITED
options |= WEXITED;
options |= WEXITED | WTRAPPED;
if ((options & WEXITED) == 0 && p->p_stat == SZOMB) {
#define WSELECTOPTS (WEXITED|WUNTRACED|WCONTINUED|WTRAPPED)
wpid = waitpid(child, &status, WEXITED);
pid = waitpid(child2, &status, WEXITED);
pid = waitpid(child1, &status, WEXITED);
wpid = TWAIT_GENERIC(child1, &status, WEXITED), child1);
wait6(P_PID,(a),(b),(c)|WEXITED|WTRAPPED,NULL,NULL)
waitid(P_PID,(a),NULL,(c)|WEXITED|WTRAPPED)
ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid);
ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid);
ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid);
ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid);
ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid);
WTRAPPED | WEXITED | TWAIT_OPTION, NULL, NULL) == -1);
WEXITED,
WEXITED,
WTRAPPED | WEXITED | TWAIT_OPTION) == -1);