| /netbsd-src/usr.bin/timeout/ |
| H A D | timeout.c | 189 int error, pstat, status; in main() local 314 pstat = status; in main() 350 while (cpid != pid && wait(&pstat) == -1) { in main() 355 if (WEXITSTATUS(pstat)) in main() 356 pstat = WEXITSTATUS(pstat); in main() 357 else if(WIFSIGNALED(pstat)) in main() 358 pstat = 128 + WTERMSIG(pstat); in main() 361 pstat = EXIT_TIMEOUT; in main() 363 return (pstat); in main()
|
| /netbsd-src/external/bsd/nvi/dist/ex/ |
| H A D | ex_shell.c | 157 int nf, pstat; in proc_wait() local 163 if (waitpid((pid_t)pid, &pstat, 0) != -1) in proc_wait() 176 if (WIFSIGNALED(pstat) && (!okpipe || WTERMSIG(pstat) != SIGPIPE)) { in proc_wait() 182 sigmsg(WTERMSIG(pstat)), in proc_wait() 183 WCOREDUMP(pstat) ? "; core dumped" : ""); in proc_wait() 189 if (WIFEXITED(pstat) && WEXITSTATUS(pstat)) { in proc_wait() 204 WEXITSTATUS(pstat)); in proc_wait()
|
| H A D | ex_cscope.c | 866 int i, pstat; in terminate() local 899 (void)waitpid(csc->pid, &pstat, 0); in terminate()
|
| /netbsd-src/lib/libc/stdlib/ |
| H A D | system.c | 59 int pstat; in system() local 125 pstat = -1; in system() 129 while (waitpid(pid, &pstat, 0) == -1) { in system() 131 pstat = -1; in system() 140 return (pstat); in system()
|
| /netbsd-src/lib/libutil/ |
| H A D | passwd.c | 140 int pstat, i; in pw_mkdb() local 166 pid = waitpid(pid, &pstat, 0); in pw_mkdb() 171 if (WIFEXITED(pstat)) { in pw_mkdb() 172 if (WEXITSTATUS(pstat) != 0) { in pw_mkdb() 174 WEXITSTATUS(pstat)); in pw_mkdb() 177 } else if (WIFSIGNALED(pstat)) { in pw_mkdb() 178 warnx("pwd_mkdb exited with signal %d", WTERMSIG(pstat)); in pw_mkdb() 237 int pstat; in pw_edit() local 275 editpid = waitpid(editpid, (int *)&pstat, WUNTRACED); in pw_edit() 278 else if (WIFSTOPPED(pstat)) in pw_edit() [all …]
|
| /netbsd-src/usr.sbin/pstat/ |
| H A D | Makefile | 8 SRCS= pstat.c swaplist.c 9 PROG= pstat 10 MAN= pstat.8
|
| /netbsd-src/games/cribbage/ |
| H A D | instr.c | 61 int pstat; in instructions() local 93 pid = waitpid(pid, &pstat, 0); in instructions() 95 if (pid == -1 || WEXITSTATUS(pstat)) in instructions()
|
| /netbsd-src/lib/librmt/ |
| H A D | rmtlib.c | 107 sig_t pstat; in command() local 116 pstat = signal(SIGPIPE, SIG_IGN); in command() 118 signal(SIGPIPE, pstat); in command() 126 signal(SIGPIPE, pstat); in command() 447 sig_t pstat; in _rmt_write() local 455 pstat = signal(SIGPIPE, SIG_IGN); in _rmt_write() 457 signal(SIGPIPE, pstat); in _rmt_write() 461 signal(SIGPIPE, pstat); in _rmt_write()
|
| /netbsd-src/usr.bin/patch/ |
| H A D | inp.c | 144 int ifd, statfailed, devnull, pstat; in plan_a() local 243 pid = waitpid(pid, &pstat, 0); in plan_a() 244 if (pid == -1 || WEXITSTATUS(pstat) != 0) { in plan_a() 265 pid = waitpid(pid, &pstat, 0); in plan_a() 266 if (pid == -1 || WEXITSTATUS(pstat) != 0 || in plan_a()
|
| /netbsd-src/usr.sbin/rpc.pcnfsd/ |
| H A D | pcnfsd_print.c | 952 pirstat pstat = PI_RES_NO_SUCH_PRINTER; in get_pr_status() local 981 pstat = PI_RES_FAIL; in get_pr_status() 1027 pstat = PI_RES_OK; in get_pr_status() 1031 return (pstat); in get_pr_status() 1122 pcrstat pstat = PC_RES_NO_SUCH_JOB; in pr_cancel() local 1140 pstat = PC_RES_OK; in pr_cancel() 1142 pstat = PC_RES_NO_SUCH_PRINTER; in pr_cancel() 1144 pstat = PC_RES_NOT_OWNER; in pr_cancel() 1148 return (pstat); in pr_cancel()
|
| /netbsd-src/external/bsd/blocklist/port/ |
| H A D | popenve.c | 236 int pstat; in pcloseve() local 268 pid = waitpid(cur->pid, &pstat, 0); in pcloseve() 273 return pid == -1 ? -1 : pstat; in pcloseve()
|
| /netbsd-src/lib/libc/gen/ |
| H A D | popen.c | 270 int pstat; in pclose() local 298 pid = waitpid(cur->pid, &pstat, 0); in pclose() 303 return pid == -1 ? -1 : pstat; in pclose()
|
| /netbsd-src/sys/kern/ |
| H A D | kern_entropy.c | 2555 rndpoolstat_t *pstat = data; in entropy_ioctl() 2560 pstat->poolsize = ENTPOOL_SIZE/sizeof(uint32_t); /* words */ in entropy_ioctl() 2561 pstat->threshold = MINENTROPYBITS/NBBY; /* bytes */ in entropy_ioctl() 2562 pstat->maxentropy = ENTROPY_CAPACITY*NBBY; /* bits */ in entropy_ioctl() 2565 pstat->added = 0; /* XXX total entropy_enter count */ in entropy_ioctl() 2566 pstat->curentropy = MINENTROPYBITS - E->bitsneeded; /* bits */ in entropy_ioctl() 2567 pstat->removed = 0; /* XXX total entropy_extract count */ in entropy_ioctl() 2568 pstat->discarded = 0; /* XXX bits of entropy beyond capacity */ in entropy_ioctl() 2575 pstat->generated = MINSAMPLES - E->samplesneeded; in entropy_ioctl() 2576 pstat in entropy_ioctl() 2515 rndpoolstat_t *pstat = data; entropy_ioctl() local [all...] |
| /netbsd-src/external/bsd/ntp/bin/ntptrace/ |
| H A D | ntptrace.awk | 96 command = "ntpq -n -c '\''pstat " peer "'\'' " host
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/fortran/ |
| H A D | trans.cc | 850 tree tmp, pstat; in gfc_allocate_using_caf_lib() local 856 pstat = null_pointer_node; in gfc_allocate_using_caf_lib() 858 pstat = gfc_build_addr_expr (NULL_TREE, status); in gfc_allocate_using_caf_lib() 874 pstat, errmsg, errlen); in gfc_allocate_using_caf_lib() 1541 tree cond2, pstat = null_pointer_node; in gfc_deallocate_with_status() local 1559 pstat = status; in gfc_deallocate_with_status() 1568 pstat, errmsg, errlen); in gfc_deallocate_with_status() 1712 tree pstat = null_pointer_node; in gfc_deallocate_scalar_with_status() local 1722 pstat = status; in gfc_deallocate_scalar_with_status() 1729 pstat, null_pointer_node, integer_zero_node); in gfc_deallocate_scalar_with_status()
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/fortran/ |
| H A D | trans.c | 777 tree tmp, pstat; in gfc_allocate_using_caf_lib() local 783 pstat = null_pointer_node; in gfc_allocate_using_caf_lib() 785 pstat = gfc_build_addr_expr (NULL_TREE, status); in gfc_allocate_using_caf_lib() 801 pstat, errmsg, errlen); in gfc_allocate_using_caf_lib() 1468 tree cond2, pstat = null_pointer_node; in gfc_deallocate_with_status() local 1486 pstat = status; in gfc_deallocate_with_status() 1495 pstat, errmsg, errlen); in gfc_deallocate_with_status() 1639 tree pstat = null_pointer_node; in gfc_deallocate_scalar_with_status() local 1649 pstat = status; in gfc_deallocate_scalar_with_status() 1656 pstat, null_pointer_node, integer_zero_node); in gfc_deallocate_scalar_with_status()
|
| /netbsd-src/usr.sbin/ |
| H A D | Makefile | 22 paxctl pcictl perfused psrset pstat pwd_mkdb postinstall \
|
| /netbsd-src/distrib/evbsh3/rom/ramdiskcommon/ |
| H A D | ramdiskbin.conf | 68 progs mtree pstat pwd_mkdb syslogd traceroute
|
| H A D | list | 115 LINK ramdiskbin usr/sbin/pstat
|
| /netbsd-src/external/gpl2/diffutils/dist/m4/ |
| H A D | prereq.m4 | 100 AC_CHECK_HEADERS(sys/pstat.h unistd.h)
|
| /netbsd-src/external/public-domain/xz/dist/m4/ |
| H A D | tuklib_physmem.m4 | 123 #include <sys/pstat.h>
|
| H A D | tuklib_cpucores.m4 | 133 #include <sys/pstat.h>
|
| /netbsd-src/external/gpl3/binutils.old/dist/bfd/ |
| H A D | elf.c | 10220 pstatus_t pstat; in elfcore_grok_pstatus() local 10222 memcpy (&pstat, note->descdata, sizeof (pstat)); in elfcore_grok_pstatus() 10224 elf_tdata (abfd)->core->pid = pstat.pr_pid; in elfcore_grok_pstatus() 10230 pstatus32_t pstat; in elfcore_grok_pstatus() local 10232 memcpy (&pstat, note->descdata, sizeof (pstat)); in elfcore_grok_pstatus() 10234 elf_tdata (abfd)->core->pid = pstat.pr_pid; in elfcore_grok_pstatus() 11893 pstatus32_t pstat; in elfcore_write_pstatus() local 11895 memset (&pstat, 0, sizeof (pstat)); in elfcore_write_pstatus() 11896 pstat.pr_pid = pid & 0xffff; in elfcore_write_pstatus() 11898 NT_PSTATUS, &pstat, sizeof (pstat)); in elfcore_write_pstatus() [all …]
|
| /netbsd-src/usr.bin/crunch/examples/ |
| H A D | really-big.conf | 72 progs pstat pwd_mkdb quot quotaon rarpd rbootd repquota rmt rpc.bootparamd
|
| /netbsd-src/external/gpl3/binutils/dist/bfd/ |
| H A D | elf.c | 10941 pstatus_t pstat; in elfcore_grok_pstatus() local 10943 memcpy (&pstat, note->descdata, sizeof (pstat)); in elfcore_grok_pstatus() 10945 elf_tdata (abfd)->core->pid = pstat.pr_pid; in elfcore_grok_pstatus() 10951 pstatus32_t pstat; in elfcore_grok_pstatus() local 10953 memcpy (&pstat, note->descdata, sizeof (pstat)); in elfcore_grok_pstatus() 10955 elf_tdata (abfd)->core->pid = pstat.pr_pid; in elfcore_grok_pstatus() 12632 pstatus32_t pstat; in elfcore_write_pstatus() local 12634 memset (&pstat, 0, sizeof (pstat)); in elfcore_write_pstatus() 12635 pstat.pr_pid = pid & 0xffff; in elfcore_write_pstatus() 12637 NT_PSTATUS, &pstat, sizeof (pstat)); in elfcore_write_pstatus() [all …]
|