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

12

/freebsd-11.0-release/usr.sbin/pstat/
H A DMakefile2 # $FreeBSD: releng/11.0/usr.sbin/pstat/Makefile 275054 2014-11-25 16:57:27Z bapt $
4 PROG= pstat
5 LINKS= ${BINDIR}/pstat ${BINDIR}/swapinfo
6 MAN= pstat.8
7 MLINKS= pstat.8 swapinfo.8
/freebsd-11.0-release/release/picobsd/tinyware/passwd/
H A Dpw_util.c172 int pstat; local
188 pid = waitpid(pid, &pstat, 0);
189 if (pid == -1 || !WIFEXITED(pstat) || WEXITSTATUS(pstat) != 0)
198 int pstat; local
218 editpid = waitpid(editpid, (int *)&pstat, WUNTRACED);
219 errno = WEXITSTATUS(pstat);
222 else if (WIFSTOPPED(pstat))
223 raise(WSTOPSIG(pstat));
224 else if (WIFEXITED(pstat)
[all...]
/freebsd-11.0-release/contrib/nvi/ex/
H A Dex_shell.c156 int nf, pstat; local
162 if (waitpid((pid_t)pid, &pstat, 0) != -1)
175 if (WIFSIGNALED(pstat) && (!okpipe || WTERMSIG(pstat) != SIGPIPE)) {
181 sigmsg(WTERMSIG(pstat)),
182 WCOREDUMP(pstat) ? "; core dumped" : "");
188 if (WIFEXITED(pstat) && WEXITSTATUS(pstat)) {
203 WEXITSTATUS(pstat));
/freebsd-11.0-release/lib/libc/stdlib/
H A Dsystem.c62 int pstat; local
103 pid = _wait4(savedpid, &pstat, 0, (struct rusage *)0);
108 return (pid == -1 ? -1 : pstat);
/freebsd-11.0-release/usr.bin/timeout/
H A Dtimeout.c168 int error, pstat, status; local
292 pstat = status;
345 while (!child_done && wait(&pstat) == -1) {
353 if (WEXITSTATUS(pstat))
354 pstat = WEXITSTATUS(pstat);
355 else if(WIFSIGNALED(pstat))
356 pstat = 128 + WTERMSIG(pstat);
359 pstat
[all...]
/freebsd-11.0-release/contrib/ntp/lib/isc/unix/
H A Dos.c46 #include <sys/pstat.h>
/freebsd-11.0-release/lib/libutil/
H A Dpw_util.c250 int pstat; local
272 if (waitpid(pid, &pstat, 0) == -1)
274 if (WIFEXITED(pstat) && WEXITSTATUS(pstat) == 0)
291 int pstat; local
324 if (waitpid(editpid, &pstat, WUNTRACED) == -1) {
330 } else if (WIFSTOPPED(pstat)) {
331 raise(WSTOPSIG(pstat));
332 } else if (WIFEXITED(pstat) && WEXITSTATUS(pstat)
[all...]
/freebsd-11.0-release/lib/libc/gen/
H A Dpopen.c198 int pstat; local
223 pid = _wait4(cur->pid, &pstat, 0, (struct rusage *)0);
228 return (pid == -1 ? -1 : pstat);
/freebsd-11.0-release/usr.bin/apply/
H A Dapply.c228 int omask, pstat; local
246 pid = waitpid(pid, &pstat, 0);
250 return(pid == -1 ? -1 : pstat);
/freebsd-11.0-release/crypto/openssh/openbsd-compat/
H A Dsetproctitle.c42 #include <sys/pstat.h>
49 #define SPT_PSTAT 1 /* use pstat(PSTAT_SETCMD, ...) */
157 pstat(PSTAT_SETCMD, pst, strlen(ptitle), 0, 0);
/freebsd-11.0-release/contrib/xz/src/common/
H A Dtuklib_cpucores.c38 # include <sys/pstat.h>
H A Dtuklib_physmem.c64 # include <sys/pstat.h>
/freebsd-11.0-release/usr.sbin/crashinfo/
H A Dcrashinfo.sh233 echo "pstat -T"
235 pstat -M $VMCORE -N $KERNEL -T
239 echo "pstat -s"
241 pstat -M $VMCORE -N $KERNEL -s
/freebsd-11.0-release/contrib/blacklist/port/
H A Dpopenve.c236 int pstat; local
268 pid = waitpid(cur->pid, &pstat, 0);
273 return pid == -1 ? -1 : pstat;
/freebsd-11.0-release/contrib/ntp/ntpsnmpd/
H A Dnetsnmp_daemonize.c136 #include <sys/pstat.h>
/freebsd-11.0-release/usr.sbin/pkg/
H A Dpkg.c145 int pstat; local
163 while (waitpid(pid, &pstat, 0) == -1)
167 if (WEXITSTATUS(pstat))
168 return (WEXITSTATUS(pstat));
169 else if (WIFSIGNALED(pstat))
170 return (128 & (WTERMSIG(pstat)));
171 return (pstat);
/freebsd-11.0-release/contrib/pf/pflogd/
H A Dpflogd.c635 struct pcap_stat pstat; local
636 if (pcap_stats(hpcap, &pstat) < 0)
641 pstat.ps_recv, pstat.ps_drop, packets_dropped);
/freebsd-11.0-release/contrib/sendmail/src/
H A Dalias.c194 ** pstat -- a pointer to a place to put the status.
209 aliaslookup(name, pstat, av)
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 Dmap.c99 ** char *map_lookup(MAP *map, char *key, char **args, int *pstat)
102 ** and return the value. Set *pstat to the appropriate status
5107 ph_map_lookup(map, key, args, pstat)
5111 int *pstat;
5120 *pstat = EX_OK;
5133 *pstat = EX_TEMPFAIL;
5142 *pstat = EX_TEMPFAIL;
5144 *pstat = EX_UNAVAILABLE;
5155 if (*pstat == EX_TEMPFAIL)
5163 if (*pstat
[all...]
H A Dparseaddr.c1782 ** pstat -- a pointer to an integer in which to store the
1792 map_lookup(smap, key, argvect, pstat, e)
1796 int *pstat;
1816 *pstat = EX_TEMPFAIL;
1845 *pstat = EX_TEMPFAIL;
2635 ** pstat -- pointer to status word.
2651 remotename(name, m, flags, pstat, e)
2655 int *pstat;
2716 *pstat = EX_TEMPFAIL;
2740 *pstat
[all...]
/freebsd-11.0-release/contrib/binutils/libiberty/
H A Dphysmem.c29 # include <sys/pstat.h>
/freebsd-11.0-release/contrib/gcclibs/libiberty/
H A Dphysmem.c29 # include <sys/pstat.h>
/freebsd-11.0-release/contrib/gdb/gdb/
H A Dremote-rdp.c407 int *pstat; local
431 pstat = va_arg (alist, int *);
434 *pstat = get_byte ();
436 if (*pstat)
/freebsd-11.0-release/usr.sbin/
H A DMakefile65 pstat \
/freebsd-11.0-release/sbin/devd/
H A Ddevd.cc228 int pstat; local
268 pid = ::wait4(savedpid, &pstat, 0, (struct rusage *)0);
275 return (pid == -1 ? -1 : pstat);

Completed in 334 milliseconds

12