/freebsd/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()
|
/freebsd/bin/timeout/ |
H A D | timeout.c | 181 int error, pstat, status; in main() local 312 pstat = status; in main() 365 while (!child_done && wait(&pstat) == -1) { in main() 373 if (WEXITSTATUS(pstat)) in main() 374 pstat = WEXITSTATUS(pstat); in main() 375 else if (WIFSIGNALED(pstat)) in main() 376 pstat = 128 + WTERMSIG(pstat); in main() 379 pstat = EXIT_TIMEOUT; in main() 381 return (pstat); in main()
|
/freebsd/usr.sbin/pstat/ |
H A D | Makefile | 1 PROG= pstat 2 LINKS= ${BINDIR}/pstat ${BINDIR}/swapinfo 3 MAN= pstat.8 4 MLINKS= pstat.8 swapinfo.8
|
/freebsd/tools/test/stress2/misc/ |
H A D | sysctl.sh | 32 pstat -T | grep -q files || echo "pstat -T Failed" 33 pstat -f | grep -q inode || echo "pstat -f Failed" 34 pstat -s | grep -q /dev/ || echo "pstat -s Failed" 35 pstat -t | grep -q tty || echo "pstat -t Failed"
|
H A D | mountu.sh | 48 pstat() { function 56 if pstat $!| awk "\$2 == \"$map\"" | grep -q " rw-"; then 61 pstat $! | awk "\$2 == \"$map\"" 91 r=`pstat $! | awk "\\$2 == \"$map\""` 114 r=`pstat $! | awk "\\$2 == \"$map\""` 140 r=`pstat $! | awk "\\$2 == \"$map\""` 163 r=`pstat $! | awk "\\$2 == \"$map\""`
|
H A D | signal.sh | 200 rm -f gdbfifo gdbout pstat /tmp/waitthread 224 procstat -t $pid > pstat 226 t1=`grep fifo pstat | awk '{print $2}'` 227 t2=`grep umtxn pstat | awk '{print $2}' | tail -1`
|
/freebsd/lib/libutil/ |
H A D | pw_util.c | 245 int pstat; in pw_mkdb() local 267 if (waitpid(pid, &pstat, 0) == -1) in pw_mkdb() 269 if (WIFEXITED(pstat) && WEXITSTATUS(pstat) == 0) in pw_mkdb() 286 int pstat; in pw_edit() local 320 if (waitpid(editpid, &pstat, WUNTRACED) == -1) { in pw_edit() 326 } else if (WIFSTOPPED(pstat)) { in pw_edit() 327 raise(WSTOPSIG(pstat)); in pw_edit() 328 } else if (WIFEXITED(pstat)) { in pw_edit() 329 if (WEXITSTATUS(pstat) != 0) in pw_edit() 330 errx(1, "\"%s\" exited with status %d", editor, WEXITSTATUS(pstat)); in pw_edit()
|
/freebsd/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/contrib/bc/src/ |
H A D | read.c | 270 struct stat pstat; in bc_read_file() local 285 memset(&pstat, 0, sizeof(struct stat)); in bc_read_file() 295 if (BC_ERR(fstat(fd, &pstat) == -1)) goto malloc_err; in bc_read_file() 298 if (BC_ERR(S_ISDIR(pstat.st_mode))) in bc_read_file() 305 size = (size_t) pstat.st_size; in bc_read_file()
|
/freebsd/lib/libc/stdlib/ |
H A D | system.c | 58 int pstat; in __libc_system() local 99 pid = _wait4(savedpid, &pstat, 0, (struct rusage *)0); in __libc_system() 104 return (pid == -1 ? -1 : pstat); in __libc_system()
|
/freebsd/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/contrib/bc/gen/ |
H A D | strgen.c | 150 struct stat pstat; in bc_read_file() local 163 memset(&pstat, 0, sizeof(struct stat)); in bc_read_file() 177 if (BC_ERR(fstat(fd, &pstat) == -1)) in bc_read_file() 184 if (BC_ERR(S_ISDIR(pstat.st_mode))) in bc_read_file() 191 size = (size_t) pstat.st_size; in bc_read_file()
|
/freebsd/libexec/flua/modules/ |
H A D | lfbsd.c | 68 int r, pstat; in lua_exec() local 96 while (waitpid(pid, &pstat, 0) == -1) { in lua_exec() 105 if (WEXITSTATUS(pstat) != 0) { in lua_exec()
|
/freebsd/lib/libc/gen/ |
H A D | popen.c | 192 int pstat; in pclose() local 217 pid = _wait4(cur->pid, &pstat, 0, (struct rusage *)0); in pclose() 222 return (pid == -1 ? -1 : pstat); in pclose()
|
/freebsd/usr.bin/apply/ |
H A D | apply.c | 215 int omask, pstat; in exec_shell() local 233 pid = waitpid(pid, &pstat, 0); in exec_shell() 237 return(pid == -1 ? -1 : pstat); in exec_shell()
|
/freebsd/contrib/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()
|
/freebsd/usr.sbin/crashinfo/ |
H A D | crashinfo.sh | 265 pstat -M $VMCORE -N $KERNEL -T 271 pstat -M $VMCORE -N $KERNEL -s
|
/freebsd/usr.sbin/pkg/ |
H A D | pkg.c | 224 int pstat; in install_pkg_static() local 242 while (waitpid(pid, &pstat, 0) == -1) in install_pkg_static() 246 if (WEXITSTATUS(pstat)) in install_pkg_static() 247 return (WEXITSTATUS(pstat)); in install_pkg_static() 248 else if (WIFSIGNALED(pstat)) in install_pkg_static() 249 return (128 & (WTERMSIG(pstat))); in install_pkg_static() 250 return (pstat); in install_pkg_static()
|
/freebsd/contrib/pf/pflogd/ |
H A D | pflogd.c | 643 struct pcap_stat pstat; local 644 if (pcap_stats(hpcap, &pstat) < 0) 649 pstat.ps_recv, pstat.ps_drop, packets_dropped);
|
/freebsd/contrib/sendmail/src/ |
H A D | map.c | 5789 ph_map_lookup(map, key, args, pstat) in ph_map_lookup() argument 5793 int *pstat; 5802 *pstat = EX_OK; 5815 *pstat = EX_TEMPFAIL; 5824 *pstat = EX_TEMPFAIL; 5826 *pstat = EX_UNAVAILABLE; 5837 if (*pstat == EX_TEMPFAIL) 5845 if (*pstat == EX_OK) 6652 stab_map_lookup(map, name, av, pstat) in stab_map_lookup() argument 6656 int *pstat; [all …]
|
H A D | parseaddr.c | 1835 map_lookup(smap, key, argvect, pstat, e) in map_lookup() argument 1839 int *pstat; 1860 *pstat = EX_TEMPFAIL; 1894 *pstat = EX_TEMPFAIL; 2707 remotename(name, m, flags, pstat, e) in remotename() argument 2711 int *pstat; 2772 *pstat = EX_TEMPFAIL; 2796 *pstat = EX_UNAVAILABLE; 2801 *pstat = EX_TEMPFAIL; 2815 *pstat = EX_TEMPFAIL; [all …]
|
H A D | alias.c | 209 aliaslookup(name, pstat, av) in aliaslookup() argument 211 int *pstat; 255 res = (*map->map_class->map_lookup)(map, name, argv, pstat);
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | setproctitle.c | 158 pstat(PSTAT_SETCMD, pst, strlen(ptitle), 0, 0); in setproctitle()
|
/freebsd/sbin/devd/ |
H A D | devd.cc | 228 int pstat; in my_system() local 268 pid = ::wait4(savedpid, &pstat, 0, (struct rusage *)0); in my_system() 275 return (pid == -1 ? -1 : pstat); in my_system()
|
/freebsd/usr.sbin/ |
H A D | Makefile | 65 pstat \
|