Home
last modified time | relevance | path

Searched refs:wstat (Results 1 – 25 of 27) sorted by path

12

/illumos-gate/usr/src/cmd/abi/appcert/etc/
H A Detc.scoped.in1608 SCOPED_SYMBOL|SunOS_5.6|libucb.so.1|wstat
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/
H A Dpassprompt.c36 int readgood, wstat; in promptpass() local
105 while (waitpid(kid, &wstat, 0) < 0) { in promptpass()
116 if (!WIFEXITED(wstat)) in promptpass()
118 if (WEXITSTATUS(wstat) != 0) in promptpass()
119 warn("%s exited with code %d", promptprog, WEXITSTATUS(wstat)); in promptpass()
/illumos-gate/usr/src/cmd/csh/
H A Dwait3.c56 static int wstat(int code, int status);
97 *status = wstat(info.si_code, info.si_status); in csh_wait3()
109 wstat(int code, int status) in wstat() 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/cmd/fm/modules/common/eversholt/
H A Dplatform.c1019 int wstat, count; in forkandexecve() local
1026 if (waitpid(pid, &wstat, 0) < 0) in forkandexecve()
1052 } else if (WIFSIGNALED(wstat)) in forkandexecve()
1056 else if (WIFEXITED(wstat) && WEXITSTATUS(wstat)) in forkandexecve()
/illumos-gate/usr/src/cmd/fs.d/
H A Dmount.c1404 int child, wstat; in dowait() local
1406 if ((child = wait(&wstat)) == -1) in dowait()
1409 return (cleanupkid(child, wstat) != 0); in dowait()
1418 cleanupkid(pid_t pid, int wstat) in cleanupkid() argument
1423 if (WIFEXITED(wstat)) /* this should always be true */ in cleanupkid()
1424 ret = WEXITSTATUS(wstat); in cleanupkid()
H A Dumount.c882 int wstat, child, ret; in dowait() local
885 if ((child = wait(&wstat)) == -1) in dowait()
888 if (WIFEXITED(wstat)) /* this should always be true */ in dowait()
889 ret = WEXITSTATUS(wstat); in dowait()
/illumos-gate/usr/src/cmd/logadm/
H A Dmain.c1049 int wstat; in docmd() local
1087 if (waitpid(pid, &wstat, 0) < 0) { in docmd()
1094 } else if (WIFSIGNALED(wstat)) { in docmd()
1097 WTERMSIG(wstat), in docmd()
1105 } else if (WIFEXITED(wstat) && WEXITSTATUS(wstat)) { in docmd()
1108 WEXITSTATUS(wstat), in docmd()
/illumos-gate/usr/src/cmd/praudit/
H A Dformat.c1956 int rstat, wstat; in pa_string() local
1967 rstat = wstat = 0; in pa_string()
1970 while (wstat == 0) { in pa_string()
1976 wstat = pa_putstr(context, printable, &c, 1); in pa_string()
1982 while (wstat == 0) { in pa_string()
2004 wstat = pa_putstr(context, printable, mbuf, rlen); in pa_string()
2013 if (wstat == 0) in pa_string()
2014 wstat = do_newline(context, flag); in pa_string()
2016 return ((rstat != 0 || wstat != 0) ? -1 : 0); in pa_string()
/illumos-gate/usr/src/cmd/ptools/preap/
H A Dpreap.c192 print_exit_status(pid_t pid, int wstat) in print_exit_status() argument
195 if (WIFSIGNALED(wstat)) { in print_exit_status()
197 int sig = WTERMSIG(wstat); in print_exit_status()
204 if (WCOREDUMP(wstat)) in print_exit_status()
207 (void) printf("exited with status %d", WEXITSTATUS(wstat)); in print_exit_status()
258 int wstat, r; in main() local
260 retc += r = reap(*argv++, &pid, &wstat); in main()
263 print_exit_status(pid, wstat); in main()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Djobs.c42 # define WIFCONTINUED(wstat) (0) argument
345 int nochild=0, oerrno, wstat; in job_reap() local
396 wstat = cjp->status <<8; in job_reap()
398 wstat = cjp->status-256; in job_reap()
428 if(wstat==0) in job_reap()
451 if(jp && WIFSTOPPED(wstat)) in job_reap()
462 else if(WIFSTOPPED(wstat)) in job_reap()
465 pw->p_exit = WSTOPSIG(wstat); in job_reap()
492 if (WIFSIGNALED(wstat)) in job_reap()
495 if (WTERMCORE(wstat)) in job_reap()
[all …]
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_signal.c564 wstat(int code, int status) in wstat() function
603 rval->sys_rval2 = wstat(info.si_code, info.si_status); in s10_wait()
/illumos-gate/usr/src/lib/lib9p/common/backend/
H A Dbackend.h44 int (*wstat)(void *, struct l9p_request *); member
H A Dfs.c3138 backend->wstat = fs_wstat; in l9p_backend_fs_init()
/illumos-gate/usr/src/lib/lib9p/common/
H A Drequest.c980 error = be->wstat != NULL ? be->wstat(be->softc, req) : ENOSYS; in l9p_dispatch_twstat()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dwaitpid.c50 wstat(int code, int status) in wstat() function
103 *stat_loc = wstat(info.si_code, info.si_status); in waitpid()
178 *stat_loc = wstat(info.si_code, info.si_status); in wait4()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_cc.c1815 int wstat, estat; in dt_preproc() local
1898 } while (waitpid(pid, &wstat, 0) == -1 && errno == EINTR); in dt_preproc()
1903 dt_dprintf("%s returned exit status 0x%x\n", dtp->dt_cpp_path, wstat); in dt_preproc()
1904 estat = WIFEXITED(wstat) ? WEXITSTATUS(wstat) : -1; in dt_preproc()
/illumos-gate/usr/src/lib/libexacct/demo/
H A Dexdump.c280 int wstat = o->eo_item.ei_uint32; in disp_obj() local
283 if (WIFEXITED(wstat)) in disp_obj()
285 WEXITSTATUS(wstat)); in disp_obj()
286 else if (WIFSIGNALED(wstat)) in disp_obj()
288 WTERMSIG(wstat)); in disp_obj()
290 (void) printf("%d", wstat); in disp_obj()
292 (void) printf("%d", wstat); in disp_obj()
/illumos-gate/usr/src/test/libc-tests/tests/fexecve/
H A Dfexecve_test.c46 int wstat; in forkit() local
87 if (waitpid(pid, &wstat, 0) < 0) { in forkit()
92 if (!WIFEXITED(wstat) || WEXITSTATUS(wstat) != 0) { in forkit()
93 test_failed(t, "child failed: %#x", wstat); in forkit()
/illumos-gate/usr/src/ucblib/libucb/port/sys/
H A Dwait4.c67 static int wstat(int, int);
130 *status = wstat(info.si_code, info.si_status); in wait4()
141 wstat(int code, int status) in wstat() function
/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf_notes.c244 bigwad->psinfo.pr_wstat = wstat(CLD_DUMPED, sig); in write_elfnotes()
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprioctl.c1564 psp->pr_wstat = wstat(wcode, p->p_wdata); in oprgetpsinfo32()
3375 psp->pr_wstat = wstat(wcode, p->p_wdata); in oprgetpsinfo()
H A Dprsubr.c2538 psp->pr_wstat = wstat(wcode, p->p_wdata); in prgetpsinfo()
3199 extern int wstat(int, int); /* needs a header file */ in prgetpsinfo32()
3203 psp->pr_wstat = wstat(wcode, p->p_wdata); in prgetpsinfo32()
/illumos-gate/usr/src/uts/common/io/audio/drv/audiopci/
H A Daudiopci.c206 audiopci_ak_wait(audiopci_dev_t *dev, uint8_t wstat) in audiopci_ak_wait() argument
209 if (!(GET8(dev, CONC_bCODECSTAT_OFF) & wstat)) in audiopci_ak_wait()
229 uint8_t wstat; in audiopci_ak_write() local
234 wstat = addr == CODEC_RESET_PWRD ? CONC_CSTAT_CWRIP : CONC_CSTAT_CSTAT; in audiopci_ak_write()
237 if (audiopci_ak_wait(dev, wstat) != DDI_SUCCESS) { in audiopci_ak_write()
/illumos-gate/usr/src/uts/common/os/
H A Dexacct.c932 int flag, int wstat) in exacct_calculate_proc_usage() argument
974 pu->pu_wstat = wstat; in exacct_calculate_proc_usage()
1105 exacct_do_commit_proc(ac_info_t *ac_proc, proc_t *p, int wstat) in exacct_do_commit_proc() argument
1127 exacct_calculate_proc_usage(p, pu, mask, EW_FINAL, wstat); in exacct_do_commit_proc()
1153 exacct_commit_proc(proc_t *p, int wstat) in exacct_commit_proc() argument
1172 exacct_do_commit_proc(&acg->ac_proc, p, wstat); in exacct_commit_proc()
1175 exacct_do_commit_proc(&gacg->ac_proc, p, wstat); in exacct_commit_proc()

12