| /openbsd-src/usr.bin/vi/ex/ |
| H A D | ex_shell.c | 147 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 D | timeout.c | 169 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 D | passwd.c | 115 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 D | instr.c | 47 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 D | filesys.c | 288 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 D | system.c | 46 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 D | Makefile | 3 PROG= pstat 4 MAN= pstat.8
|
| /openbsd-src/lib/libc/gen/ |
| H A D | popen.c | 151 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 D | apply.c | 202 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 D | stat.t | 189 my $pstat = File::stat::stat($rh); 191 ok(-p($pstat), "check -p detects a pipe");
|
| /openbsd-src/sys/kern/ |
| H A D | kern_proc.c | 484 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 D | remote-rdp.c | 407 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 D | ChangeLog-2002 | 14002 * 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 D | Makefile | 14 pcidump pkg_add portmap pppd procmap pstat pwd_mkdb \
|
| /openbsd-src/gnu/usr.bin/binutils/bfd/ |
| H A D | elf.c | 6683 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 D | elf.c | 7707 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 D | config.in | 283 /* Define to 1 if you have the <sys/pstat.h> header file. */
|
| H A D | configure.ac | 246 …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 D | configure | 3688 …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 D | ChangeLog | 1860 * configure.in: Check for sys/pstat.h.
|
| /openbsd-src/gnu/usr.bin/perl/ |
| H A D | mg.c | 61 # include <sys/pstat.h> 2960 pstat(PSTAT_SETCMD, un, len, 0, 0); in S_set_dollarzero()
|