/netbsd-current/external/bsd/am-utils/dist/scripts/ |
H A D | redhat-ctl-amd.in | 43 pid=`/usr/sbin/amq -p 2>/dev/null` 44 if [ "$pid" = "" ] ; then 45 # amq -p did not give pid, so try ps 46 pid=`ps acx 2>/dev/null | grep "amd" | sed -e 's/^ *//' -e 's/ .*//'` 48 if [ "$pid" = "" ] ; then 49 failure "amd shutdown pid" 53 kill $pid
|
/netbsd-current/games/sail/ |
H A D | pl_1.c | 132 int pid; local 136 pid = wait3(&status, WNOHANG, (struct rusage *)0); 137 if (pid < 0 || (pid > 0 && !WIFSTOPPED(status))) 139 } while (pid > 0);
|
/netbsd-current/tests/lib/libc/gen/ |
H A D | t_pause.c | 79 pid_t pid; local 84 pid = fork(); 85 ATF_REQUIRE(pid >= 0); 87 if (pid == 0) { 99 (void)kill(pid, SIGKILL);
|
/netbsd-current/external/cddl/dtracetoolkit/dist/Bin/ |
H A D | tcl_syscolors.d | 66 /self->last == 0 && pid == $target/ 75 pid, this->delta, "proc", self->depth * 2, "", copyinstr(arg0), 87 pid, this->delta, "proc", self->depth * 2, "", copyinstr(arg0), 97 pid, this->delta, "cmd", self->depth * 2, "", copyinstr(arg0), 109 pid, this->delta, "cmd", self->depth * 2, "", copyinstr(arg0), 116 /pid == $target/ 120 cpu, pid, this->delta, "syscall", self->depthlast * 2, "", 126 /pid == $target/ 130 cpu, pid, this->delta, "syscall", self->depthlast * 2, "", 136 /pid [all...] |
H A D | sh_syscolors.d | 71 /self->last == 0 && pid == $target/ 80 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "func", 91 cpu, pid, this->delta, basename(copyinstr(arg0)), "func", 100 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "builtin", 111 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "builtin", 120 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "cmd", 131 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "cmd", 140 cpu, pid, this->delta, basename(copyinstr(arg0)), arg1, "line", 146 /pid == $target/ 150 cpu, pid, thi [all...] |
/netbsd-current/external/cddl/dtracetoolkit/dist/Tcl/ |
H A D | tcl_syscolors.d | 66 /self->last == 0 && pid == $target/ 75 pid, this->delta, "proc", self->depth * 2, "", copyinstr(arg0), 87 pid, this->delta, "proc", self->depth * 2, "", copyinstr(arg0), 97 pid, this->delta, "cmd", self->depth * 2, "", copyinstr(arg0), 109 pid, this->delta, "cmd", self->depth * 2, "", copyinstr(arg0), 116 /pid == $target/ 120 cpu, pid, this->delta, "syscall", self->depthlast * 2, "", 126 /pid == $target/ 130 cpu, pid, this->delta, "syscall", self->depthlast * 2, "", 136 /pid [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/sim/testsuite/sim/cris/c/ |
H A D | clone1.c | 34 int pid; local 47 pid = clone (process, (char *) stack + sizeof (stack) - 64, 50 if (pid <= 0) 52 fprintf (stderr, "Bad clone %d\n", pid); 82 if (retcode != pid || !WIFEXITED (st))
|
/netbsd-current/tests/kernel/kqueue/ |
H A D | t_proc3.c | 59 pid_t pid = 0; local 70 RL(pid = fork()); 71 if (pid == 0) { 76 RL(waitpid(pid, &status, 0)); 91 ATF_REQUIRE_EQ((pid_t)ke.ident, pid);
|
/netbsd-current/external/bsd/ntp/dist/lib/isc/ |
H A D | random.c | 47 unsigned int pid = getpid(); local 50 * The low bits of pid generally change faster. 53 pid = ((pid << 16) & 0xffff0000) | ((pid >> 16) & 0xffff); 55 srand(time(NULL) ^ pid);
|
/netbsd-current/external/bsd/openldap/dist/libraries/liblutil/ |
H A D | detach.c | 60 int i, sd, nbits, pid; local 79 pid = fork1(); 81 pid = fork(); 83 switch ( pid ) 93 return pid;
|
/netbsd-current/sys/arch/powerpc/ibm4xx/ |
H A D | copyoutstr.c | 51 int rv, msr, pid, tmp, ctx; local 81 MFPID(%[pid]) /* Save old PID */ 94 MTPID(%[pid]) 102 : [msr] "=&r" (msr), [pid] "=&r" (pid), [tmp] "=&r" (tmp),
|
H A D | copyinstr.c | 51 int rv, msr, pid, tmp, ctx; local 81 MFPID(%[pid]) /* Save old PID */ 89 MTPID(%[pid]) 101 : [msr] "=&r" (msr), [pid] "=&r" (pid), [tmp] "=&r" (tmp),
|
/netbsd-current/external/gpl3/gdb.old/dist/gdbsupport/ |
H A D | ptid.h | 25 consists of the process id (pid), lightweight process id (lwp) and 49 explicit constexpr ptid_t (int pid, long lwp = 0, long tid = 0) argument 50 : m_pid (pid), m_lwp (lwp), m_tid (tid) 53 /* Fetch the pid (process id) component from the ptid. */ 55 constexpr int pid () const function in class:ptid_t 79 lwps/threads. Such ptids have the form of (pid, 0, 0), with 80 pid != -1. */ 118 /* If filter is only a pid, any ptid with that pid 120 || (filter.is_pid () && m_pid == filter.pid ()) [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/gdb/ |
H A D | nbsd-nat.h | 31 char *pid_to_exec_file (int pid) override; 36 void post_attach (int pid) override; 45 int insert_exec_catchpoint (int pid) override; 46 int remove_exec_catchpoint (int pid) override; 47 int set_syscall_catchpoint (int pid, bool needed, int any_count,
|
/netbsd-current/external/gpl3/gdb/dist/gdb/ |
H A D | netbsd-nat.h | 31 const char *pid_to_exec_file (int pid) override; 35 void post_attach (int pid) override; 44 int insert_exec_catchpoint (int pid) override; 45 int remove_exec_catchpoint (int pid) override; 46 int set_syscall_catchpoint (int pid, bool needed, int any_count,
|
H A D | fbsd-nat.c | 61 fbsd_nat_target::pid_to_exec_file (int pid) argument 70 mib[3] = pid; 73 /* The kern.proc.pathname.<pid> sysctl returns a length of zero 89 pid_t pid = inferior_ptid.pid (); local 95 vmentl (kinfo_getvmmap (pid, &nitems)); 136 fbsd_fetch_cmdline (pid_t pid) argument 145 mib[3] = pid; 170 fbsd_fetch_kinfo_proc (pid_t pid, struct kinfo_proc *kp) argument 179 mib[3] = pid; 191 pid_t pid; local 577 pid_t pid = inferior_ptid.pid (); local 801 int pid = ptid.pid (); local 818 int pid = thr->ptid.pid (); local 850 fbsd_enable_proc_events(pid_t pid) argument 884 fbsd_add_threads(fbsd_nat_target *target, pid_t pid) argument 1041 fbsd_remember_child(ptid_t pid) argument 1050 fbsd_is_child_pending(pid_t pid) argument 1069 fbsd_add_vfork_done(ptid_t pid) argument 1082 fbsd_is_vfork_done_pending(pid_t pid) argument 1114 pid_t pid; local 1272 pid_t pid; local 1645 insert_fork_catchpoint(int pid) argument 1651 remove_fork_catchpoint(int pid) argument 1657 insert_vfork_catchpoint(int pid) argument 1663 remove_vfork_catchpoint(int pid) argument 1672 post_startup_inferior(ptid_t pid) argument 1680 post_attach(int pid) argument 1689 insert_exec_catchpoint(int pid) argument 1695 remove_exec_catchpoint(int pid) argument 1702 set_syscall_catchpoint(int pid, bool needed, int any_count, gdb::array_view<const int> syscall_counts) argument 1739 pid_t pid = get_ptrace_pid (regcache->ptid ()); local 1764 pid_t pid = get_ptrace_pid (regcache->ptid ()); local 1787 pid_t pid = get_ptrace_pid (ptid); local 1806 pid_t pid = get_ptrace_pid (regcache->ptid ()); local 1832 pid_t pid = get_ptrace_pid (regcache->ptid ()); local 1860 pid_t pid = get_ptrace_pid (ptid); local [all...] |
/netbsd-current/external/gpl3/gdb/dist/gdbsupport/ |
H A D | ptid.h | 25 consists of the process id (pid), lightweight process id (lwp) and 51 explicit constexpr ptid_t (int pid, long lwp = 0, ULONGEST tid = 0) argument 52 : m_pid (pid), m_lwp (lwp), m_tid (tid) 55 /* Fetch the pid (process id) component from the ptid. */ 57 constexpr int pid () const function in class:ptid_t 81 lwps/threads. Such ptids have the form of (pid, 0, 0), with 82 pid != -1. */ 120 /* If filter is only a pid, any ptid with that pid 122 || (filter.is_pid () && m_pid == filter.pid ()) [all...] |
/netbsd-current/external/gpl3/gdb/dist/sim/testsuite/cris/c/ |
H A D | clone1.c | 34 int pid; local 47 pid = clone (process, (char *) stack + sizeof (stack) - 64, 50 if (pid <= 0) 52 fprintf (stderr, "Bad clone %d\n", pid); 82 if (retcode != pid || !WIFEXITED (st))
|
/netbsd-current/external/cddl/dtracetoolkit/dist/Shell/ |
H A D | sh_syscolors.d | 71 /self->last == 0 && pid == $target/ 80 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "func", 91 cpu, pid, this->delta, basename(copyinstr(arg0)), "func", 100 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "builtin", 111 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "builtin", 120 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "cmd", 131 cpu, pid, this->delta, basename(copyinstr(arg0)), arg2, "cmd", 140 cpu, pid, this->delta, basename(copyinstr(arg0)), arg1, "line", 146 /pid == $target/ 150 cpu, pid, thi [all...] |
/netbsd-current/usr.bin/mail/ |
H A D | popen.c | 57 pid_t pid; member in struct:fp 63 pid_t pid; member in struct:child 77 (void)fprintf(fo, ">>> fp: %p, pipe: %d, pid: %d, link: %p\n", 78 fpp->fp, fpp->pipe, fpp->pid, fpp->link); 112 register_file(FILE *fp, int pipefd, pid_t pid) argument 119 fpp->pid = pid; 199 pid_t pid; local 202 if ((pid = fork()) < 0) { 206 if (pid 241 pid_t pid; local 272 findchild(pid_t pid, int dont_alloc) argument 311 wait_child(pid_t pid) argument 424 wait_command(pid_t pid) argument 437 pid_t pid; local 487 pid_t pid; local 511 free_child(pid_t pid) argument [all...] |
/netbsd-current/external/bsd/tmux/dist/ |
H A D | job.c | 52 pid_t pid; member in struct:job 78 pid_t pid; local 100 pid = fdforkpty(ptm_fd, &master, tty, NULL, &ws); 104 pid = fork(); 114 switch (pid) { 173 job->pid = pid; 197 log_debug("run job %p: %s, pid %ld", job, job->cmd, (long) job->pid); 208 job_transfer(struct job *job, pid_t *pid, cha argument 323 job_check_died(pid_t pid, int status) argument [all...] |
/netbsd-current/external/ibm-public/postfix/dist/src/master/ |
H A D | master_spawn.c | 145 MASTER_PID pid; local 171 switch (pid = fork()) { 245 msg_info("spawn command %s; pid %d", serv->path, pid); 248 proc->pid = pid; 252 binhash_enter(master_child_table, (void *) &pid, 253 sizeof(pid), (void *) proc); 283 binhash_delete(master_child_table, (void *) &proc->pid, 284 sizeof(proc->pid), (voi 294 MASTER_PID pid; local [all...] |
/netbsd-current/external/ibm-public/postfix/dist/src/tls/ |
H A D | tls_seed.c | 66 pid_t pid; member in struct:__anon6519 70 if (randseed.pid == 0) 71 randseed.pid = getpid();
|
/netbsd-current/tests/lib/libc/sys/ |
H A D | t_getlogin.c | 88 pid_t pid; local 91 pid = fork(); 92 ATF_REQUIRE(pid >= 0); 94 if (pid == 0) { 129 pid_t pid; local 132 pid = fork(); 133 ATF_REQUIRE(pid >= 0); 137 if (pid == 0) { 192 pid_t pid; local 195 pid [all...] |
/netbsd-current/external/cddl/osnet/dist/uts/common/sys/ |
H A D | idmap.h | 94 #define IDMAP_ID_IS_EPHEMERAL(pid) \ 95 (((pid) > INT32_MAX) && ((pid) != IDMAP_SENTINEL_PID))
|