| /freebsd-13.1/contrib/nvi/ex/ |
| H A D | ex_shell.c | 151 int nf, pstat; in proc_wait() local 157 if (waitpid((pid_t)pid, &pstat, 0) != -1) in proc_wait() 170 if (WIFSIGNALED(pstat) && (!okpipe || WTERMSIG(pstat) != SIGPIPE)) { in proc_wait() 176 sigmsg(WTERMSIG(pstat)), in proc_wait() 177 WCOREDUMP(pstat) ? "; core dumped" : ""); in proc_wait() 183 if (WIFEXITED(pstat) && WEXITSTATUS(pstat)) { in proc_wait() 198 WEXITSTATUS(pstat)); in proc_wait()
|
| H A D | ex_cscope.c | 906 int i = 0, pstat; in terminate() local 948 (void)waitpid(csc->pid, &pstat, 0); in terminate()
|
| /freebsd-13.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-13.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-13.1/tools/build/cross-build/ |
| H A D | closefrom.c | 115 struct pst_status pstat; in closefrom() local 118 if (pstat_getproc(&pstat, sizeof(pstat), 0, getpid()) != -1) { in closefrom() 119 for (fd = lowfd; fd <= pstat.pst_highestfd; fd++) in closefrom()
|
| /freebsd-13.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 323 if (waitpid(editpid, &pstat, WUNTRACED) == -1) { in pw_edit() 329 } else if (WIFSTOPPED(pstat)) { in pw_edit() 330 raise(WSTOPSIG(pstat)); in pw_edit() 331 } else if (WIFEXITED(pstat)) { in pw_edit() 332 if (WEXITSTATUS(pstat) != 0) in pw_edit() 333 errx(1, "\"%s\" exited with status %d", editor, WEXITSTATUS(pstat)); in pw_edit()
|
| /freebsd-13.1/contrib/bc/src/ |
| H A D | read.c | 240 struct stat pstat; in bc_read_file() local 251 memset(&pstat, 0, sizeof(struct stat)); in bc_read_file() 261 if (BC_ERR(fstat(fd, &pstat) == -1)) goto malloc_err; in bc_read_file() 264 if (BC_ERR(S_ISDIR(pstat.st_mode))) { in bc_read_file() 270 size = (size_t) pstat.st_size; in bc_read_file()
|
| /freebsd-13.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-13.1/contrib/lib9p/ |
| H A D | genacl.c | 246 struct stat *pstat, *cstat; in l9p_acl_check_access() local 255 pstat = args->aca_pstat; in l9p_acl_check_access() 285 assert(parent == NULL || pstat != NULL); in l9p_acl_check_access() 288 assert(pstat != NULL || cstat != NULL); in l9p_acl_check_access() 302 if (parent != NULL || pstat != NULL) { in l9p_acl_check_access() 331 panswer = l9p_check_aces(pop, parent, pstat, in l9p_acl_check_access() 386 parent, pstat, uid, gid, gids, ngids); in l9p_acl_check_access() 409 st = pstat; in l9p_acl_check_access()
|
| /freebsd-13.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-13.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-13.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-13.1/usr.sbin/pkg/ |
| H A D | pkg.c | 152 int pstat; in install_pkg_static() local 170 while (waitpid(pid, &pstat, 0) == -1) in install_pkg_static() 174 if (WEXITSTATUS(pstat)) in install_pkg_static() 175 return (WEXITSTATUS(pstat)); in install_pkg_static() 176 else if (WIFSIGNALED(pstat)) in install_pkg_static() 177 return (128 & (WTERMSIG(pstat))); in install_pkg_static() 178 return (pstat); in install_pkg_static()
|
| /freebsd-13.1/usr.sbin/crashinfo/ |
| H A D | crashinfo.sh | 281 pstat -M $VMCORE -N $KERNEL -T 287 pstat -M $VMCORE -N $KERNEL -s
|
| /freebsd-13.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-13.1/contrib/sendmail/src/ |
| H A D | parseaddr.c | 1805 int *pstat; 1826 *pstat = EX_TEMPFAIL; 1860 *pstat = EX_TEMPFAIL; 2674 int *pstat; 2735 *pstat = EX_TEMPFAIL; 2759 *pstat = EX_UNAVAILABLE; 2764 *pstat = EX_TEMPFAIL; 2778 *pstat = EX_TEMPFAIL; 2783 *pstat = EX_TEMPFAIL; 2788 *pstat = EX_TEMPFAIL; [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);
|
| H A D | map.c | 5536 int *pstat; 5545 *pstat = EX_OK; 5588 if (*pstat == EX_OK) 6393 int *pstat; 6488 int *pstat; 7069 int *pstat; 7095 *pstat = EX_OK; 7170 int *pstat; 7172 *pstat = EX_NOTFOUND; 7202 int *pstat; [all …]
|
| /freebsd-13.1/crypto/openssh/openbsd-compat/ |
| H A D | setproctitle.c | 158 pstat(PSTAT_SETCMD, pst, strlen(ptitle), 0, 0); in setproctitle()
|
| /freebsd-13.1/sbin/devd/ |
| H A D | devd.cc | 229 int pstat; in my_system() local 269 pid = ::wait4(savedpid, &pstat, 0, (struct rusage *)0); in my_system() 276 return (pid == -1 ? -1 : pstat); in my_system()
|
| /freebsd-13.1/usr.sbin/ |
| H A D | Makefile | 65 pstat \
|
| /freebsd-13.1/lib/libusb/ |
| H A D | libusb20.h | 252 int libusb20_dev_get_stats(struct libusb20_device *pdev, struct libusb20_device_stats *pstat);
|
| /freebsd-13.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-13.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()
|
| /freebsd-13.1/targets/pseudo/userland/ |
| H A D | Makefile.depend | 671 usr.sbin/pstat \
|