| /freebsd-12.1/release/picobsd/tinyware/passwd/ |
| H A D | pw_util.c | 174 int pstat; in pw_mkdb() local 190 pid = waitpid(pid, &pstat, 0); in pw_mkdb() 191 if (pid == -1 || !WIFEXITED(pstat) || WEXITSTATUS(pstat) != 0) in pw_mkdb() 200 int pstat; in pw_edit() local 220 editpid = waitpid(editpid, (int *)&pstat, WUNTRACED); in pw_edit() 221 errno = WEXITSTATUS(pstat); in pw_edit() 224 else if (WIFSTOPPED(pstat)) in pw_edit() 225 raise(WSTOPSIG(pstat)); in pw_edit() 226 else if (WIFEXITED(pstat) && errno == 0) in pw_edit()
|
| /freebsd-12.1/contrib/nvi/ex/ |
| H A D | ex_shell.c | 156 int nf, pstat; in proc_wait() local 162 if (waitpid((pid_t)pid, &pstat, 0) != -1) in proc_wait() 175 if (WIFSIGNALED(pstat) && (!okpipe || WTERMSIG(pstat) != SIGPIPE)) { in proc_wait() 181 sigmsg(WTERMSIG(pstat)), in proc_wait() 182 WCOREDUMP(pstat) ? "; core dumped" : ""); in proc_wait() 188 if (WIFEXITED(pstat) && WEXITSTATUS(pstat)) { in proc_wait() 203 WEXITSTATUS(pstat)); in proc_wait()
|
| H A D | ex_cscope.c | 901 int i = 0, pstat; in terminate() local 943 (void)waitpid(csc->pid, &pstat, 0); in terminate()
|
| /freebsd-12.1/usr.bin/timeout/ |
| H A D | timeout.c | 168 int error, pstat, status; in main() local 292 pstat = status; in main() 345 while (!child_done && wait(&pstat) == -1) { in main() 353 if (WEXITSTATUS(pstat)) in main() 354 pstat = WEXITSTATUS(pstat); in main() 355 else if(WIFSIGNALED(pstat)) in main() 356 pstat = 128 + WTERMSIG(pstat); in main() 359 pstat = EXIT_TIMEOUT; in main() 361 return (pstat); in main()
|
| /freebsd-12.1/usr.sbin/pstat/ |
| H A D | Makefile | 4 PROG= pstat 5 LINKS= ${BINDIR}/pstat ${BINDIR}/swapinfo 6 MAN= pstat.8 7 MLINKS= pstat.8 swapinfo.8
|
| /freebsd-12.1/lib/libutil/ |
| H A D | pw_util.c | 248 int pstat; in pw_mkdb() local 270 if (waitpid(pid, &pstat, 0) == -1) in pw_mkdb() 272 if (WIFEXITED(pstat) && WEXITSTATUS(pstat) == 0) in pw_mkdb() 289 int pstat; in pw_edit() local 322 if (waitpid(editpid, &pstat, WUNTRACED) == -1) { in pw_edit() 328 } else if (WIFSTOPPED(pstat)) { in pw_edit() 329 raise(WSTOPSIG(pstat)); in pw_edit() 330 } else if (WIFEXITED(pstat) && WEXITSTATUS(pstat) == 0) { in pw_edit()
|
| /freebsd-12.1/lib/libc/stdlib/ |
| H A D | system.c | 64 int pstat; in __libc_system() local 105 pid = _wait4(savedpid, &pstat, 0, (struct rusage *)0); in __libc_system() 110 return (pid == -1 ? -1 : pstat); in __libc_system()
|
| /freebsd-12.1/lib/libc/gen/ |
| H A D | popen.c | 198 int pstat; in pclose() local 223 pid = _wait4(cur->pid, &pstat, 0, (struct rusage *)0); in pclose() 228 return (pid == -1 ? -1 : pstat); in pclose()
|
| /freebsd-12.1/usr.bin/apply/ |
| H A D | apply.c | 223 int omask, pstat; in exec_shell() local 241 pid = waitpid(pid, &pstat, 0); in exec_shell() 245 return(pid == -1 ? -1 : pstat); in exec_shell()
|
| /freebsd-12.1/contrib/blacklist/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()
|
| /freebsd-12.1/usr.sbin/pkg/ |
| H A D | pkg.c | 146 int pstat; in install_pkg_static() local 164 while (waitpid(pid, &pstat, 0) == -1) in install_pkg_static() 168 if (WEXITSTATUS(pstat)) in install_pkg_static() 169 return (WEXITSTATUS(pstat)); in install_pkg_static() 170 else if (WIFSIGNALED(pstat)) in install_pkg_static() 171 return (128 & (WTERMSIG(pstat))); in install_pkg_static() 172 return (pstat); in install_pkg_static()
|
| /freebsd-12.1/usr.sbin/crashinfo/ |
| H A D | crashinfo.sh | 280 pstat -M $VMCORE -N $KERNEL -T 286 pstat -M $VMCORE -N $KERNEL -s
|
| /freebsd-12.1/contrib/pf/pflogd/ |
| H A D | pflogd.c | 635 struct pcap_stat pstat; local 636 if (pcap_stats(hpcap, &pstat) < 0) 641 pstat.ps_recv, pstat.ps_drop, packets_dropped);
|
| /freebsd-12.1/contrib/sendmail/src/ |
| H A D | parseaddr.c | 1796 int *pstat; 1816 *pstat = EX_TEMPFAIL; 1845 *pstat = EX_TEMPFAIL; 2655 int *pstat; 2716 *pstat = EX_TEMPFAIL; 2740 *pstat = EX_UNAVAILABLE; 2745 *pstat = EX_TEMPFAIL; 2759 *pstat = EX_TEMPFAIL; 2764 *pstat = EX_TEMPFAIL; 2769 *pstat = EX_TEMPFAIL; [all …]
|
| H A D | map.c | 5111 int *pstat; 5120 *pstat = EX_OK; 5163 if (*pstat == EX_OK) 5968 int *pstat; 6063 int *pstat; 6606 int *pstat; 6632 *pstat = EX_OK; 6707 int *pstat; 6709 *pstat = EX_NOTFOUND; 6739 int *pstat; [all …]
|
| H A D | alias.c | 209 aliaslookup(name, pstat, av) in aliaslookup() argument 211 int *pstat; 243 return (*map->map_class->map_lookup)(map, name, argv, pstat); 245 return (*map->map_class->map_lookup)(map, name, NULL, pstat);
|
| /freebsd-12.1/contrib/gdb/gdb/ |
| H A D | remote-rdp.c | 407 int *pstat; in send_rdp() local 431 pstat = va_arg (alist, int *); in send_rdp() 434 *pstat = get_byte (); in send_rdp() 436 if (*pstat) in send_rdp()
|
| /freebsd-12.1/crypto/openssh/openbsd-compat/ |
| H A D | setproctitle.c | 157 pstat(PSTAT_SETCMD, pst, strlen(ptitle), 0, 0); in setproctitle()
|
| /freebsd-12.1/sbin/devd/ |
| H A D | devd.cc | 230 int pstat; in my_system() local 270 pid = ::wait4(savedpid, &pstat, 0, (struct rusage *)0); in my_system() 277 return (pid == -1 ? -1 : pstat); in my_system()
|
| /freebsd-12.1/usr.sbin/ |
| H A D | Makefile | 67 pstat \
|
| /freebsd-12.1/contrib/binutils/bfd/ |
| H A D | elf.c | 7756 pstatus_t pstat; in elfcore_grok_pstatus() local 7758 memcpy (&pstat, note->descdata, sizeof (pstat)); in elfcore_grok_pstatus() 7766 pstatus32_t pstat; in elfcore_grok_pstatus() local 7768 memcpy (&pstat, note->descdata, sizeof (pstat)); in elfcore_grok_pstatus() 8446 pstatus32_t pstat; in elfcore_write_pstatus() local 8448 memset (&pstat, 0, sizeof (pstat)); in elfcore_write_pstatus() 8449 pstat.pr_pid = pid & 0xffff; in elfcore_write_pstatus() 8451 NT_PSTATUS, &pstat, sizeof (pstat)); in elfcore_write_pstatus() 8457 pstatus_t pstat; in elfcore_write_pstatus() local 8459 memset (&pstat, 0, sizeof (pstat)); in elfcore_write_pstatus() [all …]
|
| /freebsd-12.1/usr.sbin/crunch/examples/ |
| H A D | really-big.conf | 73 progs pstat pwd_mkdb quot quotaon rarpd rbootd repquota rmt rpc.bootparamd
|
| /freebsd-12.1/contrib/gcclibs/libiberty/ |
| H A D | config.in | 283 /* Define to 1 if you have the <sys/pstat.h> header file. */
|
| /freebsd-12.1/contrib/binutils/libiberty/ |
| H A D | config.in | 283 /* Define to 1 if you have the <sys/pstat.h> header file. */
|
| /freebsd-12.1/usr.sbin/pmcstudy/ |
| H A D | pmcstudy.c | 153 int pstat; in my_pclose() local 163 pid = wait4(the_pid, &pstat, 0, (struct rusage *)0); in my_pclose()
|