Home
last modified time | relevance | path

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

12

/freebsd/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()
/freebsd/bin/timeout/
H A Dtimeout.c165 int error, pstat, status; in main() local
288 pstat = status; in main()
341 while (!child_done && wait(&pstat) == -1) { in main()
349 if (WEXITSTATUS(pstat)) in main()
350 pstat = WEXITSTATUS(pstat); in main()
351 else if (WIFSIGNALED(pstat)) in main()
352 pstat = 128 + WTERMSIG(pstat); in main()
355 pstat = EXIT_TIMEOUT; in main()
357 return (pstat); in main()
/freebsd/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/tools/test/stress2/misc/
H A Dsysctl.sh32 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 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\""`
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`
/freebsd/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/lib/libutil/
H A Dpw_util.c245 int pstat; in pw_mkdb() local
267 if (waitpid(pid, &pstat, 0) == -1) in pw_mkdb()
269 if (WIFEXITED(pstat) && WEXITSTATUS(pstat) == 0) in pw_mkdb()
286 int pstat; in pw_edit() local
320 if (waitpid(editpid, &pstat, WUNTRACED) == -1) { in pw_edit()
326 } else if (WIFSTOPPED(pstat)) { in pw_edit()
327 raise(WSTOPSIG(pstat)); in pw_edit()
328 } else if (WIFEXITED(pstat)) { in pw_edit()
329 if (WEXITSTATUS(pstat) != 0) in pw_edit()
330 errx(1, "\"%s\" exited with status %d", editor, WEXITSTATUS(pstat)); in pw_edit()
/freebsd/contrib/bc/src/
H A Dread.c270 struct stat pstat; in bc_read_file() local
285 memset(&pstat, 0, sizeof(struct stat)); in bc_read_file()
295 if (BC_ERR(fstat(fd, &pstat) == -1)) goto malloc_err; in bc_read_file()
298 if (BC_ERR(S_ISDIR(pstat.st_mode))) in bc_read_file()
305 size = (size_t) pstat.st_size; in bc_read_file()
/freebsd/lib/libc/stdlib/
H A Dsystem.c58 int pstat; in __libc_system() local
99 pid = _wait4(savedpid, &pstat, 0, (struct rusage *)0); in __libc_system()
104 return (pid == -1 ? -1 : pstat); in __libc_system()
/freebsd/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/contrib/bc/gen/
H A Dstrgen.c150 struct stat pstat; in bc_read_file() local
163 memset(&pstat, 0, sizeof(struct stat)); in bc_read_file()
177 if (BC_ERR(fstat(fd, &pstat) == -1)) in bc_read_file()
184 if (BC_ERR(S_ISDIR(pstat.st_mode))) in bc_read_file()
191 size = (size_t) pstat.st_size; in bc_read_file()
/freebsd/libexec/flua/modules/
H A Dlfbsd.c68 int r, pstat; in lua_exec() local
96 while (waitpid(pid, &pstat, 0) == -1) { in lua_exec()
105 if (WEXITSTATUS(pstat) != 0) { in lua_exec()
/freebsd/lib/libc/gen/
H A Dpopen.c192 int pstat; in pclose() local
217 pid = _wait4(cur->pid, &pstat, 0, (struct rusage *)0); in pclose()
222 return (pid == -1 ? -1 : pstat); in pclose()
/freebsd/usr.bin/apply/
H A Dapply.c215 int omask, pstat; in exec_shell() local
233 pid = waitpid(pid, &pstat, 0); in exec_shell()
237 return(pid == -1 ? -1 : pstat); in exec_shell()
/freebsd/contrib/blocklist/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/usr.sbin/crashinfo/
H A Dcrashinfo.sh265 pstat -M $VMCORE -N $KERNEL -T
271 pstat -M $VMCORE -N $KERNEL -s
/freebsd/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/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/contrib/sendmail/src/
H A Dmap.c5793 int *pstat;
5802 *pstat = EX_OK;
5845 if (*pstat == EX_OK)
6656 int *pstat;
6751 int *pstat;
7332 int *pstat;
7358 *pstat = EX_OK;
7433 int *pstat;
7435 *pstat = EX_NOTFOUND;
7465 int *pstat;
[all …]
H A Dparseaddr.c1839 int *pstat;
1860 *pstat = EX_TEMPFAIL;
1894 *pstat = EX_TEMPFAIL;
2711 int *pstat;
2772 *pstat = EX_TEMPFAIL;
2796 *pstat = EX_UNAVAILABLE;
2801 *pstat = EX_TEMPFAIL;
2815 *pstat = EX_TEMPFAIL;
2820 *pstat = EX_TEMPFAIL;
2825 *pstat = EX_TEMPFAIL;
[all …]
H A Dalias.c209 aliaslookup(name, pstat, av) in aliaslookup() argument
211 int *pstat;
255 res = (*map->map_class->map_lookup)(map, name, argv, pstat);
/freebsd/crypto/openssh/openbsd-compat/
H A Dsetproctitle.c158 pstat(PSTAT_SETCMD, pst, strlen(ptitle), 0, 0); in setproctitle()
/freebsd/sbin/devd/
H A Ddevd.cc228 int pstat; in my_system() local
268 pid = ::wait4(savedpid, &pstat, 0, (struct rusage *)0); in my_system()
275 return (pid == -1 ? -1 : pstat); in my_system()
/freebsd/usr.sbin/
H A DMakefile67 pstat \

12