Home
last modified time | relevance | path

Searched refs:pid2 (Results 1 – 25 of 26) sorted by relevance

12

/freebsd/bin/pkill/tests/
H A Dpgrep-j_test.sh44 pid2=$(printf "%s\n%s" "$(cat ${PWD}/${base}_1_1.pid)" \
46 if [ "$pid1" = "$pid2" ]; then
49 echo "not ok 1 - $name # pgrep output: '$pid1', pidfile output: '$pid2'"
65 pid2=$(printf "%s\n%s" "$(cat ${PWD}/${base}_2_1.pid)" \
67 if [ "$pid1" = "$pid2" ]; then
70 echo "not ok 2 - $name # pgrep output: '$pid1', pidfile output: '$pid2'"
86 echo "not ok 3 - $name # pgrep output: '$pid1', pidfile output: '$pid2'"
105 pid2=$(printf "%s\n%s" "$(cat ${PWD}/${base}_4_1.pid)" \
107 if [ "$pid1" = "$pid2" ]; then
110 echo "not ok 4 - $name # pgrep output: '$(echo $pid1)', pidfile output: '$(echo $pid2)'"
/freebsd/tools/test/stress2/misc/
H A Dexlock2.sh163 pid_t pid1, pid2;
179 if ((pid2 = fork()) == 0)
181 if (pid2 == -1)
184 if (waitpid(pid2, &status, 0) != pid2)
185 err(1, "waitpid(%d)", pid2);
190 pid2, WTERMSIG(status));
H A Dumountf10.sh69 pid2="$pid2 $!"
83 kill $pid $pid2 $tpid
H A Dgraid1_3.sh74 pid2=$!
82 kill $pid1 $pid2
H A Dtmpfs17.sh49 pid2=`pgrep tmpfs17`
51 for p in $pid2; do
H A Dbio.sh60 pid2=$!
69 wait $pid2
/freebsd/contrib/netbsd-tests/rump/rumpkern/h_client/
H A Dh_forkcli.c21 pid_t pid1, pid2; in simple() local
42 if ((pid2 = rump_sys_getpid()) < 2) in simple()
43 errx(1, "unexpected pid %d", pid2); in simple()
44 if (pid1 == pid2) in simple()
/freebsd/tools/regression/security/proc_to_proc/
H A Dscenario.c267 pid_t pid1, pid2; in enact_scenario() local
307 pid2 = fork(); in enact_scenario()
308 switch (pid2) { in enact_scenario()
407 error = waitpid(pid2, NULL, 0); in enact_scenario()
415 error = waitpid(pid2, NULL, 0); in enact_scenario()
/freebsd/contrib/kyua/utils/process/
H A Doperations_test.cpp264 const pid_t pid2 = ::fork(); in ATF_TEST_CASE_BODY() local
265 if (pid2 == -1) { in ATF_TEST_CASE_BODY()
267 } else if (pid2 == 0) { in ATF_TEST_CASE_BODY()
/freebsd/tests/sys/file/
H A Dflock_helper.c499 int pid1, pid2; in test6() local
529 pid2 = fork(); in test6()
530 if (pid2 < 0) in test6()
533 if (pid2 == 0) { in test6()
567 kill(pid2, SIGTERM); in test6()
568 safe_waitpid(pid2); in test6()
/freebsd/tests/sys/fs/fusefs/
H A Dlocks.cc309 pid_t pid2 = 1235; in TEST_F() local
335 out.body.getlk.lk.pid = (uint32_t)pid2;; in TEST_F()
349 EXPECT_EQ(pid2, fl.l_pid); in TEST_F()
/freebsd/include/
H A Dunistd.h526 int kcmp(pid_t pid1, pid_t pid2, int type, uintptr_t idx1, uintptr_t idx2);
/freebsd/sys/kern/
H A Dsys_generic.c2108 kern_kcmp(struct thread *td, pid_t pid1, pid_t pid2, int type, in kern_kcmp() argument
2119 error = kcmp_pget(td, pid2, &p2); in kern_kcmp()
2169 return (kern_kcmp(td, uap->pid1, uap->pid2, uap->type, in sys_kcmp()
H A Dsystrace_args.c3451 iarg[a++] = p->pid2; /* pid_t */ in systrace_args()
/freebsd/sys/sys/
H A Dsyscallsubr.h202 int kern_kcmp(struct thread *td, pid_t pid1, pid_t pid2, int type,
/freebsd/lib/libsys/
H A D_libsys.h862 int __sys_kcmp(pid_t pid1, pid_t pid2, int type, uintptr_t idx1, uintptr_t idx2);
/freebsd/sys/arm64/linux/
H A Dlinux_systrace_args.c2048 iarg[a++] = p->pid2; /* l_pid_t */ in systrace_args()
H A Dlinux_proto.h1024 char pid2_l_[PADL_(l_pid_t)]; l_pid_t pid2; char pid2_r_[PADR_(l_pid_t)]; member
/freebsd/sys/amd64/linux/
H A Dlinux_systrace_args.c2420 iarg[a++] = p->pid2; /* l_pid_t */ in systrace_args()
H A Dlinux_proto.h1210 char pid2_l_[PADL_(l_pid_t)]; l_pid_t pid2; char pid2_r_[PADR_(l_pid_t)]; member
/freebsd/sys/i386/linux/
H A Dlinux_systrace_args.c2558 iarg[a++] = p->pid2; /* l_pid_t */ in systrace_args()
H A Dlinux_proto.h1270 char pid2_l_[PADL_(l_pid_t)]; l_pid_t pid2; char pid2_r_[PADR_(l_pid_t)]; member
/freebsd/sys/amd64/linux32/
H A Dlinux32_systrace_args.c2527 iarg[a++] = p->pid2; /* l_pid_t */ in systrace_args()
H A Dlinux32_proto.h1276 char pid2_l_[PADL_(l_pid_t)]; l_pid_t pid2; char pid2_r_[PADR_(l_pid_t)]; member
/freebsd/sys/compat/freebsd32/
H A Dfreebsd32_systrace_args.c3364 iarg[a++] = p->pid2; /* pid_t */ in systrace_args()

12