Home
last modified time | relevance | path

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

12

/freebsd-10-stable/release/picobsd/tinyware/passwd/
Dpw_util.c172 int pstat; in pw_mkdb() local
188 pid = waitpid(pid, &pstat, 0); in pw_mkdb()
189 if (pid == -1 || !WIFEXITED(pstat) || WEXITSTATUS(pstat) != 0) in pw_mkdb()
198 int pstat; in pw_edit() local
218 editpid = waitpid(editpid, (int *)&pstat, WUNTRACED); in pw_edit()
219 errno = WEXITSTATUS(pstat); in pw_edit()
222 else if (WIFSTOPPED(pstat)) in pw_edit()
223 raise(WSTOPSIG(pstat)); in pw_edit()
224 else if (WIFEXITED(pstat) && errno == 0) in pw_edit()
/freebsd-10-stable/contrib/nvi/ex/
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()
Dex_cscope.c901 int i = 0, pstat; in terminate() local
943 (void)waitpid(csc->pid, &pstat, 0); in terminate()
/freebsd-10-stable/usr.bin/timeout/
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-10-stable/usr.sbin/pstat/
DMakefile4 PROG= pstat
5 LINKS= ${BINDIR}/pstat ${BINDIR}/swapinfo
6 MAN= pstat.8
7 MLINKS= pstat.8 swapinfo.8
/freebsd-10-stable/lib/libutil/
Dpw_util.c251 int pstat; in pw_mkdb() local
273 if (waitpid(pid, &pstat, 0) == -1) in pw_mkdb()
275 if (WIFEXITED(pstat) && WEXITSTATUS(pstat) == 0) in pw_mkdb()
292 int pstat; in pw_edit() local
325 if (waitpid(editpid, &pstat, WUNTRACED) == -1) { in pw_edit()
331 } else if (WIFSTOPPED(pstat)) { in pw_edit()
332 raise(WSTOPSIG(pstat)); in pw_edit()
333 } else if (WIFEXITED(pstat) && WEXITSTATUS(pstat) == 0) { in pw_edit()
/freebsd-10-stable/lib/libc/stdlib/
Dsystem.c62 int pstat; in __libc_system() local
103 pid = _wait4(savedpid, &pstat, 0, (struct rusage *)0); in __libc_system()
108 return (pid == -1 ? -1 : pstat); in __libc_system()
/freebsd-10-stable/usr.sbin/pkg_install/lib/
Durl.c46 int pfd[2], pstat, r, w = 0; in fileGetURL() local
171 tpid = waitpid(tpid, &pstat, 0); in fileGetURL()
173 printf("tar command returns %d status\n", WEXITSTATUS(pstat)); in fileGetURL()
/freebsd-10-stable/lib/libc/gen/
Dpopen.c201 int pstat; local
226 pid = _wait4(cur->pid, &pstat, 0, (struct rusage *)0);
231 return (pid == -1 ? -1 : pstat);
/freebsd-10-stable/usr.bin/patch/
Dinp.c139 int ifd, statfailed, pstat; in plan_a() local
228 pid = waitpid(pid, &pstat, 0); in plan_a()
229 if (pid == -1 || WEXITSTATUS(pstat) != 0) in plan_a()
247 pid = waitpid(pid, &pstat, 0); in plan_a()
248 if (pid == -1 || WEXITSTATUS(pstat) != 0 || in plan_a()
/freebsd-10-stable/usr.bin/apply/
Dapply.c228 int omask, pstat; in exec_shell() local
246 pid = waitpid(pid, &pstat, 0); in exec_shell()
250 return(pid == -1 ? -1 : pstat); in exec_shell()
/freebsd-10-stable/usr.sbin/pkg/
Dpkg.c145 int pstat; in install_pkg_static() local
163 while (waitpid(pid, &pstat, 0) == -1) in install_pkg_static()
167 if (WEXITSTATUS(pstat)) in install_pkg_static()
168 return (WEXITSTATUS(pstat)); in install_pkg_static()
169 else if (WIFSIGNALED(pstat)) in install_pkg_static()
170 return (128 & (WTERMSIG(pstat))); in install_pkg_static()
171 return (pstat); in install_pkg_static()
/freebsd-10-stable/usr.sbin/crashinfo/
Dcrashinfo.sh235 pstat -M $VMCORE -N $KERNEL -T
241 pstat -M $VMCORE -N $KERNEL -s
/freebsd-10-stable/contrib/pf/pflogd/
Dpflogd.c635 struct pcap_stat pstat; local
636 if (pcap_stats(hpcap, &pstat) < 0)
641 pstat.ps_recv, pstat.ps_drop, packets_dropped);
/freebsd-10-stable/contrib/sendmail/src/
Dparseaddr.c1792 map_lookup(smap, key, argvect, pstat, e) in map_lookup() argument
1796 int *pstat;
1816 *pstat = EX_TEMPFAIL;
1845 *pstat = EX_TEMPFAIL;
2651 remotename(name, m, flags, pstat, e) in remotename() argument
2655 int *pstat;
2716 *pstat = EX_TEMPFAIL;
2740 *pstat = EX_UNAVAILABLE;
2745 *pstat = EX_TEMPFAIL;
2759 *pstat = EX_TEMPFAIL;
[all …]
Dmap.c5107 ph_map_lookup(map, key, args, pstat) in ph_map_lookup() argument
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 == EX_OK)
5964 stab_map_lookup(map, name, av, pstat) in stab_map_lookup() argument
5968 int *pstat;
[all …]
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-10-stable/sys/i386/i386/
Dsymbols.raw27 #pstat
/freebsd-10-stable/contrib/gdb/gdb/
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-10-stable/crypto/openssh/openbsd-compat/
Dsetproctitle.c157 pstat(PSTAT_SETCMD, pst, strlen(ptitle), 0, 0); in setproctitle()
/freebsd-10-stable/sbin/devd/
Ddevd.cc229 int pstat; in my_system() local
269 pid = ::wait4(savedpid, &pstat, 0, (struct rusage *)0); in my_system()
276 return (pid == -1 ? -1 : pstat); in my_system()
/freebsd-10-stable/usr.sbin/
DMakefile66 pstat \
/freebsd-10-stable/contrib/binutils/bfd/
Delf.c7756 pstatus_t pstat; in elfcore_grok_pstatus() local
7758 memcpy (&pstat, note->descdata, sizeof (pstat)); in elfcore_grok_pstatus()
7760 elf_tdata (abfd)->core_pid = pstat.pr_pid; in elfcore_grok_pstatus()
7766 pstatus32_t pstat; in elfcore_grok_pstatus() local
7768 memcpy (&pstat, note->descdata, sizeof (pstat)); in elfcore_grok_pstatus()
7770 elf_tdata (abfd)->core_pid = pstat.pr_pid; 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()
[all …]
/freebsd-10-stable/lib/libusb/
Dlibusb20.h250 int libusb20_dev_get_stats(struct libusb20_device *pdev, struct libusb20_device_stats *pstat);
/freebsd-10-stable/usr.sbin/crunch/examples/
Dreally-big.conf73 progs pstat pwd_mkdb quot quotaon rarpd rbootd repquota rmt rpc.bootparamd

12