Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 1696) sorted by relevance

12345678910>>...68

/netbsd/sys/arch/hpc/hpc/
H A Dplatid_test.c43 platid_t pid; in platid_bit_test() local
47 memset((char*)&pid, 0, sizeof(pid)); in platid_bit_test()
55 memset((char*)&pid, 0, sizeof(pid)); in platid_bit_test()
63 memset((char*)&pid, 0, sizeof(pid)); in platid_bit_test()
71 memset((char*)&pid, 0, sizeof(pid)); in platid_bit_test()
79 memset((char*)&pid, 0, sizeof(pid)); in platid_bit_test()
80 pid.s.flags = ~0; in platid_bit_test()
87 memset((char*)&pid, 0, sizeof(pid)); in platid_bit_test()
95 memset((char*)&pid, 0, sizeof(pid)); in platid_bit_test()
103 memset((char*)&pid, 0, sizeof(pid)); in platid_bit_test()
[all …]
H A Dplatid.c53 platid_ntoh(platid_t *pid) in platid_ntoh() argument
56 pid->dw.dw0 = ntohl(pid->dw.dw0); in platid_ntoh()
57 pid->dw.dw1 = ntohl(pid->dw.dw1); in platid_ntoh()
61 platid_hton(platid_t *pid) in platid_hton() argument
64 pid->dw.dw0 = htonl(pid->dw.dw0); in platid_hton()
65 pid->dw.dw1 = htonl(pid->dw.dw1); in platid_hton()
88 return (platid_match_sub(pid, mask, 0)); in platid_match()
97 if (pid->s.mbr != mask->s.mbr && \ in platid_match_sub()
102 } else if (pid->s.mbr == mask->s.mbr) { \ in platid_match_sub()
123 platid_name(platid_t *pid) in platid_name() argument
[all …]
/netbsd/tests/bin/ps/
H A Dt_ps.sh209 "$(echo "${default_keywords}" | sed -e 's/pid/pid %cpu %mem/')"
211 "$(echo "${default_keywords}" | sed -e 's/pid/pid %cpu %mem/')"
213 "$(echo "${default_keywords}" | sed -e 's/pid/pid %cpu %mem/')"
240 check_heading_keywords '-o comm,pid' \
284 check_heading_regexp '-o comm,pid==' \
286 check_heading_regexp '-o comm,pid=,' \
328 check_heading_regexp '-o comm,pid=' \
383 check_heading_regexp '-o pid=PPP -o pid=QQQ' \
386 check_heading_regexp '-o pid=PPP -o pid' \
388 check_heading_regexp '-o pid -o pid=QQQ' \
[all …]
/netbsd/tests/lib/libc/sys/
H A Dt_wait.c76 pid_t pid; in ATF_TC_BODY() local
86 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY()
110 pid_t pid; in ATF_TC_BODY() local
121 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY()
145 pid_t pid; in ATF_TC_BODY() local
157 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY()
182 pid_t pid; in ATF_TC_BODY() local
195 ATF_REQUIRE(wait6(P_PID, pid, &st, WSTOPPED, &wru, &si) == pid); in ATF_TC_BODY()
221 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY()
248 pid_t pid; in ATF_TC_BODY() local
[all …]
/netbsd/external/bsd/kyua-testers/dist/
H A Dcli_test.c163 if (pid == 0) { in ATF_TC_BODY()
177 if (pid == 0) { in ATF_TC_BODY()
192 if (pid == 0) { in ATF_TC_BODY()
207 if (pid == 0) { in ATF_TC_BODY()
225 if (pid == 0) { in check_flag_not_a_number()
247 if (pid == 0) { in check_flag_out_of_range()
307 if (pid == 0) { in ATF_TC_BODY()
327 if (pid == 0) { in ATF_TC_BODY()
350 if (pid == 0) { in ATF_TC_BODY()
366 if (pid == 0) { in ATF_TC_BODY()
[all …]
/netbsd/external/gpl3/gdb/dist/gdb/
H A Dobsd-nat.c50 pid_t pid = inferior_ptid.pid (); in update_thread_list() local
79 pid_t pid; in wait() local
88 pid = waitpid (ptid.pid (), &status, 0); in wait()
95 if (pid == -1) in wait()
108 if (!WIFSTOPPED (status) && pid != inferior_ptid.pid ()) in wait()
109 pid = -1; in wait()
111 while (pid == -1); in wait()
113 ptid = ptid_t (pid); in wait()
140 if (fpid == inferior_ptid.pid ()) in wait()
146 return ptid_t (pid); in wait()
[all …]
H A Dinf-ptrace.c146 pid_t pid; in attach() local
209 pid_t pid = inferior_ptid.pid (); in detach() local
245 pid_t pid = inferior_ptid.pid (); in kill() local
248 if (pid == 0) in kill()
264 pid_t pid; in get_ptrace_pid() local
269 if (pid == 0) in get_ptrace_pid()
270 pid = ptid.pid (); in get_ptrace_pid()
271 return pid; in get_ptrace_pid()
321 pid_t pid; in wait() local
330 pid = waitpid (ptid.pid (), &status, 0); in wait()
[all …]
H A Dnbsd-nat.c172 pid_t pid = ptid.pid (); in pid_to_str() local
221 pid_t pid = inferior_ptid.pid (); in find_memory_regions() local
276 pid_t pid; in info_proc() local
320 pid = inferior_ptid.pid (); in info_proc()
321 if (pid == 0) in info_proc()
557 pid_t pid; in nbsd_wait() local
565 pid = waitpid (ptid.pid (), &status, 0); in nbsd_wait()
571 if (pid == -1) in nbsd_wait()
575 return pid; in nbsd_wait()
763 pid_t pid = inferior_ptid.pid (); in xfer_partial() local
[all …]
H A Dx86-nat.c50 pid_t pid; member
61 x86_find_process_pid (pid_t pid) in x86_find_process_pid() argument
66 if (proc->pid == pid) in x86_find_process_pid()
76 x86_add_process (pid_t pid) in x86_add_process() argument
80 proc->pid = pid; in x86_add_process()
91 x86_process_info_get (pid_t pid) in x86_process_info_get() argument
95 proc = x86_find_process_pid (pid); in x86_process_info_get()
97 proc = x86_add_process (pid); in x86_process_info_get()
105 x86_debug_reg_state (pid_t pid) in x86_debug_reg_state() argument
113 x86_forget_process (pid_t pid) in x86_forget_process() argument
[all …]
H A Dfbsd-nat.c96 pid_t pid = inferior_ptid.pid (); in find_memory_regions() local
170 pid_t pid = inferior_ptid.pid (); in find_memory_regions() local
333 pid = inferior_ptid.pid (); in info_proc()
691 pid_t pid = inferior_ptid.pid (); in xfer_partial() local
911 int pid = ptid.pid (); in pid_to_str() local
928 int pid = thr->ptid.pid (); in thread_name() local
1103 if (it->pid () == pid) in fbsd_is_child_pending()
1130 if (it->pid () == pid) in fbsd_is_vfork_done_pending()
1162 pid = inferior_ptid.pid (); in resume()
1164 pid = ptid.pid (); in resume()
[all …]
/netbsd/external/gpl3/gdb.old/dist/gdb/
H A Dobsd-nat.c50 pid_t pid = inferior_ptid.pid (); in update_thread_list() local
79 pid_t pid; in wait() local
88 pid = waitpid (ptid.pid (), &status, 0); in wait()
95 if (pid == -1) in wait()
108 if (!WIFSTOPPED (status) && pid != inferior_ptid.pid ()) in wait()
109 pid = -1; in wait()
111 while (pid == -1); in wait()
113 ptid = ptid_t (pid); in wait()
140 if (fpid == inferior_ptid.pid ()) in wait()
146 return ptid_t (pid); in wait()
[all …]
H A Dinf-ptrace.c146 pid_t pid; in attach() local
209 pid_t pid = inferior_ptid.pid (); in detach() local
245 pid_t pid = inferior_ptid.pid (); in kill() local
248 if (pid == 0) in kill()
264 pid_t pid; in get_ptrace_pid() local
269 if (pid == 0) in get_ptrace_pid()
270 pid = ptid.pid (); in get_ptrace_pid()
271 return pid; in get_ptrace_pid()
321 pid_t pid; in wait() local
330 pid = waitpid (ptid.pid (), &status, 0); in wait()
[all …]
H A Dnbsd-nat.c172 pid_t pid = ptid.pid (); in pid_to_str() local
221 pid_t pid = inferior_ptid.pid (); in find_memory_regions() local
276 pid_t pid; in info_proc() local
320 pid = inferior_ptid.pid (); in info_proc()
321 if (pid == 0) in info_proc()
557 pid_t pid; in nbsd_wait() local
565 pid = waitpid (ptid.pid (), &status, 0); in nbsd_wait()
571 if (pid == -1) in nbsd_wait()
575 return pid; in nbsd_wait()
763 pid_t pid = inferior_ptid.pid (); in xfer_partial() local
[all …]
H A Dx86-nat.c50 pid_t pid; member
61 x86_find_process_pid (pid_t pid) in x86_find_process_pid() argument
66 if (proc->pid == pid) in x86_find_process_pid()
76 x86_add_process (pid_t pid) in x86_add_process() argument
80 proc->pid = pid; in x86_add_process()
91 x86_process_info_get (pid_t pid) in x86_process_info_get() argument
95 proc = x86_find_process_pid (pid); in x86_process_info_get()
97 proc = x86_add_process (pid); in x86_process_info_get()
105 x86_debug_reg_state (pid_t pid) in x86_debug_reg_state() argument
113 x86_forget_process (pid_t pid) in x86_forget_process() argument
[all …]
H A Dfbsd-nat.c96 pid_t pid = inferior_ptid.pid (); in find_memory_regions() local
170 pid_t pid = inferior_ptid.pid (); in find_memory_regions() local
333 pid = inferior_ptid.pid (); in info_proc()
691 pid_t pid = inferior_ptid.pid (); in xfer_partial() local
911 int pid = ptid.pid (); in pid_to_str() local
928 int pid = thr->ptid.pid (); in thread_name() local
1103 if (it->pid () == pid) in fbsd_is_child_pending()
1130 if (it->pid () == pid) in fbsd_is_vfork_done_pending()
1162 pid = inferior_ptid.pid (); in resume()
1164 pid = ptid.pid (); in resume()
[all …]
/netbsd/external/gpl3/gdb/dist/gdb/unittests/
H A Dptid-selftests.c41 static constexpr ptid_t pid = ptid_t (1); variable
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 is right");
62 static_assert (!pid.lwp_p (), "pid's lwp_p is right");
69 static_assert (pid.lwp () == 0, "pid's lwp is right");
76 static_assert (!pid.tid_p (), "pid's tid_p is right");
83 static_assert (pid.tid () == 0, "pid's tid is right");
90 static_assert (pid.is_pid (), "pid is a pid");
121 static_assert (pid.matches (pid), "pid matches pid");
[all …]
/netbsd/external/gpl3/gdb.old/dist/gdb/unittests/
H A Dptid-selftests.c41 static constexpr ptid_t pid = ptid_t (1); variable
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 is right");
62 static_assert (!pid.lwp_p (), "pid's lwp_p is right");
69 static_assert (pid.lwp () == 0, "pid's lwp is right");
76 static_assert (!pid.tid_p (), "pid's tid_p is right");
83 static_assert (pid.tid () == 0, "pid's tid is right");
90 static_assert (pid.is_pid (), "pid is a pid");
121 static_assert (pid.matches (pid), "pid matches pid");
[all …]
/netbsd/external/gpl3/gdb/dist/gdb/nat/
H A Dlinux-procfs.c155 linux_proc_pid_is_gone (pid_t pid) in linux_proc_pid_is_gone() argument
193 linux_proc_pid_is_stopped (pid_t pid) in linux_proc_pid_is_stopped() argument
202 linux_proc_pid_is_trace_stopped_nowarn (pid_t pid) in linux_proc_pid_is_trace_stopped_nowarn() argument
219 linux_proc_pid_is_zombie_nowarn (pid_t pid) in linux_proc_pid_is_zombie_nowarn() argument
227 linux_proc_pid_is_zombie (pid_t pid) in linux_proc_pid_is_zombie() argument
242 pid_t pid = ptid.pid (); in linux_proc_tid_get_name() local
275 linux_proc_attach_tgid_threads (pid_t pid, in linux_proc_attach_tgid_threads() argument
283 if (linux_proc_get_tgid (pid) != pid) in linux_proc_attach_tgid_threads()
311 ptid_t ptid = ptid_t (pid, lwp, 0); in linux_proc_attach_tgid_threads()
333 linux_proc_task_list_dir_exists (pid_t pid) in linux_proc_task_list_dir_exists() argument
[all …]
H A Dnetbsd-nat.c38 pid_to_exec_file (pid_t pid) in pid_to_exec_file() argument
41 int mib[4] = {CTL_KERN, KERN_PROC_ARGS, pid, KERN_PROC_PATHNAME}; in pid_to_exec_file()
56 netbsd_thread_lister (const pid_t pid, in netbsd_thread_lister() argument
112 pid_t pid = ptid.pid (); in thread_alive() local
121 return netbsd_thread_lister (pid, fn); in thread_alive()
129 pid_t pid = ptid.pid (); in thread_name() local
145 if (netbsd_thread_lister (pid, fn)) in thread_name()
159 ptid_t ptid = ptid_t (pid, kl->l_lid, 0); in for_each_thread()
164 netbsd_thread_lister (pid, fn); in for_each_thread()
170 enable_proc_events (pid_t pid) in enable_proc_events() argument
[all …]
/netbsd/external/gpl3/gdb.old/dist/gdb/nat/
H A Dlinux-procfs.c155 linux_proc_pid_is_gone (pid_t pid) in linux_proc_pid_is_gone() argument
193 linux_proc_pid_is_stopped (pid_t pid) in linux_proc_pid_is_stopped() argument
202 linux_proc_pid_is_trace_stopped_nowarn (pid_t pid) in linux_proc_pid_is_trace_stopped_nowarn() argument
219 linux_proc_pid_is_zombie_nowarn (pid_t pid) in linux_proc_pid_is_zombie_nowarn() argument
227 linux_proc_pid_is_zombie (pid_t pid) in linux_proc_pid_is_zombie() argument
242 pid_t pid = ptid.pid (); in linux_proc_tid_get_name() local
275 linux_proc_attach_tgid_threads (pid_t pid, in linux_proc_attach_tgid_threads() argument
283 if (linux_proc_get_tgid (pid) != pid) in linux_proc_attach_tgid_threads()
311 ptid_t ptid = ptid_t (pid, lwp, 0); in linux_proc_attach_tgid_threads()
333 linux_proc_task_list_dir_exists (pid_t pid) in linux_proc_task_list_dir_exists() argument
[all …]
/netbsd/external/gpl3/gdb/dist/gdbserver/
H A Dnetbsd-low.cc107 return pid; in create_inferior()
115 pid_t pid = current_process ()->pid; in post_create_inferior() local
149 const pid_t pid = resume_ptid.pid (); in resume() local
243 pid_t pid in netbsd_waitpid() local
450 pid_t pid = process->pid; in kill() local
466 pid_t pid = process->pid; in detach() local
559 pid_t pid = current_process ()->pid; in read_memory() local
597 pid_t pid = current_process ()->pid; in write_memory() local
728 pid_t pid = current_process ()->pid; in stopped_by_sw_breakpoint() local
763 pid_t pid = current_process ()->pid; in qxfer_siginfo() local
[all …]
/netbsd/external/gpl3/gdb.old/dist/gdbserver/
H A Dnetbsd-low.cc107 return pid; in create_inferior()
115 pid_t pid = current_process ()->pid; in post_create_inferior() local
149 const pid_t pid = resume_ptid.pid (); in resume() local
243 pid_t pid in netbsd_waitpid() local
450 pid_t pid = process->pid; in kill() local
466 pid_t pid = process->pid; in detach() local
559 pid_t pid = current_process ()->pid; in read_memory() local
597 pid_t pid = current_process ()->pid; in write_memory() local
728 pid_t pid = current_process ()->pid; in stopped_by_sw_breakpoint() local
763 pid_t pid = current_process ()->pid; in qxfer_siginfo() local
[all …]
/netbsd/external/bsd/libproc/dist/
H A Dproc_create.c55 phdl->pid = pid; in proc_init()
61 mib[2] = pid; in proc_init()
77 mib[3] = pid; in proc_init()
100 if (pid == 0 || pid == getpid()) in proc_attach()
112 error = proc_init(pid, flags, PS_RUN, phdl); in proc_attach()
116 if (ptrace(PT_ATTACH, phdl->pid, 0, 0) != 0) { in proc_attach()
123 if (waitpid(pid, &status, WUNTRACED) == -1) { in proc_attach()
150 pid_t pid; in proc_create() local
162 if ((pid = vfork()) == -1) in proc_create()
164 else if (pid == 0) { in proc_create()
[all …]
/netbsd/lib/libc/gen/
H A Dpopen.c67 struct pid *next; argument
72 pid_t pid; argument
95 struct pid *cur; in pdes_get()
122 struct pid *old; in pdes_child()
173 cur->pid = pid; in pdes_parent()
189 struct pid *cur; in popen()
191 pid_t pid; in popen() local
228 struct pid *cur; in popenve()
230 pid_t pid; in popenve() local
271 pid_t pid; in pclose() local
[all …]
/netbsd/usr.sbin/autofs/
H A Dpopen.c64 struct pid { struct
65 SLIST_ENTRY(pid) next;
67 pid_t pid; argument
83 struct pid *cur, *p; in auto_popen()
84 pid_t pid; in auto_popen() local
118 switch (pid = fork()) { in auto_popen()
145 cur->pid = pid; in auto_popen()
154 struct pid *cur, *last = NULL; in auto_pclose()
156 pid_t pid; in auto_pclose() local
177 pid = wait4(cur->pid, &status, 0, NULL); in auto_pclose()
[all …]

12345678910>>...68