Searched refs:wstat (Results 1 - 22 of 22) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/
H A Dpassprompt.c31 int readgood, wstat; local
100 while (waitpid(kid, &wstat, 0) < 0) {
111 if (!WIFEXITED(wstat))
113 if (WEXITSTATUS(wstat) != 0)
114 warn("%s exited with code %d", promptprog, WEXITSTATUS(wstat));
/illumos-gate/usr/src/cmd/csh/
H A Dwait3.c58 static int wstat(int code, int status);
99 *status = wstat(info.si_code, info.si_status);
111 wstat(int code, int status) function
/illumos-gate/usr/src/ucblib/libucb/port/sys/
H A Dwait4.c69 static int wstat(int, int);
132 *status = wstat(info.si_code, info.si_status);
143 wstat(int code, int status) function
/illumos-gate/usr/src/cmd/ptools/preap/
H A Dpreap.c194 print_exit_status(pid_t pid, int wstat) argument
197 if (WIFSIGNALED(wstat)) {
199 int sig = WTERMSIG(wstat);
206 if (WCOREDUMP(wstat))
209 (void) printf("exited with status %d", WEXITSTATUS(wstat));
260 int wstat, r; local
262 retc += r = reap(*argv++, &pid, &wstat);
265 print_exit_status(pid, wstat);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dwaitpid.c52 wstat(int code, int status) function
105 *stat_loc = wstat(info.si_code, info.si_status);
180 *stat_loc = wstat(info.si_code, info.si_status);
/illumos-gate/usr/src/lib/libexacct/demo/
H A Dexdump.c282 int wstat = o->eo_item.ei_uint32; local
285 if (WIFEXITED(wstat))
287 WEXITSTATUS(wstat));
288 else if (WIFSIGNALED(wstat))
290 WTERMSIG(wstat));
292 (void) printf("%d", wstat);
294 (void) printf("%d", wstat);
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dwait.c163 static int wstat(int, int);
233 *status = wstat(info.si_code, info.si_status);
245 wstat(int code, int status) function
/illumos-gate/usr/src/cmd/dtrace/test/cmd/scripts/
H A Ddtest.pl460 $wstat = $?;
461 $wifexited = ($wstat & 0xFF) == 0;
462 $wexitstat = ($wstat >> 8) & 0xFF;
463 $wtermsig = ($wstat & 0x7F);
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Djobs.c42 # define WIFCONTINUED(wstat) (0)
251 int nochild=0, oerrno, wstat; local
280 pid = waitpid((pid_t)-1,&wstat,flags);
289 pid = waitpid((pid_t)-1,&wstat,flags&=~WCONTINUED);
304 if (WIFCONTINUED(wstat) && wcontinued)
316 if(jp && WIFSTOPPED(wstat))
325 if(WIFSTOPPED(wstat))
335 pw->p_exit = WSTOPSIG(wstat);
340 else if (WIFCONTINUED(wstat) && wcontinued)
357 if (WIFSIGNALED(wstat))
[all...]
/illumos-gate/usr/src/cmd/logadm/
H A Dmain.c1048 int wstat; local
1053 if (waitpid(pid, &wstat, 0) < 0)
1067 } else if (WIFSIGNALED(wstat))
1070 WTERMSIG(wstat),
1078 else if (WIFEXITED(wstat) && WEXITSTATUS(wstat))
1081 WEXITSTATUS(wstat),
/illumos-gate/usr/src/cmd/fs.d/
H A Dumount.c869 int wstat, child, ret; local
872 if ((child = wait(&wstat)) == -1)
875 if (WIFEXITED(wstat)) /* this should always be true */
876 ret = WEXITSTATUS(wstat);
H A Dmount.c1395 int child, wstat; local
1397 if ((child = wait(&wstat)) == -1)
1400 return (cleanupkid(child, wstat) != 0);
1409 cleanupkid(pid_t pid, int wstat) argument
1414 if (WIFEXITED(wstat)) /* this should always be true */
1415 ret = WEXITSTATUS(wstat);
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_signal.c564 wstat(int code, int status) function
603 rval->sys_rval2 = wstat(info.si_code, info.si_status);
/illumos-gate/usr/src/uts/common/os/
H A Dexacct.c930 int flag, int wstat)
972 pu->pu_wstat = wstat;
1100 exacct_do_commit_proc(ac_info_t *ac_proc, proc_t *p, int wstat) argument
1122 exacct_calculate_proc_usage(p, pu, mask, EW_FINAL, wstat);
1148 exacct_commit_proc(proc_t *p, int wstat) argument
1167 exacct_do_commit_proc(&acg->ac_proc, p, wstat);
1170 exacct_do_commit_proc(&gacg->ac_proc, p, wstat);
929 exacct_calculate_proc_usage(proc_t *p, proc_usage_t *pu, ulong_t *mask, int flag, int wstat) argument
H A Dexit.c81 wstat(int code, int data) function
103 cmn_err(CE_PANIC, "wstat: bad code");
566 rv = wstat(why, what);
/illumos-gate/usr/src/uts/common/io/audio/drv/audiopci/
H A Daudiopci.c206 audiopci_ak_wait(audiopci_dev_t *dev, uint8_t wstat) argument
209 if (!(GET8(dev, CONC_bCODECSTAT_OFF) & wstat))
229 uint8_t wstat; local
234 wstat = addr == CODEC_RESET_PWRD ? CONC_CSTAT_CWRIP : CONC_CSTAT_CSTAT;
237 if (audiopci_ak_wait(dev, wstat) != DDI_SUCCESS) {
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Dplatform.c1017 int wstat, count; local
1024 if (waitpid(pid, &wstat, 0) < 0)
1050 } else if (WIFSIGNALED(wstat))
1054 else if (WIFEXITED(wstat) && WEXITSTATUS(wstat))
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_cc.c1815 int wstat, estat; local
1898 } while (waitpid(pid, &wstat, 0) == -1 && errno == EINTR);
1903 dt_dprintf("%s returned exit status 0x%x\n", dtp->dt_cpp_path, wstat);
1904 estat = WIFEXITED(wstat) ? WEXITSTATUS(wstat) : -1;
/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf_notes.c233 bigwad->psinfo.pr_wstat = wstat(CLD_DUMPED, sig);
/illumos-gate/usr/src/uts/common/sys/
H A Dproc.h812 extern int wstat(int, int);
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprsubr.c2286 psp->pr_wstat = wstat(wcode, p->p_wdata);
2416 extern int wstat(int, int); /* needs a header file */
2420 psp->pr_wstat = wstat(wcode, p->p_wdata);
H A Dprioctl.c1592 psp->pr_wstat = wstat(wcode, p->p_wdata);
3431 psp->pr_wstat = wstat(wcode, p->p_wdata);

Completed in 126 milliseconds