Searched refs:ppid (Results 1 - 25 of 42) sorted by relevance

12

/netbsd-current/tests/lib/libc/sys/
H A Dt_kill.c135 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 Dt_getpid.c61 pid_t ppid, fpid, cpid, tpid, wpid; local
74 ppid = getppid();
76 if (tpid != ppid)
79 if (cpid == ppid)
H A Dt_getsid.c82 pid_t csid, pid, ppid, sid; local
94 ppid = getppid();
99 if (getsid(ppid) != csid)
/netbsd-current/external/cddl/dtracetoolkit/dist/Bin/
H A Dsh_cputime.d117 /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 Dsh_cpudist.d114 /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 Dsetuids.d69 self->uid, self->suid, ppid, pid,
H A Dshortlived.d96 /* sum elapsed by process name and ppid */
98 @Times_ppid[ppid] = sum(this->elapsed/1000000);
H A Dguess.d40 /state == 2 && ppid == $pid && arg0 == 3/
/netbsd-current/external/cddl/dtracetoolkit/dist/Shell/
H A Dsh_cputime.d117 /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 Dsh_cpudist.d114 /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 Dsetuids.d69 self->uid, self->suid, ppid, pid,
/netbsd-current/external/mit/libuv/dist/test/
H A Dtest-platform-output.c38 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 Dshortlived.d96 /* sum elapsed by process name and ppid */
98 @Times_ppid[ppid] = sum(this->elapsed/1000000);
/netbsd-current/usr.sbin/faithd/
H A Dtcp.c62 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 De_os.h359 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 Dprocfs_status.c101 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 Damd.c385 int ppid = 0; local
549 ppid = daemon_mode();
563 error = mount_automounter(ppid);
564 if (error && ppid)
565 kill(ppid, SIGALRM);
H A Dnfs_start.c318 mount_automounter(int ppid) argument
408 if (ppid)
409 kill(ppid, SIGQUIT);
/netbsd-current/libexec/utmp_update/
H A Dutmp_update.c150 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 Dprint-sctp.c568 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 Dguess.d40 /state == 2 && ppid == $pid && arg0 == 3/
/netbsd-current/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_stoptheworld_netbsd_libcdep.cc340 pid_t ppid = internal_getppid(); local
344 internal_iserror(internal_ptrace(PT_GETREGS, ppid, &regs, tid), &pterrno);
348 ppid, tid, pterrno);
/netbsd-current/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_stoptheworld_netbsd_libcdep.cpp340 pid_t ppid = internal_getppid(); local
344 internal_iserror(internal_ptrace(PT_GETREGS, ppid, &regs, tid), &pterrno);
348 ppid, tid, pterrno);
/netbsd-current/bin/ksh/
H A Djobs.c139 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 Dmain.c103 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

Completed in 322 milliseconds

12