Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/nvi/ex/
H A Dex_shell.c151 int nf, pstat; in proc_wait() local
157 if (waitpid((pid_t)pid, &pstat, 0) != -1) in proc_wait()
170 if (WIFSIGNALED(pstat) && (!okpipe || WTERMSIG(pstat) != SIGPIPE)) { in proc_wait()
176 sigmsg(WTERMSIG(pstat)), in proc_wait()
177 WCOREDUMP(pstat) ? "; core dumped" : ""); in proc_wait()
183 if (WIFEXITED(pstat) && WEXITSTATUS(pstat)) { in proc_wait()
198 WEXITSTATUS(pstat)); in proc_wait()
H A Dex_cscope.c906 int i = 0, pstat; in terminate() local
948 (void)waitpid(csc->pid, &pstat, 0); in terminate()
/freebsd-13.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-13.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-13.1/tools/build/cross-build/
H A Dclosefrom.c115 struct pst_status pstat; in closefrom() local
118 if (pstat_getproc(&pstat, sizeof(pstat), 0, getpid()) != -1) { in closefrom()
119 for (fd = lowfd; fd <= pstat.pst_highestfd; fd++) in closefrom()
/freebsd-13.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
323 if (waitpid(editpid, &pstat, WUNTRACED) == -1) { in pw_edit()
329 } else if (WIFSTOPPED(pstat)) { in pw_edit()
330 raise(WSTOPSIG(pstat)); in pw_edit()
331 } else if (WIFEXITED(pstat)) { in pw_edit()
332 if (WEXITSTATUS(pstat) != 0) in pw_edit()
333 errx(1, "\"%s\" exited with status %d", editor, WEXITSTATUS(pstat)); in pw_edit()
/freebsd-13.1/contrib/bc/src/
H A Dread.c240 struct stat pstat; in bc_read_file() local
251 memset(&pstat, 0, sizeof(struct stat)); in bc_read_file()
261 if (BC_ERR(fstat(fd, &pstat) == -1)) goto malloc_err; in bc_read_file()
264 if (BC_ERR(S_ISDIR(pstat.st_mode))) { in bc_read_file()
270 size = (size_t) pstat.st_size; in bc_read_file()
/freebsd-13.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-13.1/contrib/lib9p/
H A Dgenacl.c246 struct stat *pstat, *cstat; in l9p_acl_check_access() local
255 pstat = args->aca_pstat; in l9p_acl_check_access()
285 assert(parent == NULL || pstat != NULL); in l9p_acl_check_access()
288 assert(pstat != NULL || cstat != NULL); in l9p_acl_check_access()
302 if (parent != NULL || pstat != NULL) { in l9p_acl_check_access()
331 panswer = l9p_check_aces(pop, parent, pstat, in l9p_acl_check_access()
386 parent, pstat, uid, gid, gids, ngids); in l9p_acl_check_access()
409 st = pstat; in l9p_acl_check_access()
/freebsd-13.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-13.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-13.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-13.1/usr.sbin/pkg/
H A Dpkg.c152 int pstat; in install_pkg_static() local
170 while (waitpid(pid, &pstat, 0) == -1) in install_pkg_static()
174 if (WEXITSTATUS(pstat)) in install_pkg_static()
175 return (WEXITSTATUS(pstat)); in install_pkg_static()
176 else if (WIFSIGNALED(pstat)) in install_pkg_static()
177 return (128 & (WTERMSIG(pstat))); in install_pkg_static()
178 return (pstat); in install_pkg_static()
/freebsd-13.1/usr.sbin/crashinfo/
H A Dcrashinfo.sh281 pstat -M $VMCORE -N $KERNEL -T
287 pstat -M $VMCORE -N $KERNEL -s
/freebsd-13.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-13.1/contrib/sendmail/src/
H A Dparseaddr.c1805 int *pstat;
1826 *pstat = EX_TEMPFAIL;
1860 *pstat = EX_TEMPFAIL;
2674 int *pstat;
2735 *pstat = EX_TEMPFAIL;
2759 *pstat = EX_UNAVAILABLE;
2764 *pstat = EX_TEMPFAIL;
2778 *pstat = EX_TEMPFAIL;
2783 *pstat = EX_TEMPFAIL;
2788 *pstat = EX_TEMPFAIL;
[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);
H A Dmap.c5536 int *pstat;
5545 *pstat = EX_OK;
5588 if (*pstat == EX_OK)
6393 int *pstat;
6488 int *pstat;
7069 int *pstat;
7095 *pstat = EX_OK;
7170 int *pstat;
7172 *pstat = EX_NOTFOUND;
7202 int *pstat;
[all …]
/freebsd-13.1/crypto/openssh/openbsd-compat/
H A Dsetproctitle.c158 pstat(PSTAT_SETCMD, pst, strlen(ptitle), 0, 0); in setproctitle()
/freebsd-13.1/sbin/devd/
H A 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-13.1/usr.sbin/
H A DMakefile65 pstat \
/freebsd-13.1/lib/libusb/
H A Dlibusb20.h252 int libusb20_dev_get_stats(struct libusb20_device *pdev, struct libusb20_device_stats *pstat);
/freebsd-13.1/usr.sbin/crunch/examples/
H A Dreally-big.conf73 progs pstat pwd_mkdb quot quotaon rarpd rbootd repquota rmt rpc.bootparamd
/freebsd-13.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()
/freebsd-13.1/targets/pseudo/userland/
H A DMakefile.depend671 usr.sbin/pstat \

12