/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_kill.c | 135 pid_t cpid, ppid; in ATF_TC_BODY() local 157 ppid = fork(); in ATF_TC_BODY() 159 if (ppid < 0) in ATF_TC_BODY() 162 if (ppid == 0) { in ATF_TC_BODY() 200 (void)waitpid(ppid, &sta, 0); in ATF_TC_BODY() 218 pid_t cpid, ppid; in ATF_TC_BODY() local 221 ppid = fork(); in ATF_TC_BODY() 222 ATF_REQUIRE(ppid >= 0); in ATF_TC_BODY() 224 if (ppid == 0) { in ATF_TC_BODY() 250 (void)waitpid(ppid, &sta, 0); in ATF_TC_BODY() [all …]
|
H A D | t_getpid.c | 61 pid_t ppid, fpid, cpid, tpid, wpid; in ATF_TC_BODY() local 74 ppid = getppid(); in ATF_TC_BODY() 76 if (tpid != ppid) in ATF_TC_BODY() 79 if (cpid == ppid) in ATF_TC_BODY()
|
H A D | t_getsid.c | 82 pid_t csid, pid, ppid, sid; in ATF_TC_BODY() local 94 ppid = getppid(); in ATF_TC_BODY() 99 if (getsid(ppid) != csid) in ATF_TC_BODY()
|
/freebsd/contrib/bmake/unit-tests/ |
H A D | varname-dot-make-ppid.mk | 1 # $NetBSD: varname-dot-make-ppid.mk,v 1.3 2022/01/23 21:48:59 rillig Exp $ 3 # Tests for the special .MAKE.PPID variable, which contains the process ID of 7 .if ${.MAKE.PPID:C,[0-9],,g} != "" 9 .elif !(${.MAKE.PPID} > 0) 14 _!= kill -0 ${.MAKE.PPID} 19 .if ${.MAKE.PPID} == ${.MAKE.PID}
|
/freebsd/tools/test/stress2/misc/ |
H A D | pmc7.sh | 9 pmcstat -S unhalted_core_cycles -O ppid.pmcstat sleep 10 10 pmcstat -R ppid.pmcstat -z100 -G ppid.stacks 12 rm -f ppid.pmcstat ppid.stacks
|
/freebsd/tests/sys/netpfil/pf/ |
H A D | sctp.py | 141 rcvd['ppid'] = socket.ntohl(rcvinfo.sinfo_ppid) 230 def send(self, buf, ppid, ordered=False): argument 236 ppid = socket.htonl(ppid) 238 ctypes.c_void_p(0), 0, ppid, flags, 0, 0, 0) 259 # Start an SCTP server process, pipe the ppid + data back to the other vnet? 278 assert rcvd['ppid'] == 0 286 assert rcvd['ppid'] == 0 315 assert rcvd['ppid'] == 0 325 assert rcvd['ppid'] == 0 334 assert rcvd['ppid'] == 0 [all …]
|
/freebsd/sys/kern/ |
H A D | kern_tslog.c | 141 pid_t ppid; member 150 tslog_user(pid_t pid, pid_t ppid, const char * execname, const char * namei) in tslog_user() argument 158 /* If we have a ppid, we're recording a fork. */ in tslog_user() 159 if (ppid != (pid_t)(-1)) { in tslog_user() 160 /* If we have a ppid already, we wrapped. */ in tslog_user() 161 if (procs[pid].ppid) { in tslog_user() 167 procs[pid].ppid = ppid; in tslog_user() 203 sbuf_printf(sb, " %zu", (size_t)procs[pid].ppid); in sysctl_debug_tslog_user()
|
/freebsd/contrib/netbsd-tests/bin/ps/ |
H A D | t_ps.sh | 95 j_keywords='user pid ppid pgid sess jobc state tt time command' 96 l_keywords='uid pid ppid cpu pri nice vsz rss wchan state tt time command' 97 s_keywords='uid pid ppid cpu lid nlwp pri nice vsz rss wchan lstate tt ltime command' 294 check_heading_regexp '-o comm,pid=ppid,tty=state' \ 295 '^'"${head_regexp_comm}"' *ppid,tty=state$' 321 check_heading_regexp '-o ppid= -o comm=CCC' \ 323 check_heading_regexp '-o ppid=PPP -o comm=' \ 363 check_no_heading_line '-o ppid=' 366 check_no_heading_line '-o ppid= -o comm=' 367 check_no_heading_line '-o comm= -o ppid=' [all …]
|
/freebsd/tools/regression/poll/ |
H A D | pipepoll.c | 78 static pid_t ppid; variable 108 kill(ppid, SIGUSR1); in child() 125 kill(ppid, SIGUSR1); in child() 138 kill(ppid, SIGUSR1); in child() 146 kill(ppid, SIGUSR1); in child() 161 kill(ppid, SIGUSR1); in child() 169 kill(ppid, SIGUSR1); in child() 214 kill(ppid, SIGUSR1); in child() 284 ppid = getpid(); in main()
|
H A D | pipeselect.c | 49 static pid_t ppid; variable 92 kill(ppid, SIGUSR1); in child() 110 kill(ppid, SIGUSR1); in child() 125 kill(ppid, SIGUSR1); in child() 134 kill(ppid, SIGUSR1); in child() 150 kill(ppid, SIGUSR1); in child() 159 kill(ppid, SIGUSR1); in child() 211 kill(ppid, SIGUSR1); in child() 281 ppid = getpid(); in main()
|
/freebsd/bin/pkill/tests/ |
H A D | pkill-_p_test.sh | 7 name="pkill -P <ppid>" 8 ppid=$$ 13 pkill -f -P $ppid $sleep
|
H A D | pgrep-_p_test.sh | 7 name="pgrep -P <ppid>" 8 ppid=$$ 14 pid=`pgrep -f -P $ppid $sleep`
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/ |
H A D | tst.ppid.d | 31 * collect ppid at every fbt probe and at every firing of a 37 @a[ppid] = count(); 42 @a[ppid] = count();
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/scripting/ |
H A D | tst.ppid.ksh | 32 # To verify ppid of child process. 54 /\$ppid != \$1/ 60 /\$ppid == \$1/
|
H A D | tst.ppid.d | 41 printf("The ppid is %d\n", $ppid);
|
/freebsd/sys/fs/procfs/ |
H A D | procfs_status.c | 73 int pid, ppid, pgid, sid; in procfs_doprocstatus() 78 ppid = p->p_pptr ? p->p_pptr->p_pid : 0; in procfs_doprocstatus() 84 /* comm pid ppid pgid sid tty ctty,sldr start ut st wmsg in procfs_doprocstatus() 95 sbuf_printf(sb, " %d %d %d %d ", pid, ppid, pgid, sid); in procfs_doprocstatus() 72 int pid, ppid, pgid, sid; procfs_doprocstatus() local
|
/freebsd/cddl/usr.sbin/dtrace/tests/common/scripting/ |
H A D | Makefile | 28 tst.ppid.d \ 29 tst.ppid.ksh \
|
/freebsd/sys/netinet/ |
H A D | sctp_indata.h | 43 uint32_t tsn, uint32_t ppid, 48 #define sctp_build_readq_entry_mac(_ctl, in_it, context, net, tsn, ppid, sid, flags, dm, tfsn, mid)… argument 57 (_ctl)->sinfo_ppid = ppid; \
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/vars/ |
H A D | tst.ppid.d | 32 /curpsinfo->pr_ppid == ppid/ 39 printf("%d != %d\n", curpsinfo->pr_ppid, ppid);
|
/freebsd/contrib/tcpdump/ |
H A D | print-sctp.c | 560 uint32_t ppid; in sctp_print() local 584 ppid = GET_BE_U_4(dataHdrPtr->payloadtype); in sctp_print() 588 ND_PRINT("[PPID %s] ", in sctp_print() 589 tok2str(PayloadProto_idents, "0x%x", ppid)); in sctp_print() 592 isforces = (ppid == SCTP_PPID_FORCES_HP) || in sctp_print() 593 (ppid == SCTP_PPID_FORCES_MP) || in sctp_print() 594 (ppid == SCTP_PPID_FORCES_LP); in sctp_print() 612 switch (ppid) { in sctp_print()
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/predicates/ |
H A D | tst.predcache.ksh | 101 /pid != $ppid/ 121 /pid == $ppid/ 153 ppid=$$
|
/freebsd/sys/contrib/device-tree/Bindings/crypto/ |
H A D | fsl,sec-v4.0.yaml | 113 Specifies the LIODN to be used in conjunction with the ppid-to-liodn 114 table that specifies the PPID to LIODN mapping. Needed if the PAMU is 182 ppid-to-liodn table that specifies the PPID to LIODN mapping.
|
/freebsd/bin/pkill/ |
H A D | pkill.1 | 43 .Op Fl P Ar ppid 60 .Op Fl P Ar ppid 108 .It Fl P Ar ppid 111 .Ar ppid .
|
/freebsd/crypto/openssl/ |
H A D | e_os.h | 357 int ppid; in nssgetpid() 358 } ppid = { 0 }; in nssgetpid() 360 PROCESSHANDLE_DECOMPOSE_(phandle, &ppid.cpu_pin.cpu, &ppid.cpu_pin.pin); in nssgetpid() local 361 return ppid.ppid; in nssgetpid() 359 int ppid; nssgetpid() member
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.progenyof.d | 48 res_1 = progenyof($ppid); /* this will always be true */ 49 res_2 = progenyof($ppid + 1); /* this will always be false */
|