/freebsd/bin/pkill/tests/ |
H A D | pgrep-j_test.sh | 44 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 D | exlock2.sh | 163 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 D | umountf10.sh | 69 pid2="$pid2 $!" 83 kill $pid $pid2 $tpid
|
H A D | graid1_3.sh | 74 pid2=$! 82 kill $pid1 $pid2
|
H A D | tmpfs17.sh | 49 pid2=`pgrep tmpfs17` 51 for p in $pid2; do
|
H A D | bio.sh | 60 pid2=$! 69 wait $pid2
|
/freebsd/contrib/netbsd-tests/rump/rumpkern/h_client/ |
H A D | h_forkcli.c | 21 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 D | scenario.c | 267 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 D | operations_test.cpp | 264 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 D | flock_helper.c | 499 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 D | locks.cc | 309 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 D | unistd.h | 527 int kcmp(pid_t pid1, pid_t pid2, int type, uintptr_t idx1, uintptr_t idx2);
|
/freebsd/sys/kern/ |
H A D | sys_generic.c | 2130 kern_kcmp(struct thread *td, pid_t pid1, pid_t pid2, int type, in kern_kcmp() argument 2141 error = kcmp_pget(td, pid2, &p2); in kern_kcmp() 2191 return (kern_kcmp(td, uap->pid1, uap->pid2, uap->type, in sys_kcmp()
|
H A D | systrace_args.c | 3452 iarg[a++] = p->pid2; /* pid_t */ in systrace_args()
|
/freebsd/sys/sys/ |
H A D | syscallsubr.h | 203 int kern_kcmp(struct thread *td, pid_t pid1, pid_t pid2, int type,
|
H A D | sysproto.h | 1875 char pid2_l_[PADL_(pid_t)]; pid_t pid2; char pid2_r_[PADR_(pid_t)]; member
|
/freebsd/lib/libsys/ |
H A D | _libsys.h | 867 int __sys_kcmp(pid_t pid1, pid_t pid2, int type, uintptr_t idx1, uintptr_t idx2);
|
/freebsd/sys/arm64/linux/ |
H A D | linux_systrace_args.c | 2049 iarg[a++] = p->pid2; /* l_pid_t */ in systrace_args()
|
/freebsd/sys/amd64/linux/ |
H A D | linux_systrace_args.c | 2421 iarg[a++] = p->pid2; /* l_pid_t */ in systrace_args()
|
/freebsd/sys/i386/linux/ |
H A D | linux_systrace_args.c | 2559 iarg[a++] = p->pid2; /* l_pid_t */ in systrace_args()
|
/freebsd/sys/amd64/linux32/ |
H A D | linux32_systrace_args.c | 2528 iarg[a++] = p->pid2; /* l_pid_t */ in systrace_args()
|
/freebsd/sys/compat/freebsd32/ |
H A D | freebsd32_systrace_args.c | 3365 iarg[a++] = p->pid2; /* pid_t */ in systrace_args()
|