/netbsd-current/external/cddl/dtracetoolkit/dist/Proc/ |
H A D | pfilestat | 11 # USAGE: pfilestat [-r|-w] pid 58 USAGE: pfilestat [-r|-w] pid 62 pfilestat pid # default, r+w counts 63 pfilestat -r pid # read count only 75 echo "Must supply pid" 122 /pid == PID && OPT_read/ 142 /pid == PID && OPT_read/ 159 /pid == PID && OPT_write/ 171 /pid == PID && OPT_write/ 185 /pid [all...] |
/netbsd-current/usr.bin/shlock/ |
H A D | shlock.c | 52 ** Extensions for UUCP style locks (i.e. pid is an int in the file, 123 xtmpfile(const char *file, pid_t pid, int uucpstyle) argument 138 snprintf(buf, sizeof(buf), "%jd\n", (intmax_t)pid); 162 (write(fd, &pid, sizeof(pid)) != sizeof(pid)) : 165 warn("write(%s,%jd)", tempname, (intmax_t)pid); 181 p_exists(pid_t pid) argument 183 dprintf("%s: process %jd is ", Pname, (intmax_t)pid); 184 if (pid < 225 pid_t pid; local 255 mklock(const char *file, pid_t pid, int uucpstyle) argument 369 pid_t pid = 0; local [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/gdbserver/ |
H A D | fork-child.cc | 67 postfork_hook (pid_t pid) argument 98 post_fork_inferior (int pid, const char *program) argument 106 tcsetpgrp (terminal_fd, pid); 110 startup_inferior (the_target, pid, 115 signal_pid = pid; 117 fprintf (stderr, "Process %s created; pid = %d\n", program, pid);
|
H A D | netbsd-low.cc | 52 netbsd_add_process (int pid, int attached) argument 54 struct process_info *proc = add_process (pid, attached); 99 pid_t pid = fork_inferior (program, str_program_args.c_str (), local 103 netbsd_add_process (pid, 0); 105 post_fork_inferior (pid, program); 107 return pid; 115 pid_t pid = current_process ()->pid; local 116 netbsd_nat::enable_proc_events (pid); 122 netbsd_process_target::attach (unsigned long pid) argument 131 gdb_catching_syscalls_p(pid_t pid) argument 149 const pid_t pid = resume_ptid.pid (); local 243 pid_t pid local 264 pid_t pid = netbsd_waitpid (ptid, ourstatus, target_options); local 450 pid_t pid = process->pid; local 466 pid_t pid = process->pid; local 486 join(int pid) argument 559 pid_t pid = current_process ()->pid; local 597 pid_t pid = current_process ()->pid; local 641 netbsd_read_auxv(pid_t pid, void *offs, void *addr, size_t len) argument 663 pid_t pid = pid_of (current_thread); local 728 pid_t pid = current_process ()->pid; local 819 get_phdr_phnum_from_proc_auxv(const pid_t pid, CORE_ADDR *phdr_memaddr, int *num_phdr) argument 870 get_dynamic(netbsd_process_target *target, const pid_t pid) argument 931 get_r_debug(netbsd_process_target *target, const int pid) argument 1011 netbsd_qxfer_libraries_svr4(netbsd_process_target *target, const pid_t pid, const char *annex, unsigned char *readbuf, unsigned const char *writebuf, CORE_ADDR offset, int len) argument 1239 pid_t pid = proc->pid; local 1262 pid_to_exec_file(pid_t pid) argument [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/gdb/nat/ |
H A D | gdb_ptrace.h | 131 # define ptrace(request, pid, addr, data) \ 132 ptrace64 (request, pid, addr, data, 0) 136 # define ptrace(request, pid, addr, data) \ 137 ptrace (request, pid, addr, data, 0) 141 # define ptrace(request, pid, addr, data) \ 142 ptrace ((PTRACE_TYPE_ARG1) request, pid, addr, data)
|
/netbsd-current/external/gpl3/gdb/dist/gdb/nat/ |
H A D | gdb_ptrace.h | 131 # define ptrace(request, pid, addr, data) \ 132 ptrace64 (request, pid, addr, data, 0) 136 # define ptrace(request, pid, addr, data) \ 137 ptrace (request, pid, addr, data, 0) 141 # define ptrace(request, pid, addr, data) \ 142 ptrace ((PTRACE_TYPE_ARG1) request, pid, addr, data)
|
H A D | netbsd-nat.c | 38 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 216 write_memory(pid_t pid, unsigned const char *writebuf, CORE_ADDR offset, size_t len, size_t *xfered_len) argument 258 read_memory(pid_t pid, unsigned char *readbuf, CORE_ADDR offset, size_t len, size_t *xfered_len) argument [all...] |
/netbsd-current/external/bsd/kyua-cli/dist/utils/logging/ |
H A D | operations_test.cpp | 109 const pid_t pid = ::getpid(); local 114 (F("20110221-181000 D %s f1:1: Debug message") % pid).str(), line); 117 (F("20110221-181001 E %s f2:2: Error message") % pid).str(), line); 120 (F("20110221-181002 I %s f3:3: Info message") % pid).str(), line); 123 (F("20110221-181003 W %s f4:4: Warning message") % pid).str(), line); 138 const pid_t pid = ::getpid(); local 143 (F("20110221-182000 D %s file:123: Debug message") % pid).str(), line); 192 const pid_t pid = ::getpid(); local 197 (F("20110319-114000 D %s file1:11: Debug 1") % pid).str(), line); 200 (F("20110319-114001 E %s file2:22: Error 1") % pid) 230 const pid_t pid = ::getpid(); local 250 const pid_t pid = ::getpid(); local 282 const pid_t pid = ::getpid(); local [all...] |
/netbsd-current/external/gpl3/gdb/dist/gdbserver/ |
H A D | netbsd-low.cc | 86 pid_t pid = fork_inferior (program, str_program_args.c_str (), local 90 add_process (pid, 0); 92 post_fork_inferior (pid, program); 94 return pid; 102 pid_t pid = current_process ()->pid; local 103 netbsd_nat::enable_proc_events (pid); 111 netbsd_process_target::attach (unsigned long pid) argument 120 gdb_catching_syscalls_p (pid_t pid) argument 122 struct process_info *proc = find_process_pid (pid); 138 const pid_t pid = resume_ptid.pid (); local 225 pid_t pid local 246 pid_t pid = netbsd_waitpid (ptid, ourstatus, target_options); local 431 pid_t pid = process->pid; local 447 pid_t pid = process->pid; local 467 join(int pid) argument 536 pid_t pid = current_process ()->pid; local 546 pid_t pid = current_process ()->pid; local 565 netbsd_read_auxv(pid_t pid, void *offs, void *addr, size_t len) argument 587 pid_t pid = pid_of (current_thread); local 652 pid_t pid = current_process ()->pid; local 743 get_phdr_phnum_from_proc_auxv(const pid_t pid, CORE_ADDR *phdr_memaddr, int *num_phdr) argument 794 get_dynamic(const pid_t pid) argument 856 get_r_debug(const pid_t pid) argument 905 read_one_ptr(const pid_t pid, CORE_ADDR memaddr, CORE_ADDR *ptr, int ptr_size) argument 936 netbsd_qxfer_libraries_svr4(const pid_t pid, const char *annex, unsigned char *readbuf, unsigned const char *writebuf, CORE_ADDR offset, int len) argument 1164 pid_t pid = proc->pid; local 1187 pid_to_exec_file(pid_t pid) argument [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/gdb/ |
H A D | fbsd-nat.c | 54 fbsd_nat_target::pid_to_exec_file (int pid) argument 67 mib[3] = pid; 70 /* The kern.proc.pathname.<pid> sysctl returns a length of zero 76 xsnprintf (name, PATH_MAX, "/proc/%d/exe", pid); 96 pid_t pid = inferior_ptid.pid (); local 102 vmentl (kinfo_getvmmap (pid, &nitems)); 170 pid_t pid = inferior_ptid.pid (); local 175 std::string mapfilename = string_printf ("/proc/%ld/map", (long) pid); 215 fbsd_fetch_cmdline(pid_t pid) argument 249 fbsd_fetch_kinfo_proc(pid_t pid, struct kinfo_proc *kp) argument 272 pid_t pid; local 691 pid_t pid = inferior_ptid.pid (); local 911 int pid = ptid.pid (); local 928 int pid = thr->ptid.pid (); local 960 fbsd_enable_proc_events(pid_t pid) argument 994 fbsd_add_threads(fbsd_nat_target *target, pid_t pid) argument 1090 fbsd_remember_child(ptid_t pid) argument 1099 fbsd_is_child_pending(pid_t pid) argument 1118 fbsd_add_vfork_done(ptid_t pid) argument 1126 fbsd_is_vfork_done_pending(pid_t pid) argument 1158 pid_t pid; local 1316 pid_t pid; local 1599 insert_fork_catchpoint(int pid) argument 1605 remove_fork_catchpoint(int pid) argument 1611 insert_vfork_catchpoint(int pid) argument 1617 remove_vfork_catchpoint(int pid) argument 1626 post_startup_inferior(ptid_t pid) argument 1634 post_attach(int pid) argument 1645 insert_exec_catchpoint(int pid) argument 1651 remove_exec_catchpoint(int pid) argument 1659 set_syscall_catchpoint(int pid, bool needed, int any_count, gdb::array_view<const int> syscall_counts) argument [all...] |
H A D | ser-pipe.c | 41 int pid; member in struct:pipe_state 62 int pid; 77 pid = vfork (); 80 if (pid == -1) 97 if (pid == 0) 135 state->pid = pid; 169 wait_result = wait_to_die_with_timeout (state->pid, &status, 174 kill (state->pid, SIGTERM); 176 wait_to_die_with_timeout (state->pid, [all...] |
H A D | mips64-obsd-nat.c | 93 pid_t pid = regcache->ptid ().pid (); 95 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 108 pid_t pid = regcache->ptid ().pid (); 110 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 115 if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 92 pid_t pid = regcache->ptid ().pid (); local 107 pid_t pid = regcache->ptid ().pid (); local
|
/netbsd-current/external/gpl3/gdb/dist/gdb/ |
H A D | i386-fbsd-nat.c | 63 pid_t pid = get_ptrace_pid (regcache->ptid ()); local 77 if (ptrace (PT_GETFSBASE, pid, (PTRACE_TYPE_ARG3) &base, 0) == -1) 90 if (ptrace (PT_GETGSBASE, pid, (PTRACE_TYPE_ARG3) &base, 0) == -1) 109 if (ptrace (PT_GETXSTATE, pid, (PTRACE_TYPE_ARG3) xstateregs, 0) == -1) 120 if (ptrace(PT_GETXMMREGS, pid, (PTRACE_TYPE_ARG3) xmmregs, 0) == -1) 129 if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1) 142 pid_t pid = get_ptrace_pid (regcache->ptid ()); local 158 if (ptrace (PT_SETFSBASE, pid, (PTRACE_TYPE_ARG3) &base, 0) == -1) 171 if (ptrace (PT_SETGSBASE, pid, (PTRACE_TYPE_ARG3) &base, 0) == -1) 188 if (ptrace (PT_GETXSTATE, pid, (PTRACE_TYPE_ARG 230 pid_t pid = ptid.pid (); local [all...] |
H A D | ser-pipe.c | 42 int pid; member in struct:pipe_state 63 int pid; 84 pid = vfork (); 87 if (pid == -1) 104 if (pid == 0) 144 state->pid = pid; 178 wait_result = wait_to_die_with_timeout (state->pid, &status, 183 kill (state->pid, SIGTERM); 185 wait_to_die_with_timeout (state->pid, [all...] |
H A D | mips64-obsd-nat.c | 93 pid_t pid = regcache->ptid ().pid (); 95 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 108 pid_t pid = regcache->ptid ().pid (); 110 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 115 if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 92 pid_t pid = regcache->ptid ().pid (); local 107 pid_t pid = regcache->ptid ().pid (); local
|
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
H A D | rand-timer.c | 68 pid_t pid; local 69 pid = getppid(); 74 kill(pid, SIGALRM); 116 pid_t pid; 133 pid = fork(); 134 if(pid == -1){ 139 if(pid == 0) 152 kill(pid, SIGKILL); 153 while(waitpid(pid, NULL, 0) != pid); [all...] |
/netbsd-current/external/ibm-public/postfix/dist/src/master/ |
H A D | master_status.c | 68 MASTER_PID pid; local 81 * only its pid is known - we do not know what service it came from. 94 msg_warn("service %s(%s): child (pid %d) sent partial status update (%d bytes)", 95 serv->ext_name, serv->name, stat.pid, n); 99 pid = stat.pid; 101 msg_info("%s: pid %d gen %u avail %d", 102 myname, stat.pid, stat.gen, stat.avail); 113 (void *) &pid, sizeof(pid))) [all...] |
/netbsd-current/lib/libutil/ |
H A D | pidfile.c | 124 if ((size_t)snprintf(path, len, "%s%s.pid", _PATH_VARRUN, bname) >= len) 140 pid_t pid; local 160 pid = (pid_t)strtoi(buf, &eptr, 10, 1, INT_MAX, &error); 165 return pid; 168 /* Locks the pidfile specified by path and writes the process pid to it. 173 * Returns 0 on success, otherwise the pid of the process who owns the 203 pid_t pid; local 209 if ((pid = pidfile_read(path)) != -1) 212 pid = -1; 214 return pid; 247 pid_t pid; local [all...] |
/netbsd-current/usr.bin/ktrace/ |
H A D | ktrace.c | 83 int block, append, ch, fd, trset, ops, pid, pidset, synclog, trpoints; local 96 pid = 0; /* Appease GCC */ 135 pid = -rpid(optarg); 156 pid = rpid(optarg); 201 if (clear == CLEAR && outfile == NULL && pid == 0) 223 pid = 1; 225 ops |= pid ? KTROP_CLEAR : KTROP_CLEARFILE; 227 (void)do_ktrace(outfile, vers, ops, trpoints, pid, block); 251 (void)do_ktrace(outfile, vers, ops, trpoints, pid, block); 291 "[-o outfile] [-p pid] [ 321 do_ktrace(const char *tracefile, int vers, int ops, int trpoints, int pid, int block) argument [all...] |
/netbsd-current/tests/lib/libc/gen/posix_spawn/ |
H A D | t_spawnattr.c | 103 int pid, scheduler, child_scheduler, priority, status, err, pfd[2]; local 140 err = posix_spawn(&pid, helper, NULL, &attr, args, NULL); 143 child_scheduler = sched_getscheduler(pid); 145 "scheduler = %d, child_scheduler = %d, pid %d, errno %d", 146 scheduler, child_scheduler, pid, errno); 148 sched_getparam(pid, &child_sp); 153 ATF_REQUIRE_MSG(pid == getpgid(pid), "child pid: %d, child pgid: %d", 154 pid, getpgi 184 pid_t pid; local [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/sim/testsuite/sim/cris/c/ |
H A D | pipe2.c | 63 int pid; local 93 pid = clone (process, (char *) stack + sizeof (stack) - 64, 96 if (pid <= 0) 98 fprintf (stderr, "Bad clone %d\n", pid); 132 retcode = waitpid (pid, &st, __WALL); 134 if (retcode != pid || !WIFEXITED (st)) 136 fprintf (stderr, "Bad wait %d:%d %x\n", pid, retcode, st);
|
/netbsd-current/external/gpl3/gdb/dist/sim/testsuite/cris/c/ |
H A D | pipe2.c | 63 int pid; local 93 pid = clone (process, (char *) stack + sizeof (stack) - 64, 96 if (pid <= 0) 98 fprintf (stderr, "Bad clone %d\n", pid); 132 retcode = waitpid (pid, &st, __WALL); 134 if (retcode != pid || !WIFEXITED (st)) 136 fprintf (stderr, "Bad wait %d:%d %x\n", pid, retcode, st);
|
/netbsd-current/external/cddl/dtracetoolkit/dist/Bin/ |
H A D | sh_pidcolors.d | 10 * This extends sh_syscolors.d by including some "pid" provider tracing 13 * pid$target:a.out:e*:entry, 14 * pid$target:a.out:e*:return 79 pid$target:a.out:e*:entry, 80 pid$target:a.out:e*:return 81 /self->last == 0 && pid == $target/ 90 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "func", 101 cpu, pid, this->delta, basename(copyinstr(arg0)), "func", 110 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "builtin", 121 cpu, pid, thi [all...] |
/netbsd-current/external/cddl/dtracetoolkit/dist/Shell/ |
H A D | sh_pidcolors.d | 10 * This extends sh_syscolors.d by including some "pid" provider tracing 13 * pid$target:a.out:e*:entry, 14 * pid$target:a.out:e*:return 79 pid$target:a.out:e*:entry, 80 pid$target:a.out:e*:return 81 /self->last == 0 && pid == $target/ 90 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "func", 101 cpu, pid, this->delta, basename(copyinstr(arg0)), "func", 110 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "builtin", 121 cpu, pid, thi [all...] |
/netbsd-current/external/bsd/blocklist/port/ |
H A D | popenve.c | 67 static struct pid { struct 68 struct pid *next; 73 pid_t pid; member in struct:pid 80 static struct pid * 83 struct pid *cur; 124 struct pid *old; 154 pdes_parent(int *pdes, struct pid *cur, pid_t pid, const char *type) argument 175 cur->pid = pid; 193 pid_t pid; local 237 pid_t pid; local [all...] |