/netbsd/external/gpl3/gdb/dist/gdbserver/ |
H A D | gdbthread.h | 89 struct thread_info *find_any_thread_of_pid (int pid); 118 find_thread (int pid, Func func) in find_thread() argument 122 return thread->id.pid () == pid && func (thread); in find_thread() 159 for_each_thread (int pid, Func func) in for_each_thread() argument 163 if (pid == thread->id.pid ()) in for_each_thread() 216 return thread->id.pid (); in pid_of()
|
H A D | linux-low.cc | 201 int pid; member 219 new_pid->pid = pid; in add_to_pid_list() 231 if ((*p)->pid == pid) in pull_pid_from_list() 969 int pid; in create_inferior() local 985 ptid = ptid_t (pid, pid, 0); in create_inferior() 1150 ptid_t ptid = ptid_t (pid, pid, 0); in attach() 1288 int pid = ptid_of (thr).pid (); in kill_wait_lwp() local 1352 int pid = process->pid; in kill() local 2957 int pid; in wait_1() local 3010 if (pid == 0 || (pid == -1 && !any_resumed)) in wait_1() [all …]
|
/netbsd/external/cddl/dtracetoolkit/dist/Java/ |
H A D | j_syscolors.d | 74 /self->last == 0 && pid == $target/ 88 pid, tid, this->delta, "method", self->depth[arg0] * 2, "", 105 pid, tid, this->delta, "method", self->depth[arg0] * 2, "", 112 /pid == $target/ 116 cpu, pid, tid, this->delta, "syscall", self->depthlast * 2, "", 122 /pid == $target/ 126 cpu, pid, tid, this->delta, "syscall", self->depthlast * 2, "", 132 /pid == $target/
|
/netbsd/external/cddl/dtracetoolkit/dist/Bin/ |
H A D | j_syscolors.d | 74 /self->last == 0 && pid == $target/ 88 pid, tid, this->delta, "method", self->depth[arg0] * 2, "", 105 pid, tid, this->delta, "method", self->depth[arg0] * 2, "", 112 /pid == $target/ 116 cpu, pid, tid, this->delta, "syscall", self->depthlast * 2, "", 122 /pid == $target/ 126 cpu, pid, tid, this->delta, "syscall", self->depthlast * 2, "", 132 /pid == $target/
|
/netbsd/external/gpl3/gdb.old/dist/gdbserver/ |
H A D | gdbthread.h | 89 struct thread_info *find_any_thread_of_pid (int pid); 118 find_thread (int pid, Func func) in find_thread() argument 122 return thread->id.pid () == pid && func (thread); in find_thread() 159 for_each_thread (int pid, Func func) in for_each_thread() argument 163 if (pid == thread->id.pid ()) in for_each_thread() 216 return thread->id.pid (); in pid_of()
|
H A D | linux-low.cc | 201 int pid; member 219 new_pid->pid = pid; in add_to_pid_list() 231 if ((*p)->pid == pid) in pull_pid_from_list() 969 int pid; in create_inferior() local 985 ptid = ptid_t (pid, pid, 0); in create_inferior() 1150 ptid_t ptid = ptid_t (pid, pid, 0); in attach() 1288 int pid = ptid_of (thr).pid (); in kill_wait_lwp() local 1352 int pid = process->pid; in kill() local 2957 int pid; in wait_1() local 3010 if (pid == 0 || (pid == -1 && !any_resumed)) in wait_1() [all …]
|
/netbsd/tests/lib/libutil/ |
H A D | t_pidfile.c | 74 int pid; in check_pidfile() local 81 if (fscanf(file, "%d", &pid) == -1) in check_pidfile() 85 printf("Read pid %d, current pid %d\n", pid, getpid()); in check_pidfile() 86 if (pid != getpid()) in check_pidfile() 88 "current pid (%d)", pid, getpid()); in check_pidfile() 110 pid_t pid; in run_child() local 112 pid = fork(); in run_child() 113 ATF_REQUIRE(pid != -1); in run_child() 114 if (pid == 0) { in run_child() 122 ATF_REQUIRE(waitpid(pid, &status, 0) != -1); in run_child()
|
/netbsd/external/gpl3/gdb/dist/sim/testsuite/sim/cris/c/ |
H A D | pipe2.c | 63 int pid; in main() local 93 pid = clone (process, (char *) stack + sizeof (stack) - 64, in main() 96 if (pid <= 0) in main() 98 fprintf (stderr, "Bad clone %d\n", pid); in main() 132 retcode = waitpid (pid, &st, __WALL); in main() 134 if (retcode != pid || !WIFEXITED (st)) in main() 136 fprintf (stderr, "Bad wait %d:%d %x\n", pid, retcode, st); in main()
|
/netbsd/external/gpl3/gdb.old/dist/sim/testsuite/sim/cris/c/ |
H A D | pipe2.c | 63 int pid; in main() local 93 pid = clone (process, (char *) stack + sizeof (stack) - 64, in main() 96 if (pid <= 0) in main() 98 fprintf (stderr, "Bad clone %d\n", pid); in main() 132 retcode = waitpid (pid, &st, __WALL); in main() 134 if (retcode != pid || !WIFEXITED (st)) in main() 136 fprintf (stderr, "Bad wait %d:%d %x\n", pid, retcode, st); in main()
|
/netbsd/external/gpl3/gdb/dist/gdb/ |
H A D | mips64-obsd-nat.c | 92 pid_t pid = regcache->ptid ().pid (); in fetch_registers() local 94 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) in fetch_registers() 107 pid_t pid = regcache->ptid ().pid (); in store_registers() local 109 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) in store_registers() 114 if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) in store_registers()
|
H A D | s390-linux-nat.c | 522 pid_t pid = 0; member 531 s390_find_process_pid (pid_t pid) in s390_find_process_pid() argument 536 if (proc->pid == pid) in s390_find_process_pid() 546 s390_add_process (pid_t pid) in s390_add_process() argument 550 proc->pid = pid; in s390_add_process() 561 s390_process_info_get (pid_t pid) in s390_process_info_get() argument 567 proc = s390_add_process (pid); in s390_process_info_get() 593 if (proc->pid == pid) in low_forget_process() 622 parent_pid = parent->ptid.pid (); in low_new_fork() 702 pid_t pid = ptid_of_lwp (lp).pid (); in low_prepare_to_resume() local [all …]
|
H A D | darwin-nat.c | 401 if (inf->pid == pid) in darwin_find_inferior_by_pid() 1177 ptid.pid (), ptid.tid ()); in wait_1() 1301 ::kill (inf->pid, SIGINT); in interrupt() 1506 res = ::kill (inf->pid, 9); in kill() 1584 kill (inf->pid, 9); in darwin_attach_pid() 1595 priv->task, inf->pid); in darwin_attach_pid() 1964 [the_target] (int pid) in create_inferior() 2005 pid_t pid; in attach() local 2025 if (pid == 0 || ::kill (pid, 0) < 0) in attach() 2099 tid, ptid.pid ()); in pid_to_str() [all …]
|
/netbsd/external/gpl3/gdb.old/dist/gdb/ |
H A D | mips64-obsd-nat.c | 92 pid_t pid = regcache->ptid ().pid (); in fetch_registers() local 94 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) in fetch_registers() 107 pid_t pid = regcache->ptid ().pid (); in store_registers() local 109 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) in store_registers() 114 if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) in store_registers()
|
H A D | s390-linux-nat.c | 522 pid_t pid = 0; member 531 s390_find_process_pid (pid_t pid) in s390_find_process_pid() argument 536 if (proc->pid == pid) in s390_find_process_pid() 546 s390_add_process (pid_t pid) in s390_add_process() argument 550 proc->pid = pid; in s390_add_process() 561 s390_process_info_get (pid_t pid) in s390_process_info_get() argument 567 proc = s390_add_process (pid); in s390_process_info_get() 593 if (proc->pid == pid) in low_forget_process() 622 parent_pid = parent->ptid.pid (); in low_new_fork() 702 pid_t pid = ptid_of_lwp (lp).pid (); in low_prepare_to_resume() local [all …]
|
/netbsd/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/ |
H A D | watch-vfork.c | 25 int pid; in main() local 27 pid = vfork (); in main() 28 if (pid == -1) in main() 32 else if (pid != 0) in main() 34 global = &pid; in main()
|
H A D | foll-vfork-exit.c | 24 int pid; in main() local 28 pid = 1; in main() 29 pid = vfork (); /* VFORK */ in main() 30 if (pid == 0) in main() 37 printf ("I'm the proud parent of child #%d!\n", pid); in main()
|
H A D | step-over-exit.c | 29 int pid; in main() local 31 pid = fork (); in main() 32 if (pid == 0) /* child */ in main() 40 pid = fork (); in main() 41 if (pid == 0) /* child */ in main()
|
/netbsd/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/ |
H A D | watch-vfork.c | 25 int pid; in main() local 27 pid = vfork (); in main() 28 if (pid == -1) in main() 32 else if (pid != 0) in main() 34 global = &pid; in main()
|
H A D | foll-vfork-exit.c | 24 int pid; in main() local 28 pid = 1; in main() 29 pid = vfork (); /* VFORK */ in main() 30 if (pid == 0) in main() 37 printf ("I'm the proud parent of child #%d!\n", pid); in main()
|
H A D | step-over-exit.c | 29 int pid; in main() local 31 pid = fork (); in main() 32 if (pid == 0) /* child */ in main() 40 pid = fork (); in main() 41 if (pid == 0) /* child */ in main()
|
/netbsd/external/gpl2/gmake/dist/ |
H A D | job.c | 473 pid_t pid; in reap_children() local 530 pid = 0; in reap_children() 549 pid = c->pid; in reap_children() 560 pid = 0; in reap_children() 562 if (pid < 0) in reap_children() 689 if (c->remote == remote && c->pid == pid) in reap_children() 1899 int pid; in child_execute_job() local 1950 return pid; in child_execute_job() 2056 int pid; in exec_command() 2139 if (pid >= 0) in exec_command() [all …]
|
/netbsd/crypto/external/bsd/heimdal/dist/tests/kdc/ |
H A D | leaks-kill.sh | 4 pid=$2 6 kill $pid 8 while kill -0 $pid 2>/dev/null 13 kill kill -9 $pid 2> /dev/null 20 while kill -0 $pid 2>/dev/null
|
/netbsd/external/gpl3/gdb/dist/gdb/nat/ |
H A D | gdb_ptrace.h | 131 # define ptrace(request, pid, addr, data) \ argument 132 ptrace64 (request, pid, addr, data, 0) 136 # define ptrace(request, pid, addr, data) \ argument 137 ptrace (request, pid, addr, data, 0) 141 # define ptrace(request, pid, addr, data) \ argument 142 ptrace ((PTRACE_TYPE_ARG1) request, pid, addr, data)
|
/netbsd/external/gpl3/gdb.old/dist/gdb/nat/ |
H A D | gdb_ptrace.h | 131 # define ptrace(request, pid, addr, data) \ argument 132 ptrace64 (request, pid, addr, data, 0) 136 # define ptrace(request, pid, addr, data) \ argument 137 ptrace (request, pid, addr, data, 0) 141 # define ptrace(request, pid, addr, data) \ argument 142 ptrace ((PTRACE_TYPE_ARG1) request, pid, addr, data)
|
/netbsd/crypto/external/bsd/heimdal/dist/tests/ldap/ |
H A D | slapd-stop | 7 if [ -f slapd.pid ]; then 8 kill `cat slapd.pid` 11 if [ -f slapd.pid ]; then 12 kill -9 `cat slapd.pid` 13 rm -f slapd.pid
|