Home
last modified time | relevance | path

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

/openbsd-src/usr.bin/vi/ex/
H A Dex_shell.c147 int nf, pstat; in proc_wait() local
153 if (waitpid(pid, &pstat, 0) != -1) in proc_wait()
166 if (WIFSIGNALED(pstat) && (!okpipe || WTERMSIG(pstat) != SIGPIPE)) { in proc_wait()
172 strsignal(WTERMSIG(pstat)), in proc_wait()
173 WCOREDUMP(pstat) ? "; core dumped" : ""); in proc_wait()
179 if (WIFEXITED(pstat) && WEXITSTATUS(pstat)) { in proc_wait()
194 WEXITSTATUS(pstat)); in proc_wait()
/openbsd-src/usr.bin/timeout/
H A Dtimeout.c169 int pstat, status; in main() local
287 pstat = status; in main()
323 while (cpid != pid && wait(&pstat) == -1) { in main()
328 if (WEXITSTATUS(pstat)) in main()
329 pstat = WEXITSTATUS(pstat); in main()
330 else if (WIFSIGNALED(pstat)) in main()
331 pstat = 128 + WTERMSIG(pstat); in main()
334 pstat = EXIT_TIMEOUT; in main()
336 return (pstat); in main()
/openbsd-src/lib/libutil/
H A Dpasswd.c115 int pstat, ac; in pw_mkdb() local
152 pid = waitpid(pid, &pstat, 0); in pw_mkdb()
153 if (pid == -1 || !WIFEXITED(pstat) || WEXITSTATUS(pstat) != 0) in pw_mkdb()
213 int pstat; in pw_edit() local
246 editpid = waitpid(editpid, (int *)&pstat, WUNTRACED); in pw_edit()
249 else if (WIFSTOPPED(pstat)) in pw_edit()
250 raise(WSTOPSIG(pstat)); in pw_edit()
251 else if (WIFEXITED(pstat) && WEXITSTATUS(pstat) == 0) in pw_edit()
/openbsd-src/games/cribbage/
H A Dinstr.c47 int pstat; in instructions() local
71 pid = waitpid(pid, &pstat, 0); in instructions()
74 if (pid == -1 || WEXITSTATUS(pstat)) in instructions()
/openbsd-src/usr.bin/rdistd/
H A Dfilesys.c288 struct stat *pstat; in getmntpt() local
296 pstat = statbuf; in getmntpt()
298 pstat = &filestat; in getmntpt()
300 if (!find_file(pathname, pstat, isvalid)) in getmntpt()
312 if ((mnt = findmnt(pstat, mntinfo)) != NULL) in getmntpt()
321 if ((mnt = findmnt(pstat, mntinfo)) != NULL) in getmntpt()
/openbsd-src/lib/libc/stdlib/
H A Dsystem.c46 int pstat; in system() local
81 pid = waitpid(cpid, &pstat, 0); in system()
87 return (pid == -1 ? -1 : pstat); in system()
/openbsd-src/usr.sbin/pstat/
H A DMakefile3 PROG= pstat
4 MAN= pstat.8
/openbsd-src/lib/libc/gen/
H A Dpopen.c151 int pstat; in pclose() local
175 pid = waitpid(cur->pid, &pstat, 0); in pclose()
180 return (pid == -1 ? -1 : pstat); in pclose()
/openbsd-src/usr.bin/apply/
H A Dapply.c202 int pstat; in mysystem() local
230 pid = waitpid(pid, &pstat, 0); in mysystem()
234 return(pid == -1 ? -1 : pstat); in mysystem()
/openbsd-src/gnu/usr.bin/perl/lib/File/
H A Dstat.t189 my $pstat = File::stat::stat($rh);
191 ok(-p($pstat), "check -p detects a pipe");
/openbsd-src/sys/kern/
H A Dkern_proc.c484 static const char *const pstat[] = { in proc_printit()
491 if (p->p_stat < 1 || p->p_stat > sizeof(pstat) / sizeof(pstat[0])) in proc_printit()
494 pst = pstat[(int)p->p_stat - 1]; in proc_printit()
480 static const char *const pstat[] = { proc_printit() local
/openbsd-src/gnu/usr.bin/binutils/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()
H A DChangeLog-200214002 * infttrace.c: Include <sys/pstat.h>.
14003 (child_pid_to_exec_file): Revamp. Use pstat call to get the
/openbsd-src/usr.sbin/
H A DMakefile14 pcidump pkg_add portmap pppd procmap pstat pwd_mkdb \
/openbsd-src/gnu/usr.bin/binutils/bfd/
H A Delf.c6683 pstatus_t pstat; in elfcore_grok_pstatus() local
6685 memcpy (&pstat, note->descdata, sizeof (pstat)); in elfcore_grok_pstatus()
6687 elf_tdata (abfd)->core_pid = pstat.pr_pid; in elfcore_grok_pstatus()
6693 pstatus32_t pstat; in elfcore_grok_pstatus() local
6695 memcpy (&pstat, note->descdata, sizeof (pstat)); in elfcore_grok_pstatus()
6697 elf_tdata (abfd)->core_pid = pstat.pr_pid; in elfcore_grok_pstatus()
7367 pstatus_t pstat; in elfcore_write_pstatus() local
7370 memset (&pstat, 0, sizeof (pstat)); in elfcore_write_pstatus()
7371 pstat.pr_pid = pid & 0xffff; in elfcore_write_pstatus()
7373 NT_PSTATUS, &pstat, sizeof (pstat)); in elfcore_write_pstatus()
/openbsd-src/gnu/usr.bin/binutils-2.17/bfd/
H A Delf.c7707 pstatus_t pstat; in elfcore_grok_pstatus() local
7709 memcpy (&pstat, note->descdata, sizeof (pstat)); in elfcore_grok_pstatus()
7711 elf_tdata (abfd)->core_pid = pstat.pr_pid; in elfcore_grok_pstatus()
7717 pstatus32_t pstat; in elfcore_grok_pstatus() local
7719 memcpy (&pstat, note->descdata, sizeof (pstat)); in elfcore_grok_pstatus()
7721 elf_tdata (abfd)->core_pid = pstat.pr_pid; in elfcore_grok_pstatus()
8400 pstatus_t pstat; in elfcore_write_pstatus() local
8403 memset (&pstat, 0, sizeof (pstat)); in elfcore_write_pstatus()
8404 pstat.pr_pid = pid & 0xffff; in elfcore_write_pstatus()
8406 NT_PSTATUS, &pstat, sizeof (pstat)); in elfcore_write_pstatus()
/openbsd-src/gnu/lib/libiberty/src/
H A Dconfig.in283 /* Define to 1 if you have the <sys/pstat.h> header file. */
H A Dconfigure.ac246 …s/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/…
H A Dconfigure3688 …s/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/…
H A DChangeLog1860 * configure.in: Check for sys/pstat.h.
/openbsd-src/gnu/usr.bin/perl/
H A Dmg.c61 # include <sys/pstat.h>
2960 pstat(PSTAT_SETCMD, un, len, 0, 0); in S_set_dollarzero()