Lines Matching refs:stat
91 #define CSTAT_CLASS(stat) ((stat) >> 16)
92 #define CSTAT_ERROR(stat) ((stat) & 0xffff)
99 * '*stat'. If there is an error in pipe(), fork(), or wait() this
103 child_worker(int (*func)(void *arg), void *arg, int *stat)
128 if (read(pfd[0], stat, sizeof(*stat)) < 0) {
1053 int stat;
1066 if (child_worker(wait_twoproc_child, NULL, &stat) < 0) {
1073 errno = CSTAT_ERROR(stat);
1074 switch (CSTAT_CLASS(stat)) {
1088 fail_err("bad child state %#x", stat);
1233 int nsems_max, stat;
1243 &stat))
1245 errno = CSTAT_ERROR(stat);
1246 switch (CSTAT_CLASS(stat)) {
1257 fail_err("bad child state %#x", stat);
1288 int i, nsems_max, stat;
1298 &stat) < 0)
1300 errno = CSTAT_ERROR(stat);
1301 switch (CSTAT_CLASS(stat)) {
1312 fail_err("bad child state %#x", stat);
1342 int stat;
1344 stat = fdlimit_set(arg);
1345 if (stat == 0)
1346 stat = exhaust_unnamed_child(arg);
1347 return (stat);
1353 int nsems_max, stat;
1357 &stat))
1359 errno = CSTAT_ERROR(stat);
1360 switch (CSTAT_CLASS(stat)) {
1377 fail_err("bad child state %#x", stat);
1386 int stat;
1388 stat = fdlimit_set(arg);
1389 if (stat == 0)
1390 stat = exhaust_named_child(arg);
1391 return (stat);
1398 int i, nsems_max, stat;
1402 &stat) < 0)
1404 errno = CSTAT_ERROR(stat);
1405 switch (CSTAT_CLASS(stat)) {
1422 fail_err("bad child state %#x", stat);