Home
last modified time | relevance | path

Searched refs:stat_loc (Results 1 – 7 of 7) sorted by relevance

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dwaitpid.c76 waitpid(pid_t pid, int *stat_loc, int options) in waitpid() argument
102 if (stat_loc) in waitpid()
103 *stat_loc = wstat(info.si_code, info.si_status); in waitpid()
109 wait(int *stat_loc) in wait() argument
111 return (waitpid(-1, stat_loc, 0)); in wait()
115 wait4(pid_t pid, int *stat_loc, int options, struct rusage *rp) in wait4() argument
177 if (stat_loc) in wait4()
178 *stat_loc = wstat(info.si_code, info.si_status); in wait4()
186 wait3(int *stat_loc, int options, struct rusage *rp) in wait3() argument
188 return (wait4(0, stat_loc, options, rp)); in wait3()
/illumos-gate/usr/src/cmd/abi/apptracecmd/
H A Dapptrace.c101 int stat_loc; in main() local
234 wret = waitpid(pid, &stat_loc, 0); in main()
250 if (WIFSIGNALED(stat_loc)) { in main()
252 command, argv[0], strsignal(WTERMSIG(stat_loc))); in main()
253 if (WCOREDUMP(stat_loc)) { in main()
267 return (WEXITSTATUS(stat_loc)); in main()
/illumos-gate/usr/src/cmd/xargs/
H A Dxargs.c159 static pid_t procs_waitpid(boolean_t blocking, int *stat_loc);
998 procs_waitpid(boolean_t blocking, int *stat_loc) in procs_waitpid() argument
1013 while ((child = waitpid((pid_t)-1, stat_loc, options)) > 0) { in procs_waitpid()
1026 int stat_loc; in procs_wait() local
1034 while ((child = procs_waitpid(blocking, &stat_loc)) > 0) { in procs_wait()
1035 if (WIFSIGNALED(stat_loc)) { in procs_wait()
1036 EMSG2(CHILDSIG, WTERMSIG(stat_loc)); in procs_wait()
1039 } else if ((WEXITSTATUS(stat_loc) & 0377) == 0377) { in procs_wait()
1044 exitstat |= WEXITSTATUS(stat_loc); in procs_wait()
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dautod_mount.c391 int stat_loc; in automountd_do_fork_exec() local
445 (void) waitpid(child_pid, &stat_loc, WUNTRACED); in automountd_do_fork_exec()
447 if (WIFEXITED(stat_loc)) { in automountd_do_fork_exec()
451 WEXITSTATUS(stat_loc)); in automountd_do_fork_exec()
454 res = WEXITSTATUS(stat_loc); in automountd_do_fork_exec()
455 } else if (WIFSIGNALED(stat_loc)) { in automountd_do_fork_exec()
459 WTERMSIG(stat_loc)); in automountd_do_fork_exec()
/illumos-gate/usr/src/cmd/geniconvtbl/
H A Ditmcomp.c246 int stat_loc; in wait_child() local
249 (void) waitpid(pid, &stat_loc, 0); in wait_child()
250 if (WTERMSIG(stat_loc)) { in wait_child()
251 if (WCOREDUMP(stat_loc)) { in wait_child()
256 itm_error(msgstr, strsignal(WTERMSIG(stat_loc))); in wait_child()
/illumos-gate/usr/src/cmd/cron/
H A Dcrontab.c137 int stat_loc; in main() local
386 wait(&stat_loc); in main()
387 if ((stat_loc & 0xFF00) != 0) in main()
/illumos-gate/usr/src/cmd/modload/
H A Ddrvsubr.c1184 uint_t stat_loc; in exec_command() local
1201 waitstat = waitpid(pid, (int *)&stat_loc, 0); in exec_command()
1203 } while ((!WIFEXITED(stat_loc) && in exec_command()
1204 !WIFSIGNALED(stat_loc)) || (waitstat == 0)); in exec_command()
1206 exit_status = WEXITSTATUS(stat_loc); in exec_command()