/netbsd-current/external/gpl3/binutils.old/dist/libiberty/ |
H A D | waitpid.c | 3 @deftypefn Supplemental int waitpid (int @var{pid}, int *@var{status}, int) 6 values of @var{pid} depend on your implementation of @code{wait}, as 28 #define wait(s) _cwait(s,pid,_WAIT_CHILD) 32 waitpid (pid_t pid, int *stat_loc, int options ATTRIBUTE_UNUSED) argument 37 if (wpid == pid || wpid == -1)
|
/netbsd-current/external/gpl3/gcc/dist/libiberty/ |
H A D | waitpid.c | 3 @deftypefn Supplemental int waitpid (int @var{pid}, int *@var{status}, int) 6 values of @var{pid} depend on your implementation of @code{wait}, as 28 #define wait(s) _cwait(s,pid,_WAIT_CHILD) 32 waitpid (pid_t pid, int *stat_loc, int options ATTRIBUTE_UNUSED) argument 37 if (wpid == pid || wpid == -1)
|
/netbsd-current/external/gpl3/gcc.old/dist/libiberty/ |
H A D | waitpid.c | 3 @deftypefn Supplemental int waitpid (int @var{pid}, int *@var{status}, int) 6 values of @var{pid} depend on your implementation of @code{wait}, as 28 #define wait(s) _cwait(s,pid,_WAIT_CHILD) 32 waitpid (pid_t pid, int *stat_loc, int options ATTRIBUTE_UNUSED) argument 37 if (wpid == pid || wpid == -1)
|
/netbsd-current/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/ |
H A D | killed.c | 25 int pid; variable 30 kill (pid, SIGKILL); 39 pid = getpid ();
|
H A D | forking-threads-plus-breakpoint.c | 51 pid_t pid; local 55 pid = fork (); 57 while (pid == -1 && errno == EINTR); 59 if (pid > 0) 66 pid = waitpid (pid, &status, 0); 68 while (pid == -1 && errno == EINTR); 70 if (pid == -1) 79 status, pid); 82 else if (pid [all...] |
/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/ |
H A D | fork-no-detach-follow-child-dlopen.c | 26 pid_t pid = fork (); local 27 if (pid == 0) 36 if (waitpid (pid, &wstatus, 0) == -1)
|
/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/ |
H A D | killed.c | 25 int pid; variable 30 kill (pid, SIGKILL); 39 pid = getpid ();
|
H A D | forking-threads-plus-breakpoint.c | 51 pid_t pid; local 55 pid = fork (); 57 while (pid == -1 && errno == EINTR); 59 if (pid > 0) 66 pid = waitpid (pid, &status, 0); 68 while (pid == -1 && errno == EINTR); 70 if (pid == -1) 79 status, pid); 82 else if (pid [all...] |
/netbsd-current/tests/kernel/ |
H A D | h_getprocpath.c | 36 getprocpath(char *path, size_t len, pid_t pid) argument 39 CTL_KERN, KERN_PROC_ARGS, pid, KERN_PROC_PATHNAME, 48 fprintf(stderr, "Usage: %s <pid>\n", getprogname()); 53 pid_t pid = atoi(argv[1]); local 55 if (getprocpath(buf, sizeof(buf), pid) == -1) 56 err(EXIT_FAILURE, "sysctl: %d", pid);
|
/netbsd-current/external/gpl2/xcvs/dist/lib/ |
H A D | waitpid.c | 14 pid_t pid; member in struct:unreaped 39 pid_t waitpid (pid, status, options) 40 pid_t pid; 50 unreaped[0].pid = 0; 54 for (i = 0; unreaped[i].pid; i++) 55 if (unreaped[i].pid == pid) 58 while (unreaped[i].pid) 64 return pid; 75 if (p == 0 || p == -1 || p == pid) [all...] |
/netbsd-current/external/gpl2/lvm2/dist/lib/misc/ |
H A D | lvm-exec.c | 53 pid_t pid; local 59 if ((pid = fork()) == -1) { 64 if (!pid) { 77 if (wait4(pid, &status, 0, NULL) != pid) { 78 log_error("wait4 child process %u failed: %s", pid, 84 log_error("Child %u exited abnormally", pid);
|
/netbsd-current/external/gpl2/diffutils/dist/lib/ |
H A D | waitpid.c | 35 waitpid (pid_t pid, int *stat_loc, int options) argument 40 if (!options && (pid == -1 || 0 < pid)) 46 if (p && (p == pid || pid == -1)) 60 if (p == pid || pid == -1)
|
/netbsd-current/external/gpl3/gcc/dist/gcc/ |
H A D | lock-and-run.sh | 30 if pid=`cat $lockdir/pid 2>/dev/null` && kill -0 $pid 2>/dev/null; then 31 echo "$self: (PID $$) waiting $count sec to acquire $lockdir from PID $pid" >&2 32 elif test -z "$pid"; then 33 echo "$self: (PID $$) cannot read $lockdir/pid" >&2 36 echo "$self: (PID $$) cannot signal $lockdir owner PID $pid" >&2 45 echo $$ > $lockdir/pidT && mv $lockdir/pidT $lockdir/pid
|
/netbsd-current/external/gpl3/gcc.old/dist/gcc/ |
H A D | lock-and-run.sh | 30 if pid=`cat $lockdir/pid 2>/dev/null` && kill -0 $pid 2>/dev/null; then 31 echo "$self: (PID $$) waiting $count sec to acquire $lockdir from PID $pid" >&2 32 elif test -z "$pid"; then 33 echo "$self: (PID $$) cannot read $lockdir/pid" >&2 36 echo "$self: (PID $$) cannot signal $lockdir owner PID $pid" >&2 45 echo $$ > $lockdir/pidT && mv $lockdir/pidT $lockdir/pid
|
/netbsd-current/external/gpl3/gdb.old/dist/gdb/ |
H A D | obsd-nat.c | 50 pid_t pid = inferior_ptid.pid (); local 55 if (ptrace (PT_GET_THREAD_FIRST, pid, (caddr_t)&pts, sizeof pts) == -1) 60 ptid_t ptid = ptid_t (pid, pts.pts_tid, 0); 70 if (ptrace (PT_GET_THREAD_NEXT, pid, (caddr_t)&pts, sizeof pts) == -1) 79 pid_t pid; local 88 pid = waitpid (ptid.pid (), &status, 0); 91 while (pid == -1 && errno == EINTR); 95 if (pid 168 post_attach(int pid) argument 181 post_startup_inferior(ptid_t pid) argument 215 insert_fork_catchpoint(int pid) argument 221 remove_fork_catchpoint(int pid) argument [all...] |
H A D | gcore.in | 96 for pid in "$@" 104 -ex "attach $pid" -ex "gcore $prefix.$pid" -ex detach -ex quit 106 if [ -r "$prefix.$pid" ] ; then 109 echo "@GCORE_TRANSFORM_NAME@: failed to create $prefix.$pid"
|
H A D | x86-nat.c | 50 pid_t pid; member in struct:x86_process_info 61 x86_find_process_pid (pid_t pid) argument 66 if (proc->pid == pid) 76 x86_add_process (pid_t pid) argument 80 proc->pid = pid; 91 x86_process_info_get (pid_t pid) argument 95 proc = x86_find_process_pid (pid); 97 proc = x86_add_process (pid); 105 x86_debug_reg_state(pid_t pid) argument 113 x86_forget_process(pid_t pid) argument [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/gdb/unittests/ |
H A D | ptid-selftests.c | 41 static constexpr ptid_t pid = ptid_t (1); variable 53 /* Verify pid. */ 55 static_assert (pid.pid () == 1, "pid's pid is right"); 56 static_assert (lwp.pid () == 1, "lwp's pid is right"); 57 static_assert (tid.pid () == 1, "tid's pid i [all...] |
/netbsd-current/external/gpl3/gdb/dist/gdb/unittests/ |
H A D | ptid-selftests.c | 41 static constexpr ptid_t pid = ptid_t (1); variable 53 /* Verify pid. */ 55 static_assert (pid.pid () == 1, "pid's pid is right"); 56 static_assert (lwp.pid () == 1, "lwp's pid is right"); 57 static_assert (tid.pid () == 1, "tid's pid i [all...] |
/netbsd-current/sys/arch/arm/at91/ |
H A D | at91busvar.h | 87 void (*peripheral_clock)(int pid, int enable); 90 at91pio_port (*pio_port)(int pid); 91 uint32_t (*gpio_mask)(int pid); 95 void *(*intr_establish)(int pid, int ipl, int type, int (*ih_func)(void *), void *arg); 101 const char *(*peripheral_name)(int pid); 103 device_t (*found_func)(device_t, bus_addr_t, int pid)); 130 at91_peripheral_clock(int pid, int enable) argument 132 return (*at91bus_tag->peripheral_clock)(pid, enable); 136 at91_peripheral_name(int pid) argument 138 return (*at91bus_tag->peripheral_name)(pid); 142 at91_pio_port(int pid) argument 148 at91_gpio_mask(int pid) argument 160 at91_intr_establish(int pid, int ipl, int type, int (*ih_func)(void *), void *ih_arg) argument 179 at91_search_peripherals(device_t self, device_t (*found_func)(device_t, bus_addr_t, int pid)) argument [all...] |
/netbsd-current/tests/lib/libc/sys/ |
H A D | t_wait.c | 76 pid_t pid; local 78 switch (pid = fork()) { 83 ATF_REQUIRE(pid > 0); 86 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); 89 ATF_REQUIRE(si.si_pid == pid); 110 pid_t pid; local 112 switch (pid = fork()) { 117 ATF_REQUIRE(pid > 0); 120 ATF_REQUIRE(kill(pid, SIGTER 145 pid_t pid; local 182 pid_t pid; local 248 pid_t pid; local [all...] |
/netbsd-current/external/bsd/ntp/dist/html/hints/ |
H A D | solaris.xtra.S99ntpd | 15 pid=`/usr/bin/ps -e | /usr/bin/grep xntpd | /usr/bin/sed -e 's/^ *//' -e 's/ .*//'` 16 if [ "${pid}" != "" ]; then 18 /usr/bin/kill ${pid}
|
/netbsd-current/games/cribbage/ |
H A D | instr.c | 63 pid_t pid; local 66 switch (pid = vfork()) { 93 pid = waitpid(pid, &pstat, 0); 94 } while (pid == -1 && errno == EINTR); 95 if (pid == -1 || WEXITSTATUS(pstat))
|
/netbsd-current/external/ibm-public/postfix/dist/src/master/ |
H A D | master_proto.c | 11 /* int master_notify(pid, generation, status) 12 /* int pid; 67 int master_notify(int pid, unsigned generation, int status) argument 78 stat.pid = pid;
|
/netbsd-current/etc/rc.d/ |
H A D | ppp | 51 for pid in $pids; do 52 kill $sig_hup $pid 61 for pid in $pids; do 62 kill $sig_stop $pid
|