Searched refs:pstat (Results 1 - 25 of 34) sorted by relevance

12

/freebsd-current/usr.sbin/pstat/
H A DMakefile2 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 Dsysctl.sh29 # 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 Dsignal.sh200 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 Dmountu.sh48 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 Dex_shell.c151 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 Dsystem.c58 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 Dclosefrom.c35 # 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 Dtimeout.c165 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 Dlfbsd.c68 int r, pstat; local
96 while (waitpid(pid, &pstat, 0) == -1) {
105 if (WEXITSTATUS(pstat) != 0) {
/freebsd-current/contrib/bc/src/
H A Dread.c270 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 Dstrgen.c150 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 Dapply.c215 int omask, pstat; local
233 pid = waitpid(pid, &pstat, 0);
237 return(pid == -1 ? -1 : pstat);
/freebsd-current/lib/libc/gen/
H A Dpopen.c192 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 Dgenacl.c235 * 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 Dsetproctitle.c43 #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 Dpw_util.c245 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 Dcrashinfo.sh263 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 Dtuklib_cpucores.c42 # include <sys/pstat.h>
/freebsd-current/contrib/blocklist/port/
H A Dpopenve.c236 int pstat; local
268 pid = waitpid(cur->pid, &pstat, 0);
273 return pid == -1 ? -1 : pstat;
/freebsd-current/contrib/ntp/ntpsnmpd/
H A Dnetsnmp_daemonize.c136 #include <sys/pstat.h>
/freebsd-current/usr.sbin/pkg/
H A Dpkg.c152 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 Dpflogd.c632 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 Dparseaddr.c1825 ** 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 Dalias.c197 ** 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 Dmap.c273 ** 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...]

Completed in 295 milliseconds

12