/netbsd-current/tests/lib/libc/sys/ |
H A D | t_kill.c | 135 pid_t cpid, ppid; local 157 ppid = fork(); 159 if (ppid < 0) 162 if (ppid == 0) { 200 (void)waitpid(ppid, &sta, 0); 218 pid_t cpid, ppid; local 221 ppid = fork(); 222 ATF_REQUIRE(ppid >= 0); 224 if (ppid == 0) { 250 (void)waitpid(ppid, 265 pid_t cpid, ppid; local [all...] |
H A D | t_getpid.c | 61 pid_t ppid, fpid, cpid, tpid, wpid; local 74 ppid = getppid(); 76 if (tpid != ppid) 79 if (cpid == ppid)
|
H A D | t_getsid.c | 82 pid_t csid, pid, ppid, sid; local 94 ppid = getppid(); 99 if (getsid(ppid) != csid)
|
/netbsd-current/external/cddl/dtracetoolkit/dist/Bin/ |
H A D | sh_cputime.d | 117 /incmd[ppid] == NULL/ 123 /incmd[ppid] != NULL/ 128 @num[incmd[ppid], "cmd", execname] = count(); 130 @types[incmd[ppid], "cmd", execname] = sum(this->oncpu); 133 self->exclude[depth[ppid]] += this->oncpu; 134 incmd[ppid] = 0; 135 depth[ppid] = 0;
|
H A D | sh_cpudist.d | 114 /incmd[ppid] == NULL/ 120 /incmd[ppid] != NULL/ 125 @types[incmd[ppid], "cmd", execname] = quantize(this->oncpu / 1000); 127 self->exclude[depth[ppid]] += this->oncpu; 128 incmd[ppid] = 0; 129 depth[ppid] = 0;
|
H A D | setuids.d | 69 self->uid, self->suid, ppid, pid,
|
H A D | shortlived.d | 96 /* sum elapsed by process name and ppid */ 98 @Times_ppid[ppid] = sum(this->elapsed/1000000);
|
H A D | guess.d | 40 /state == 2 && ppid == $pid && arg0 == 3/
|
/netbsd-current/external/cddl/dtracetoolkit/dist/Shell/ |
H A D | sh_cputime.d | 117 /incmd[ppid] == NULL/ 123 /incmd[ppid] != NULL/ 128 @num[incmd[ppid], "cmd", execname] = count(); 130 @types[incmd[ppid], "cmd", execname] = sum(this->oncpu); 133 self->exclude[depth[ppid]] += this->oncpu; 134 incmd[ppid] = 0; 135 depth[ppid] = 0;
|
H A D | sh_cpudist.d | 114 /incmd[ppid] == NULL/ 120 /incmd[ppid] != NULL/ 125 @types[incmd[ppid], "cmd", execname] = quantize(this->oncpu / 1000); 127 self->exclude[depth[ppid]] += this->oncpu; 128 incmd[ppid] = 0; 129 depth[ppid] = 0;
|
/netbsd-current/external/cddl/dtracetoolkit/dist/User/ |
H A D | setuids.d | 69 self->uid, self->suid, ppid, pid,
|
/netbsd-current/external/mit/libuv/dist/test/ |
H A D | test-platform-output.c | 38 uv_pid_t ppid; local 168 ppid = uv_os_getppid(); 169 ASSERT(ppid > 0); 170 printf("uv_os_getppid: %d\n", (int) ppid);
|
/netbsd-current/external/cddl/dtracetoolkit/dist/Proc/ |
H A D | shortlived.d | 96 /* sum elapsed by process name and ppid */ 98 @Times_ppid[ppid] = sum(this->elapsed/1000000);
|
/netbsd-current/usr.sbin/faithd/ |
H A D | tcp.c | 62 static pid_t ppid = (pid_t)0; variable 75 * - child side (ppid != 0) will send SIGUSR1 to parent every (FAITH_TIMEOUT/4) 77 * - parent side (ppid == 0) will check the last SIGUSR1 it have seen. 110 if (ppid) 135 if (ppid) { 140 if (kill(ppid, SIGUSR1) < 0) { 312 ppid = getppid(); 320 ppid = (pid_t)0;
|
/netbsd-current/crypto/external/bsd/openssl/dist/ |
H A D | e_os.h | 359 int ppid; member in union:pseudo_pid 360 } ppid = { 0 }; local 362 PROCESSHANDLE_DECOMPOSE_(phandle, &ppid.cpu_pin.cpu, &ppid.cpu_pin.pin); 363 return ppid.ppid;
|
/netbsd-current/sys/miscfs/procfs/ |
H A D | procfs_status.c | 101 int pid, ppid, pgid, sid; local 111 ppid = p->p_ppid; 120 ps += snprintf(ps, sizeof(psbuf) - (ps - psbuf), "PPid:\t%d\n", ppid); 139 /* comm pid ppid pgid sid maj,min ctty,sldr start ut st wmsg uid gid groups ... */ 145 pid, ppid, pgid, sid); 209 int pid, ppid; local 218 ppid = p->p_ppid; 223 ps += snprintf(ps, sizeof(psbuf) - (ps - psbuf), "PPid:\t%d\n", ppid);
|
/netbsd-current/external/bsd/am-utils/dist/amd/ |
H A D | amd.c | 385 int ppid = 0; local 549 ppid = daemon_mode(); 563 error = mount_automounter(ppid); 564 if (error && ppid) 565 kill(ppid, SIGALRM);
|
H A D | nfs_start.c | 318 mount_automounter(int ppid) argument 408 if (ppid) 409 kill(ppid, SIGQUIT);
|
/netbsd-current/libexec/utmp_update/ |
H A D | utmp_update.c | 150 pid_t ppid; local 163 if (utoldp->ut_pid != (ppid = getppid())) 166 (long)utoldp->ut_pid, (long)ppid);
|
/netbsd-current/external/bsd/tcpdump/dist/ |
H A D | print-sctp.c | 568 uint32_t ppid; local 592 ppid = GET_BE_U_4(dataHdrPtr->payloadtype); 597 tok2str(PayloadProto_idents, "0x%x", ppid)); 600 isforces = (ppid == SCTP_PPID_FORCES_HP) || 601 (ppid == SCTP_PPID_FORCES_MP) || 602 (ppid == SCTP_PPID_FORCES_LP); 620 switch (ppid) {
|
/netbsd-current/external/cddl/dtracetoolkit/dist/Misc/ |
H A D | guess.d | 40 /state == 2 && ppid == $pid && arg0 == 3/
|
/netbsd-current/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/ |
H A D | sanitizer_stoptheworld_netbsd_libcdep.cc | 340 pid_t ppid = internal_getppid(); local 344 internal_iserror(internal_ptrace(PT_GETREGS, ppid, ®s, tid), &pterrno); 348 ppid, tid, pterrno);
|
/netbsd-current/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/ |
H A D | sanitizer_stoptheworld_netbsd_libcdep.cpp | 340 pid_t ppid = internal_getppid(); local 344 internal_iserror(internal_ptrace(PT_GETREGS, ppid, ®s, tid), &pterrno); 348 ppid, tid, pterrno);
|
/netbsd-current/bin/ksh/ |
H A D | jobs.c | 139 pid_t ppid; /* pid of process that forked job */ member in struct:job 284 if (j->ppid == procpid 487 j->ppid = procpid; 740 if (j->ppid == procpid && j->state == PRUNNING) 749 if (j->ppid != procpid) { 929 if (j->ppid == procpid && j->state == PSTOPPED) 933 && j->ppid == procpid && j->state == PRUNNING) 1261 if (j->ppid == procpid && !(j->flags & JF_STARTED)) { 1709 if ((j->flags & JF_ZOMBIE) && j->ppid == procpid)
|
H A D | main.c | 103 pid_t ppid; local 248 ppid = getppid(); 249 setint(global("PPID"), (long) ppid); 251 setint(global("RANDOM"), (long) (time((time_t *)0) * kshpid * ppid)); local
|