wstat
while (waitpid(kid, &wstat, 0) < 0) {
if (!WIFEXITED(wstat))
if (WEXITSTATUS(wstat) != 0)
warn("%s exited with code %d", promptprog, WEXITSTATUS(wstat));
int readgood, wstat;
static int wstat(int code, int status);
*status = wstat(info.si_code, info.si_status);
int wstat, count;
if (waitpid(pid, &wstat, 0) < 0)
} else if (WIFSIGNALED(wstat))
else if (WIFEXITED(wstat) && WEXITSTATUS(wstat))
int child, wstat;
if ((child = wait(&wstat)) == -1)
return (cleanupkid(child, wstat) != 0);
cleanupkid(pid_t pid, int wstat)
if (WIFEXITED(wstat)) /* this should always be true */
ret = WEXITSTATUS(wstat);
int wstat, child, ret;
if ((child = wait(&wstat)) == -1)
if (WIFEXITED(wstat)) /* this should always be true */
ret = WEXITSTATUS(wstat);
int wstat;
if (waitpid(pid, &wstat, 0) < 0) {
} else if (WIFSIGNALED(wstat)) {
WTERMSIG(wstat),
} else if (WIFEXITED(wstat) && WEXITSTATUS(wstat)) {
WEXITSTATUS(wstat),
int rstat, wstat;
rstat = wstat = 0;
while (wstat == 0) {
wstat = pa_putstr(context, printable, &c, 1);
while (wstat == 0) {
wstat = pa_putstr(context, printable, mbuf, rlen);
if (wstat == 0)
wstat = do_newline(context, flag);
return ((rstat != 0 || wstat != 0) ? -1 : 0);
print_exit_status(pid_t pid, int wstat)
if (WIFSIGNALED(wstat)) {
int sig = WTERMSIG(wstat);
if (WCOREDUMP(wstat))
(void) printf("exited with status %d", WEXITSTATUS(wstat));
int wstat, r;
retc += r = reap(*argv++, &pid, &wstat);
print_exit_status(pid, wstat);
rval->sys_rval2 = wstat(info.si_code, info.si_status);
int (*wstat)(void *, struct l9p_request *);
backend->wstat = fs_wstat;
error = be->wstat != NULL ? be->wstat(be->softc, req) : ENOSYS;
*stat_loc = wstat(info.si_code, info.si_status);
*stat_loc = wstat(info.si_code, info.si_status);
int wstat, estat;
} while (waitpid(pid, &wstat, 0) == -1 && errno == EINTR);
dt_dprintf("%s returned exit status 0x%x\n", dtp->dt_cpp_path, wstat);
estat = WIFEXITED(wstat) ? WEXITSTATUS(wstat) : -1;
int wstat = o->eo_item.ei_uint32;
if (WIFEXITED(wstat))
WEXITSTATUS(wstat));
else if (WIFSIGNALED(wstat))
WTERMSIG(wstat));
(void) printf("%d", wstat);
(void) printf("%d", wstat);
int wstat;
if (waitpid(pid, &wstat, 0) < 0) {
if (!WIFEXITED(wstat) || WEXITSTATUS(wstat) != 0) {
test_failed(t, "child failed: %#x", wstat);
int ret = EXIT_SUCCESS, perr, wstat;
if (waitpid(pid, &wstat, 0) != pid) {
if (WIFEXITED(wstat) == 0) {
if (WEXITSTATUS(wstat) != 0) {
WEXITSTATUS(wstat));
*status = wstat(info.si_code, info.si_status);
static int wstat(int, int);
bigwad->psinfo.pr_wstat = wstat(CLD_DUMPED, sig);
psp->pr_wstat = wstat(wcode, p->p_wdata);
psp->pr_wstat = wstat(wcode, p->p_wdata);
psp->pr_wstat = wstat(wcode, p->p_wdata);
extern int wstat(int, int); /* needs a header file */
psp->pr_wstat = wstat(wcode, p->p_wdata);
audiopci_ak_wait(audiopci_dev_t *dev, uint8_t wstat)
if (!(GET8(dev, CONC_bCODECSTAT_OFF) & wstat))
uint8_t wstat;
wstat = addr == CODEC_RESET_PWRD ? CONC_CSTAT_CWRIP : CONC_CSTAT_CSTAT;
if (audiopci_ak_wait(dev, wstat) != DDI_SUCCESS) {
exacct_do_commit_proc(ac_info_t *ac_proc, proc_t *p, int wstat)
exacct_calculate_proc_usage(p, pu, mask, EW_FINAL, wstat);
exacct_commit_proc(proc_t *p, int wstat)
exacct_do_commit_proc(&acg->ac_proc, p, wstat);
exacct_do_commit_proc(&gacg->ac_proc, p, wstat);
int flag, int wstat)
pu->pu_wstat = wstat;
rv = wstat(why, what);
extern int wstat(int, int);