Home
last modified time | relevance | path

Searched refs:pstat (Results 1 – 25 of 37) sorted by relevance

12

/freebsd-12.1/release/picobsd/tinyware/passwd/
H A Dpw_util.c174 int pstat; in pw_mkdb() local
190 pid = waitpid(pid, &pstat, 0); in pw_mkdb()
191 if (pid == -1 || !WIFEXITED(pstat) || WEXITSTATUS(pstat) != 0) in pw_mkdb()
200 int pstat; in pw_edit() local
220 editpid = waitpid(editpid, (int *)&pstat, WUNTRACED); in pw_edit()
221 errno = WEXITSTATUS(pstat); in pw_edit()
224 else if (WIFSTOPPED(pstat)) in pw_edit()
225 raise(WSTOPSIG(pstat)); in pw_edit()
226 else if (WIFEXITED(pstat) && errno == 0) in pw_edit()
/freebsd-12.1/contrib/nvi/ex/
H A Dex_shell.c156 int nf, pstat; in proc_wait() local
162 if (waitpid((pid_t)pid, &pstat, 0) != -1) in proc_wait()
175 if (WIFSIGNALED(pstat) && (!okpipe || WTERMSIG(pstat) != SIGPIPE)) { in proc_wait()
181 sigmsg(WTERMSIG(pstat)), in proc_wait()
182 WCOREDUMP(pstat) ? "; core dumped" : ""); in proc_wait()
188 if (WIFEXITED(pstat) && WEXITSTATUS(pstat)) { in proc_wait()
203 WEXITSTATUS(pstat)); in proc_wait()
H A Dex_cscope.c901 int i = 0, pstat; in terminate() local
943 (void)waitpid(csc->pid, &pstat, 0); in terminate()
/freebsd-12.1/usr.bin/timeout/
H A Dtimeout.c168 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-12.1/usr.sbin/pstat/
H A DMakefile4 PROG= pstat
5 LINKS= ${BINDIR}/pstat ${BINDIR}/swapinfo
6 MAN= pstat.8
7 MLINKS= pstat.8 swapinfo.8
/freebsd-12.1/lib/libutil/
H A Dpw_util.c248 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
322 if (waitpid(editpid, &pstat, WUNTRACED) == -1) { in pw_edit()
328 } else if (WIFSTOPPED(pstat)) { in pw_edit()
329 raise(WSTOPSIG(pstat)); in pw_edit()
330 } else if (WIFEXITED(pstat) && WEXITSTATUS(pstat) == 0) { in pw_edit()
/freebsd-12.1/lib/libc/stdlib/
H A Dsystem.c64 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-12.1/lib/libc/gen/
H A Dpopen.c198 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-12.1/usr.bin/apply/
H A Dapply.c223 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-12.1/contrib/blacklist/port/
H A Dpopenve.c236 int pstat; in pcloseve() local
268 pid = waitpid(cur->pid, &pstat, 0); in pcloseve()
273 return pid == -1 ? -1 : pstat; in pcloseve()
/freebsd-12.1/usr.sbin/pkg/
H A Dpkg.c146 int pstat; in install_pkg_static() local
164 while (waitpid(pid, &pstat, 0) == -1) in install_pkg_static()
168 if (WEXITSTATUS(pstat)) in install_pkg_static()
169 return (WEXITSTATUS(pstat)); in install_pkg_static()
170 else if (WIFSIGNALED(pstat)) in install_pkg_static()
171 return (128 & (WTERMSIG(pstat))); in install_pkg_static()
172 return (pstat); in install_pkg_static()
/freebsd-12.1/usr.sbin/crashinfo/
H A Dcrashinfo.sh280 pstat -M $VMCORE -N $KERNEL -T
286 pstat -M $VMCORE -N $KERNEL -s
/freebsd-12.1/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-12.1/contrib/sendmail/src/
H A Dparseaddr.c1796 int *pstat;
1816 *pstat = EX_TEMPFAIL;
1845 *pstat = EX_TEMPFAIL;
2655 int *pstat;
2716 *pstat = EX_TEMPFAIL;
2740 *pstat = EX_UNAVAILABLE;
2745 *pstat = EX_TEMPFAIL;
2759 *pstat = EX_TEMPFAIL;
2764 *pstat = EX_TEMPFAIL;
2769 *pstat = EX_TEMPFAIL;
[all …]
H A Dmap.c5111 int *pstat;
5120 *pstat = EX_OK;
5163 if (*pstat == EX_OK)
5968 int *pstat;
6063 int *pstat;
6606 int *pstat;
6632 *pstat = EX_OK;
6707 int *pstat;
6709 *pstat = EX_NOTFOUND;
6739 int *pstat;
[all …]
H A Dalias.c209 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);
/freebsd-12.1/contrib/gdb/gdb/
H A Dremote-rdp.c407 int *pstat; in send_rdp() local
431 pstat = va_arg (alist, int *); in send_rdp()
434 *pstat = get_byte (); in send_rdp()
436 if (*pstat) in send_rdp()
/freebsd-12.1/crypto/openssh/openbsd-compat/
H A Dsetproctitle.c157 pstat(PSTAT_SETCMD, pst, strlen(ptitle), 0, 0); in setproctitle()
/freebsd-12.1/sbin/devd/
H A Ddevd.cc230 int pstat; in my_system() local
270 pid = ::wait4(savedpid, &pstat, 0, (struct rusage *)0); in my_system()
277 return (pid == -1 ? -1 : pstat); in my_system()
/freebsd-12.1/usr.sbin/
H A DMakefile67 pstat \
/freebsd-12.1/contrib/binutils/bfd/
H A Delf.c7756 pstatus_t pstat; in elfcore_grok_pstatus() local
7758 memcpy (&pstat, note->descdata, sizeof (pstat)); in elfcore_grok_pstatus()
7766 pstatus32_t pstat; in elfcore_grok_pstatus() local
7768 memcpy (&pstat, note->descdata, sizeof (pstat)); in elfcore_grok_pstatus()
8446 pstatus32_t pstat; in elfcore_write_pstatus() local
8448 memset (&pstat, 0, sizeof (pstat)); in elfcore_write_pstatus()
8449 pstat.pr_pid = pid & 0xffff; in elfcore_write_pstatus()
8451 NT_PSTATUS, &pstat, sizeof (pstat)); in elfcore_write_pstatus()
8457 pstatus_t pstat; in elfcore_write_pstatus() local
8459 memset (&pstat, 0, sizeof (pstat)); in elfcore_write_pstatus()
[all …]
/freebsd-12.1/usr.sbin/crunch/examples/
H A Dreally-big.conf73 progs pstat pwd_mkdb quot quotaon rarpd rbootd repquota rmt rpc.bootparamd
/freebsd-12.1/contrib/gcclibs/libiberty/
H A Dconfig.in283 /* Define to 1 if you have the <sys/pstat.h> header file. */
/freebsd-12.1/contrib/binutils/libiberty/
H A Dconfig.in283 /* Define to 1 if you have the <sys/pstat.h> header file. */
/freebsd-12.1/usr.sbin/pmcstudy/
H A Dpmcstudy.c153 int pstat; in my_pclose() local
163 pid = wait4(the_pid, &pstat, 0, (struct rusage *)0); in my_pclose()

12