/openbsd/gnu/llvm/lldb/tools/debugserver/source/ |
H A D | DNB.h | 79 nub_bool_t DNBProcessResume(nub_process_t pid, 82 nub_bool_t DNBProcessHalt(nub_process_t pid) DNB_EXPORT; 83 nub_bool_t DNBProcessDetach(nub_process_t pid) DNB_EXPORT; 86 nub_bool_t DNBProcessKill(nub_process_t pid) DNB_EXPORT; 93 nub_addr_t DNBProcessMemoryReadPointer(nub_process_t pid, 95 std::string DNBProcessMemoryReadCString(nub_process_t pid, 104 nub_bool_t DNBProcessMemoryDeallocate(nub_process_t pid, 109 DNBProcessGetProfileData(nub_process_t pid, 122 nub_bool_t DNBProcessSetExitInfo(nub_process_t pid, 131 nub_bool_t DNBProcessSyncThreadState(nub_process_t pid, [all …]
|
H A D | DNB.cpp | 298 pid); in waitpid_thread() 372 spawn_waitpid_thread(pid); in DNBProcessLaunch() 380 kill(SIGKILL, pid); in DNBProcessLaunch() 396 return pid; in DNBProcessLaunch() 492 pid = in DNBProcessAttach() 500 spawn_waitpid_thread(pid); in DNBProcessAttach() 525 pid = INVALID_NUB_PROCESS; in DNBProcessAttach() 550 return pid; in DNBProcessAttach() 728 nub_process_t pid; in DNBProcessAttachWait() local 731 waitfor_pid = pid; in DNBProcessAttachWait() [all …]
|
/openbsd/gnu/usr.bin/binutils/gdb/ |
H A D | inf-ptrace.c | 49 pid_t pid, fpid; in inf_ptrace_follow_fork() local 190 pid_t pid; in inf_ptrace_attach() local 301 if (pid == 0) in inf_ptrace_kill() 333 if (pid == -1) in inf_ptrace_resume() 364 pid_t pid; in inf_ptrace_wait() local 382 if (pid == -1) in inf_ptrace_wait() 396 pid = -1; in inf_ptrace_wait() 644 int pid, i; in inf_ptrace_fetch_register() local 649 if (pid == 0) in inf_ptrace_fetch_register() 694 int pid, i; in inf_ptrace_store_register() local [all …]
|
H A D | hppah-nat.c | 589 int pid; in child_wait() local 613 if (pid == -1) in child_wait() 893 return pid; in hppa_require_attach() 902 return pid; in hppa_require_detach() 959 kill (pid, SIGTRAP); in hppa_ensure_vforking_parent_remains_stopped() 1023 pid, in require_notification_of_events() 1061 pid, in require_notification_of_exec_events() 1202 pid, in hpux_has_forked() 1234 pid, in hpux_has_vforked() 1296 pid, in hpux_has_execd() [all …]
|
H A D | pa64solib.h | 55 #define SOLIB_CREATE_CATCH_LOAD_HOOK(pid,tempflag, filename,cond_string) \ argument 73 #define SOLIB_HAVE_LOAD_EVENT(pid) \ argument 74 pa64_solib_have_load_event (pid) 88 #define SOLIB_LOADED_LIBRARY_PATHNAME(pid) \ argument 89 pa64_solib_loaded_library_pathname (pid) 98 #define SOLIB_HAVE_UNLOAD_EVENT(pid) \ argument 99 pa64_solib_have_unload_event (pid) 113 #define SOLIB_UNLOADED_LIBRARY_PATHNAME(pid) \ argument 114 pa64_solib_unloaded_library_pathname (pid) 125 #define SOLIB_IN_DYNAMIC_LINKER(pid,pc) \ argument [all …]
|
H A D | inftarg.c | 108 int pid; in child_wait() local 116 pid = wait (&status); in child_wait() 124 if (pid == -1) in child_wait() 149 return pid_to_ptid (pid); in child_wait() 154 return pid_to_ptid (pid); in child_wait() 168 pid_t pid = PIDGET (ptid); in child_thread_alive() local 170 return (kill (pid, 0) != -1); in child_thread_alive() 181 int pid; in child_attach() local 210 attach (pid); in child_attach() 218 child_post_attach (int pid) in child_post_attach() argument [all …]
|
H A D | somsolib.h | 68 #define SOLIB_CREATE_CATCH_LOAD_HOOK(pid,tempflag, filename,cond_string) \ argument 88 #define SOLIB_HAVE_LOAD_EVENT(pid) \ argument 89 som_solib_have_load_event (pid) 104 #define SOLIB_LOADED_LIBRARY_PATHNAME(pid) \ argument 105 som_solib_loaded_library_pathname (pid) 115 #define SOLIB_HAVE_UNLOAD_EVENT(pid) \ argument 116 som_solib_have_unload_event (pid) 131 #define SOLIB_UNLOADED_LIBRARY_PATHNAME(pid) \ argument 132 som_solib_unloaded_library_pathname (pid) 144 #define SOLIB_IN_DYNAMIC_LINKER(pid,pc) \ argument [all …]
|
H A D | amd64bsd-nat.c | 46 int pid; in amd64bsd_fetch_inferior_registers() local 50 pid = ptid_get_lwp (inferior_ptid); in amd64bsd_fetch_inferior_registers() 51 if (pid == 0) in amd64bsd_fetch_inferior_registers() 52 pid = ptid_get_pid (inferior_ptid); in amd64bsd_fetch_inferior_registers() 58 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) in amd64bsd_fetch_inferior_registers() 83 int pid; in amd64bsd_store_inferior_registers() local 87 pid = ptid_get_lwp (inferior_ptid); in amd64bsd_store_inferior_registers() 88 if (pid == 0) in amd64bsd_store_inferior_registers() 89 pid = ptid_get_pid (inferior_ptid); in amd64bsd_store_inferior_registers() 95 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) in amd64bsd_store_inferior_registers() [all …]
|
H A D | obsd-nat.c | 51 pid_t pid = ptid_get_pid (inferior_ptid); in obsd_find_new_threads() local 78 pid_t pid; in obsd_wait() local 88 pid = waitpid (ptid_get_pid (ptid), &status, 0); in obsd_wait() 91 while (pid == -1 && errno == EINTR); in obsd_wait() 96 if (pid == -1) in obsd_wait() 110 pid = -1; in obsd_wait() 112 while (pid == -1); in obsd_wait() 114 ptid = pid_to_ptid (pid); in obsd_wait() 140 gdb_assert (pe.pe_other_pid == pid); in obsd_wait() 147 return pid_to_ptid (pid); in obsd_wait() [all …]
|
H A D | i386v-nat.c | 128 i386_insert_watchpoint (int pid, CORE_ADDR addr, int len, int rw) in i386_insert_watchpoint() argument 130 return i386_insert_aligned_watchpoint (pid, addr, addr, len, rw); in i386_insert_watchpoint() 160 return i386_insert_nonaligned_watchpoint (pid, waddr, addr, len, rw); in i386_insert_aligned_watchpoint() 167 return i386_insert_nonaligned_watchpoint (pid, waddr, addr, len, rw); in i386_insert_aligned_watchpoint() 183 ptrace (6, pid, offsetof (struct user, u_debugreg[DR_CONTROL]), in i386_insert_aligned_watchpoint() 219 i386_remove_watchpoint (pid, waddr, size); in i386_insert_nonaligned_watchpoint() 231 i386_remove_watchpoint (int pid, CORE_ADDR addr, int len) in i386_remove_watchpoint() argument 246 ptrace (6, pid, offsetof (struct user, u_debugreg[DR_CONTROL]), in i386_remove_watchpoint() 248 ptrace (6, pid, offsetof (struct user, u_debugreg[DR_STATUS]), 0); in i386_remove_watchpoint() 256 i386_stopped_by_watchpoint (int pid) in i386_stopped_by_watchpoint() argument [all …]
|
/openbsd/regress/lib/libc/sys/ |
H A D | t_waitid.c | 73 pid_t pid; in ATF_TC_BODY() local 75 switch (pid = fork()) { in ATF_TC_BODY() 80 ATF_REQUIRE(pid > 0); in ATF_TC_BODY() 104 pid_t pid; in ATF_TC_BODY() local 106 switch (pid = fork()) { in ATF_TC_BODY() 111 ATF_REQUIRE(pid > 0); in ATF_TC_BODY() 136 pid_t pid; in ATF_TC_BODY() local 145 ATF_REQUIRE(pid > 0); in ATF_TC_BODY() 169 pid_t pid; in ATF_TC_BODY() local 178 ATF_REQUIRE(pid > 0); in ATF_TC_BODY() [all …]
|
/openbsd/gnu/usr.bin/perl/ext/IPC-Open3/t/ |
H A D | IPC-Open3.t | 37 my ($pid, $reaped_pid); 47 cmp_ok($pid, '!=', 0); 55 is($reaped_pid, $pid); 68 waitpid $pid, 0; 80 waitpid $pid, 0; 89 waitpid $pid, 0; 98 waitpid $pid, 0; 107 waitpid $pid, 0; 117 waitpid $pid, 0; 130 waitpid $pid, 0; [all …]
|
/openbsd/regress/sys/kern/futex/ |
H A D | futex.c | 47 pid_t pid; in main() local 91 pid = fork(); in main() 93 if (pid == 0) { in main() 99 assert(waitpid(pid, &status, 0) == pid); in main() 106 pid = fork(); in main() 119 assert(waitpid(pid, &status, 0) == pid); in main() 133 pid = fork(); in main() 135 if (pid == 0) { in main() 141 assert(waitpid(pid, &status, 0) == pid); in main() 148 pid = fork(); in main() [all …]
|
/openbsd/sys/dev/pci/drm/amd/amdkfd/ |
H A D | kfd_smi_events.c | 42 pid_t pid; member 168 if (pid && client->pid != pid && !(client->suser && (events & all))) in kfd_smi_ev_enabled() 182 if (!kfd_smi_ev_enabled(pid, client, smi_event)) in add_event_to_kfifo() 215 add_event_to_kfifo(pid, dev, event, fifo_in, len); in kfd_smi_event_add() 246 if (!task_info.pid) in kfd_smi_event_update_vmfault() 250 task_info.pid, task_info.task_name); in kfd_smi_event_update_vmfault() 258 "%lld -%d @%lx(%x) %c\n", ktime_to_ns(ts), pid, in kfd_smi_event_page_fault_start() 303 "%lld -%d %x\n", ktime_get_boottime_ns(), pid, in kfd_smi_event_queue_restore() 319 kfd_smi_event_add(p->lead_thread->pid, pdd->dev, in kfd_smi_event_queue_restore_rescheduled() 322 p->lead_thread->pid, pdd->dev->id, 'R'); in kfd_smi_event_queue_restore_rescheduled() [all …]
|
/openbsd/gnu/usr.bin/perl/t/op/ |
H A D | fork.t | 282 if ($pid = fork) { 283 waitpid($pid,0); 299 if ($pid = fork) { 322 if ($pid = fork) { 369 $pid; 391 $pid; 413 print "waitpid() returned ok\n" if waitpid($pid,0) == $pid; 437 my $pid = fork; 439 if ($pid == 0) { 464 print "waitpid() returned ok\n" if waitpid($pid,0) == $pid; [all …]
|
H A D | kill0.t | 27 for my $pid (1 .. $total) { 28 ++$count if kill(0, $pid); 42 my ($pid, $name) = @$case; 43 eval { kill 0, $pid }; 74 my $pid = system(1, $^X, 'op/kill0_child', $killfile); 75 die 'PID is 0' if !$pid; 82 is(kill('-KILL', $pid), 1, 'process group kill, named signal'); 102 $pid = system(1, $^X, 'op/kill0_child', $killfile); 103 die 'PID is 0' if !$pid; 107 is(kill(-$signo{KILL}, $pid), 1, 'process group kill, numeric signal');
|
/openbsd/gnu/usr.bin/perl/dist/IO/lib/IO/ |
H A D | Pipe.pm | 48 if($pid) { # Parent 49 return $pid; 78 croak "IO::Pipe: Cannot spawn-NOWAIT: $err" if not $pid or $pid < 0; 79 return $pid; 100 my $pid; 101 $pid = $me->_doit(0, $fh, @_) 110 ${*$me}{'io_pipe_pid'} = $pid 111 if defined $pid; 124 my $pid; 125 $pid = $me->_doit(1, $fh, @_) [all …]
|
/openbsd/usr.bin/mail/ |
H A D | popen.c | 46 pid_t pid; member 52 pid_t pid; member 102 pid_t pid; in Popen() local 169 fpp->pid = pid; in register_file() 211 pid_t pid; in start_commandv() local 229 return(pid); in start_commandv() 235 pid_t pid; in run_command() local 241 if (pid < 0) in run_command() 306 for (cpp = &child; *cpp != NULL && (*cpp)->pid != pid; in findchild() 320 (*cpp)->pid = pid; in findchild() [all …]
|
/openbsd/regress/sys/kern/flock/ |
H A D | flock.c | 111 int pid; in test2() local 182 int pid; in test3() local 252 int pid; in test4() local 336 int pid; in test5() local 523 int pid; in test7() local 595 int pid; in test8() local 672 int pid; in test9() local 744 int pid; in test10() local 891 int pid; in test12() local 969 int pid; in test13() local [all …]
|
/openbsd/lib/libc/gen/ |
H A D | popen.c | 47 static struct pid { struct 48 struct pid *next; argument 50 pid_t pid; member 58 struct pid * volatile cur; in popen() 62 pid_t pid; in popen() local 79 switch (pid = vfork()) { in popen() 89 struct pid *pcur; in popen() 125 cur->pid = pid; in popen() 150 struct pid *cur, *last; in pclose() 152 pid_t pid; in pclose() local [all …]
|
/openbsd/gnu/llvm/lldb/examples/interposing/darwin/fd_interposing/ |
H A D | FDInterposing.cpp | 323 g_pid = pid; in get_interposed_pid() 449 if (pid >= 0) { in backtrace_error() 529 if (pid >= 0) { in socket$__interposed__() 557 if (pid >= 0) { in socketpair$__interposed__() 582 if (pid >= 0) { in open$__interposed__() 612 if (pid >= 0) { in open$NOCANCEL$__interposed__() 634 if (pid >= 0) { in __open_extended$__interposed__() 655 if (pid >= 0) { in kqueue$__interposed__() 673 if (pid >= 0) { in shm_open$__interposed__() 694 if (pid >= 0) { in accept$__interposed__() [all …]
|
/openbsd/regress/usr.sbin/syslogd/ |
H A D | Proc.pm | 36 foreach my $pid (@pids) { 38 push @perms, $pid; 88 defined(my $pid = fork()) 90 if ($pid) { 91 $CHILDREN{$pid} = 1; 92 $self->{pid} = $pid; 157 my $pid = $self->{pid} 159 my $kid = waitpid($pid, $flags); 225 kill_children($self->{pid}); 232 my $pid = shift // $self->{pid}; [all …]
|
/openbsd/usr.sbin/pkg_add/OpenBSD/PackageRepository/ |
H A D | SCP.pm | 61 my $pid; 67 if (defined $pid) { 68 waitpid($pid, 0); 69 undef $pid; 72 $pid = fork(); 73 if (!defined $pid) { 76 if ($pid == 0) { 84 if (defined $pid) { 85 kill 1, $pid; 86 waitpid($pid, 0); [all …]
|
/openbsd/gnu/usr.bin/cvs/lib/ |
H A D | waitpid.c | 11 pid_t pid; member 36 pid_t waitpid (pid, status, options) in waitpid() argument 37 pid_t pid; in waitpid() 47 unreaped[0].pid = 0; 51 for (i = 0; unreaped[i].pid; i++) 52 if (unreaped[i].pid == pid) 55 while (unreaped[i].pid) 61 return pid; 72 if (p == 0 || p == -1 || p == pid) 77 unreaped[n-1].pid = p;
|
/openbsd/gnu/llvm/lldb/source/Plugins/Process/gdb-remote/ |
H A D | GDBRemoteCommunicationServerPlatform.cpp | 78 pos->second = pid; in AssociatePortWithProcess() 94 lldb::pid_t pid) { in FreePortForProcess() argument 97 if (pair.second == pid) { in FreePortForProcess() 215 m_spawned_pids.insert(pid); in LaunchGDBServer() 328 if (KillSpawnedProcess(pid)) in Handle_qKillSpawnedProcess() 343 Host::Kill(pid, SIGTERM); in KillSpawnedProcess() 365 Host::Kill(pid, SIGKILL); in KillSpawnedProcess() 520 lldb::pid_t pid) { in DebugserverProcessReaped() argument 523 m_spawned_pids.erase(pid); in DebugserverProcessReaped() 555 m_spawned_pids.insert(pid); in LaunchProcess() [all …]
|