Searched refs:pid (Results 126 - 150 of 2000) sorted by relevance

1234567891011>>

/netbsd-current/external/gpl3/gdb/dist/gdb/nat/
H A Dlinux-procfs.c25 /* Return the TGID of LWPID from /proc/pid/status. Returns -1 if not
54 /* Return the TGID of LWPID from /proc/pid/status. Returns -1 if not
127 linux_proc_pid_get_state (pid_t pid, int warn, enum proc_state *state) argument
132 xsnprintf (buffer, sizeof (buffer), "/proc/%d/status", (int) pid);
155 linux_proc_pid_is_gone (pid_t pid) argument
160 have_state = linux_proc_pid_get_state (pid, 0, &state);
180 linux_proc_pid_has_state (pid_t pid, enum proc_state state, int warn) argument
185 have_state = linux_proc_pid_get_state (pid, warn, &cur_state);
193 linux_proc_pid_is_stopped (pid_t pid) argument
195 return linux_proc_pid_has_state (pid, PROC_STATE_STOPPE
202 linux_proc_pid_is_trace_stopped_nowarn(pid_t pid) argument
211 linux_proc_pid_is_zombie_maybe_warn(pid_t pid, int warn) argument
219 linux_proc_pid_is_zombie_nowarn(pid_t pid) argument
227 linux_proc_pid_is_zombie(pid_t pid) argument
242 pid_t pid = ptid.pid (); local
275 linux_proc_attach_tgid_threads(pid_t pid, linux_proc_attach_lwp_func attach_lwp) argument
333 linux_proc_task_list_dir_exists(pid_t pid) argument
345 linux_proc_pid_to_exec_file(int pid) argument
[all...]
/netbsd-current/external/gpl3/gdb/dist/gdb/
H A Dinf-ptrace.c51 return ptrace (request, ptid.pid (), addr, data);
53 pid_t pid = get_ptrace_pid (ptid);
54 return ptrace (request, pid, addr, data);
101 pid_t pid = fork_inferior (exec_file, allargs, env, inf_ptrace_me, NULL,
104 ptid_t ptid (pid);
107 pid shouldn't change. */
113 gdb_startup_inferior (pid, START_INFERIOR_TRAPS_EXPECTED);
131 waitpid (inferior_ptid.pid (), &status, 0);
148 pid_t pid = parse_pid_to_attach (args);
150 if (pid
99 pid_t pid = fork_inferior (exec_file, allargs, env, inf_ptrace_me, NULL, local
146 pid_t pid = parse_pid_to_attach (args); local
191 pid_t pid = inferior_ptid.pid (); local
227 pid_t pid = inferior_ptid.pid (); local
246 pid_t pid; local
303 pid_t pid; local
[all...]
H A Dsh-netbsd-nat.c55 pid_t pid = regcache->ptid ().pid (); local
62 if (ptrace (PT_GETREGS, pid,
78 pid_t pid = regcache->ptid ().pid (); local
85 if (ptrace (PT_GETREGS, pid,
93 if (ptrace (PT_SETREGS, pid,
H A Dnetbsd-nat.c39 nbsd_nat_target::pid_to_exec_file (int pid) argument
41 return netbsd_nat::pid_to_exec_file (pid);
47 nbsd_pid_to_cwd (int pid) argument
51 int mib[4] = {CTL_KERN, KERN_PROC_ARGS, pid, KERN_PROC_CWD};
61 nbsd_pid_to_kinfo_proc2 (pid_t pid, struct kinfo_proc2 *kp) argument
66 int mib[6] = {CTL_KERN, KERN_PROC2, KERN_PROC_PID, pid,
74 nbsd_pid_to_cmdline (int pid) argument
76 int mib[4] = {CTL_KERN, KERN_PROC_ARGS, pid, KERN_PROC_ARGV};
119 nbsd_add_threads (nbsd_nat_target *target, pid_t pid) argument
133 netbsd_nat::for_each_thread (pid, f
147 post_attach(int pid) argument
170 pid_t pid = ptid.pid (); local
181 nbsd_kinfo_get_vmmap(pid_t pid, size_t *size) argument
219 pid_t pid = inferior_ptid.pid (); local
273 pid_t pid; local
555 pid_t pid; local
584 pid_t pid = nbsd_wait (ptid, ourstatus, target_options); local
714 insert_exec_catchpoint(int pid) argument
723 remove_exec_catchpoint(int pid) argument
732 set_syscall_catchpoint(int pid, bool needed, int any_count, gdb::array_view<const int> syscall_counts) argument
759 pid_t pid = inferior_ptid.pid (); local
817 pid_t pid = inferior_ptid.pid (); local
[all...]
/netbsd-current/external/gpl3/gdb.old/dist/gdb/nat/
H A Dnetbsd-nat.c38 pid_to_exec_file (pid_t pid) argument
41 int mib[4] = {CTL_KERN, KERN_PROC_ARGS, pid, KERN_PROC_PATHNAME};
56 netbsd_thread_lister (const pid_t pid, argument
60 int mib[5] = {CTL_KERN, KERN_LWP, pid, sizeof (struct kinfo_lwp), 0};
112 pid_t pid = ptid.pid (); local
121 return netbsd_thread_lister (pid, fn);
129 pid_t pid = ptid.pid (); local
145 if (netbsd_thread_lister (pid, f
154 for_each_thread(pid_t pid, gdb::function_view<void (ptid_t)> callback) argument
170 enable_proc_events(pid_t pid) argument
187 qxfer_siginfo(pid_t pid, const char *annex, unsigned char *readbuf, unsigned const char *writebuf, CORE_ADDR offset, int len) argument
[all...]
/netbsd-current/external/gpl3/gdb.old/dist/sim/testsuite/sim/cris/c/
H A Dpipe6.c49 int pid; local
74 pid = clone (process, (char *) stack + sizeof (stack) - 64,
77 if (pid <= 0)
79 fprintf (stderr, "Bad clone %d\n", pid);
100 retcode = waitpid (pid, &st, __WALL);
102 if (retcode != pid || !WIFEXITED (st))
104 fprintf (stderr, "Bad wait %d:%d %x\n", pid, retcode, st);
/netbsd-current/external/gpl3/gdb.old/dist/gdb/
H A Dsh-nbsd-nat.c58 pid_t pid = regcache->ptid ().pid (); local
65 if (ptrace (PT_GETREGS, pid,
81 pid_t pid = regcache->ptid ().pid (); local
88 if (ptrace (PT_GETREGS, pid,
96 if (ptrace (PT_SETREGS, pid,
/netbsd-current/external/gpl3/gdb/dist/gdbserver/
H A Dfork-child.cc64 postfork_hook (pid_t pid) argument
95 post_fork_inferior (int pid, const char *program) argument
103 tcsetpgrp (terminal_fd, pid);
107 process_info *proc = find_process_pid (pid);
116 startup_inferior (the_target, pid,
125 signal_pid = pid;
127 fprintf (stderr, "Process %s created; pid = %d\n", program, pid);
/netbsd-current/external/gpl3/gdb/dist/sim/testsuite/cris/c/
H A Dpipe6.c49 int pid; local
74 pid = clone (process, (char *) stack + sizeof (stack) - 64,
77 if (pid <= 0)
79 fprintf (stderr, "Bad clone %d\n", pid);
100 retcode = waitpid (pid, &st, __WALL);
102 if (retcode != pid || !WIFEXITED (st))
104 fprintf (stderr, "Bad wait %d:%d %x\n", pid, retcode, st);
/netbsd-current/external/bsd/am-utils/dist/scripts/
H A Dctl-hlfsd.in25 pid=`${pscmd} 2>/dev/null | grep "$1" | sed -e 's/^ *//' -e 's/ .*//'`
26 if test "$pid" != ""
28 kill $pid
34 pid=`${pscmd} 2>/dev/null | grep "$1" | sed -e 's/^ *//' -e 's/ .*//'`
35 if test "$pid" != ""
37 kill $pid
43 pid=`${pscmd} 2>/dev/null | grep "$1" | sed -e 's/^ *//' -e 's/ .*//'`
44 if test "$pid" != ""
46 kill $pid
/netbsd-current/tests/kernel/kqueue/
H A Dt_proc2.c61 pid_t pid; local
72 pid = fork();
73 if (pid == -1)
76 if (pid == 0)
92 pid_t pid = 0; local
102 RL(pid = fork());
103 if (pid == 0) {
109 EV_SET(&ke, (uintptr_t)pid, EVFILT_PROC, EV_ADD, NOTE_FORK|NOTE_TRACK,
123 RL(waitpid(pid, &status, 0));
/netbsd-current/usr.bin/gcore/
H A Dgcore.c55 (void)fprintf(stderr, "Usage: %s [-c <corename>] <pid> [<pid> ...]\n",
87 pid_t pid, cpid; local
97 pid = (pid_t)lval;
99 if (ptrace(PT_ATTACH, pid, 0, 0) == -1)
102 if ((cpid = waitpid(pid, &status, 0)) != pid) {
104 (void)ptrace(PT_DETACH, pid, (void *)1, 0);
113 if (ptrace(PT_DUMPCORE, pid, corename, corelen) == -1) {
115 (void)ptrace(PT_DETACH, pid, (voi
[all...]
/netbsd-current/tests/kernel/
H A Dh_fpufork.c42 pid_t child, pid; local
47 pid = fork();
48 switch (pid) {
/netbsd-current/external/ibm-public/postfix/dist/src/master/
H A Dmaster_monitor.c62 pid_t pid; local
83 switch (pid = fork()) {
98 (void) kill(pid, SIGKILL);
/netbsd-current/sys/arch/arm/at91/
H A Dat91rm9200bus.c60 void at91rm9200bus_peripheral_clock(int pid, int enable) argument
62 switch (pid) {
70 at91pmc_peripheral_clock(pid, enable);
73 at91pio_port at91rm9200bus_pio_port(int pid) argument
75 switch (pid) {
80 default: panic("%s: pid %d not valid", __FUNCTION__, pid);
85 uint32_t at91rm9200bus_gpio_mask(int pid) argument
90 const char *at91rm9200bus_peripheral_name(int pid) argument
92 switch (pid) {
134 int pid; member in struct:__anon14
[all...]
H A Dat91sam9260bus.c67 void at91sam9260bus_peripheral_clock(int pid, int enable) { argument
68 switch (pid) {
76 at91pmc_peripheral_clock(pid, enable);
79 at91pio_port at91sam9260bus_pio_port(int pid) { argument
80 switch (pid) {
84 default: panic("%s: pid %d not valid", __FUNCTION__, pid);
89 uint32_t at91sam9260bus_gpio_mask(int pid) { argument
93 const char *at91sam9260bus_peripheral_name(int pid) { argument
94 switch (pid) {
131 int pid; member in struct:__anon15
[all...]
H A Dat91sam9261bus.c60 void at91sam9261bus_peripheral_clock(int pid, int enable) argument
62 switch (pid) {
70 at91pmc_peripheral_clock(pid, enable);
73 at91pio_port at91sam9261bus_pio_port(int pid) argument
75 switch (pid) {
79 default: panic("%s: pid %d not valid", __FUNCTION__, pid);
84 uint32_t at91sam9261bus_gpio_mask(int pid) argument
89 const char *at91sam9261bus_peripheral_name(int pid) argument
91 switch (pid) {
125 int pid; member in struct:__anon16
[all...]
H A Dat91rm9200busvar.h48 void at91rm9200bus_peripheral_clock(int pid, int enable);
49 at91pio_port at91rm9200bus_pio_port(int pid);
50 uint32_t at91rm9200bus_gpio_mask(int pid);
56 const char *at91rm9200bus_peripheral_name(int pid);
H A Dat91sam9260busvar.h48 void at91sam9260bus_peripheral_clock(int pid, int enable);
49 at91pio_port at91sam9260bus_pio_port(int pid);
50 uint32_t at91sam9260bus_gpio_mask(int pid);
56 const char *at91sam9260bus_peripheral_name(int pid);
H A Dat91sam9261busvar.h48 void at91sam9261bus_peripheral_clock(int pid, int enable);
49 at91pio_port at91sam9261bus_pio_port(int pid);
50 uint32_t at91sam9261bus_gpio_mask(int pid);
56 const char *at91sam9261bus_peripheral_name(int pid);
/netbsd-current/external/mpl/bind/dist/bin/tests/system/
H A Dstop.pl147 return $testdir . "/" . $server . "/named.pid" if ($server =~ /^ns/);
148 return $testdir . "/" . $server . "/ans.pid" if ($server =~ /^ans/);
166 my $pid = <$fh>;
167 return unless defined($pid);
169 chomp($pid);
170 return $pid;
209 my ( $signal, $pid, $ans ) = @_;
217 $result = kill $signal, $pid;
229 my $pid = read_pid($pid_file);
231 return unless defined($pid);
[all...]
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/kadm5/
H A Dipropd_common.c109 pid_t pid = -1; local
146 pid = fork();
147 if (pid == -1)
149 if (pid == 0) {
163 wpid = waitpid(pid, &status, 0);
170 kill(pid, SIGTERM);
175 assert(wpid == pid);
177 pid = -1;
207 if (pid == -1)
210 assert(pid >
[all...]
/netbsd-current/lib/libc/gen/
H A Dpopen.c66 static struct pid { struct
67 struct pid *next;
72 pid_t pid; member in struct:pid
92 static struct pid *
95 struct pid *cur;
122 struct pid *old;
152 pdes_parent(int *pdes, struct pid *cur, pid_t pid, const char *type) argument
173 cur->pid = pid;
191 pid_t pid; local
230 pid_t pid; local
271 pid_t pid; local
[all...]
/netbsd-current/tests/lib/libc/termios/
H A Dt_tcsetpgrp.c51 pid_t pid; local
56 pid = fork();
57 ATF_REQUIRE(pid >= 0);
59 if (pid == 0) {
/netbsd-current/external/cddl/dtracetoolkit/dist/Bin/
H A Dcpuwalk.d53 /pid/
55 @sample[pid, execname] = lquantize(cpu, 0, MAXCPUID, 1);

Completed in 399 milliseconds

1234567891011>>