/freebsd-current/usr.sbin/pstat/ |
H A D | Makefile | 2 PROG= pstat 3 LINKS= ${BINDIR}/pstat ${BINDIR}/swapinfo 4 MAN= pstat.8 5 MLINKS= pstat.8 swapinfo.8
|
/freebsd-current/tools/test/stress2/misc/ |
H A D | sysctl.sh | 29 # sysctl(3) regression test by using pstat and vmstat 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 | 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`
|
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\""`
|
/freebsd-current/contrib/nvi/ex/ |
H A D | ex_shell.c | 151 int nf, pstat; local 157 if (waitpid((pid_t)pid, &pstat, 0) != -1) 170 if (WIFSIGNALED(pstat) && (!okpipe || WTERMSIG(pstat) != SIGPIPE)) { 176 sigmsg(WTERMSIG(pstat)), 177 WCOREDUMP(pstat) ? "; core dumped" : ""); 183 if (WIFEXITED(pstat) && WEXITSTATUS(pstat)) { 198 WEXITSTATUS(pstat));
|
/freebsd-current/lib/libc/stdlib/ |
H A D | system.c | 58 int pstat; local 99 pid = _wait4(savedpid, &pstat, 0, (struct rusage *)0); 104 return (pid == -1 ? -1 : pstat);
|
/freebsd-current/tools/build/cross-build/ |
H A D | closefrom.c | 35 # include <sys/pstat.h> 115 struct pst_status pstat; local 118 if (pstat_getproc(&pstat, sizeof(pstat), 0, getpid()) != -1) { 119 for (fd = lowfd; fd <= pstat.pst_highestfd; fd++)
|
/freebsd-current/bin/timeout/ |
H A D | timeout.c | 165 int error, pstat, status; local 288 pstat = status; 341 while (!child_done && wait(&pstat) == -1) { 349 if (WEXITSTATUS(pstat)) 350 pstat = WEXITSTATUS(pstat); 351 else if (WIFSIGNALED(pstat)) 352 pstat = 128 + WTERMSIG(pstat); 355 pstat [all...] |
/freebsd-current/libexec/flua/modules/ |
H A D | lfbsd.c | 68 int r, pstat; local 96 while (waitpid(pid, &pstat, 0) == -1) { 105 if (WEXITSTATUS(pstat) != 0) {
|
/freebsd-current/contrib/bc/src/ |
H A D | read.c | 270 struct stat pstat; local 285 memset(&pstat, 0, sizeof(struct stat)); 295 if (BC_ERR(fstat(fd, &pstat) == -1)) goto malloc_err; 298 if (BC_ERR(S_ISDIR(pstat.st_mode))) 305 size = (size_t) pstat.st_size;
|
/freebsd-current/contrib/bc/gen/ |
H A D | strgen.c | 150 struct stat pstat; local 163 memset(&pstat, 0, sizeof(struct stat)); 177 if (BC_ERR(fstat(fd, &pstat) == -1)) 184 if (BC_ERR(S_ISDIR(pstat.st_mode))) 191 size = (size_t) pstat.st_size;
|
/freebsd-current/usr.bin/apply/ |
H A D | apply.c | 215 int omask, pstat; local 233 pid = waitpid(pid, &pstat, 0); 237 return(pid == -1 ? -1 : pstat);
|
/freebsd-current/lib/libc/gen/ |
H A D | popen.c | 192 int pstat; local 217 pid = _wait4(cur->pid, &pstat, 0, (struct rusage *)0); 222 return (pid == -1 ? -1 : pstat);
|
/freebsd-current/contrib/lib9p/ |
H A D | genacl.c | 235 * Pass a NULL parent/pstat if they are not applicable, e.g., 246 struct stat *pstat, *cstat; local 255 pstat = args->aca_pstat; 285 assert(parent == NULL || pstat != NULL); 288 assert(pstat != NULL || cstat != NULL); 302 if (parent != NULL || pstat != NULL) { 322 * and no pstat, and hence won't actually *use* pop. 331 panswer = l9p_check_aces(pop, parent, pstat, 386 parent, pstat, uid, gid, gids, ngids); 409 st = pstat; [all...] |
/freebsd-current/crypto/openssh/openbsd-compat/ |
H A D | setproctitle.c | 43 #include <sys/pstat.h> 50 #define SPT_PSTAT 1 /* use pstat(PSTAT_SETCMD, ...) */ 158 pstat(PSTAT_SETCMD, pst, strlen(ptitle), 0, 0);
|
/freebsd-current/lib/libutil/ |
H A D | pw_util.c | 245 int pstat; local 267 if (waitpid(pid, &pstat, 0) == -1) 269 if (WIFEXITED(pstat) && WEXITSTATUS(pstat) == 0) 286 int pstat; local 320 if (waitpid(editpid, &pstat, WUNTRACED) == -1) { 326 } else if (WIFSTOPPED(pstat)) { 327 raise(WSTOPSIG(pstat)); 328 } else if (WIFEXITED(pstat)) { 329 if (WEXITSTATUS(pstat) ! [all...] |
/freebsd-current/usr.sbin/crashinfo/ |
H A D | crashinfo.sh | 263 echo "pstat -T" 265 pstat -M $VMCORE -N $KERNEL -T 269 echo "pstat -s" 271 pstat -M $VMCORE -N $KERNEL -s
|
/freebsd-current/contrib/xz/src/common/ |
H A D | tuklib_cpucores.c | 42 # include <sys/pstat.h>
|
/freebsd-current/contrib/blocklist/port/ |
H A D | popenve.c | 236 int pstat; local 268 pid = waitpid(cur->pid, &pstat, 0); 273 return pid == -1 ? -1 : pstat;
|
/freebsd-current/contrib/ntp/ntpsnmpd/ |
H A D | netsnmp_daemonize.c | 136 #include <sys/pstat.h>
|
/freebsd-current/usr.sbin/pkg/ |
H A D | pkg.c | 152 int pstat; local 170 while (waitpid(pid, &pstat, 0) == -1) 174 if (WEXITSTATUS(pstat)) 175 return (WEXITSTATUS(pstat)); 176 else if (WIFSIGNALED(pstat)) 177 return (128 & (WTERMSIG(pstat))); 178 return (pstat);
|
/freebsd-current/contrib/pf/pflogd/ |
H A D | pflogd.c | 632 struct pcap_stat pstat; local 633 if (pcap_stats(hpcap, &pstat) < 0) 638 pstat.ps_recv, pstat.ps_drop, packets_dropped);
|
/freebsd-current/contrib/sendmail/src/ |
H A D | parseaddr.c | 1825 ** pstat -- a pointer to an integer in which to store the 1835 map_lookup(smap, key, argvect, pstat, e) 1839 int *pstat; 1860 *pstat = EX_TEMPFAIL; 1894 *pstat = EX_TEMPFAIL; 2694 ** pstat -- pointer to status word. 2707 remotename(name, m, flags, pstat, e) 2711 int *pstat; 2772 *pstat = EX_TEMPFAIL; 2796 *pstat [all...] |
H A D | alias.c | 197 ** pstat -- a pointer to a place to put the status. 209 aliaslookup(name, pstat, av) 211 int *pstat; 255 res = (*map->map_class->map_lookup)(map, name, argv, pstat);
|
H A D | map.c | 273 ** char *map_lookup(MAP *map, char *key, char **args, int *pstat) 276 ** and return the value. Set *pstat to the appropriate status 5789 ph_map_lookup(map, key, args, pstat) 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 [all...] |