| /freebsd-12.1/bin/pkill/tests/ |
| H A D | pgrep-j_test.sh | 44 pid1="$(pgrep -f -x -j "$jid" "$sleep $sleep_amount" | sort)" 47 if [ "$pid1" = "$pid2" ]; then 50 echo "not ok 1 - $name # pgrep output: '$(echo $pid1)', pidfile output: '$(echo $pid2)'" 65 pid1="$(pgrep -f -x -j any "$sleep $sleep_amount" | sort)" 68 if [ "$pid1" = "$pid2" ]; then 71 echo "not ok 2 - $name # pgrep output: '$(echo $pid1)', pidfile output: '$(echo $pid2)'" 87 echo "not ok 3 - $name # pgrep output: '$(echo $pid1)', pidfile output: '$(echo $pid2)'" 105 pid1="$(pgrep -f -x -j "$jname" "$sleep $sleep_amount" | sort)" 108 if [ "$pid1" = "$pid2" ]; then 111 echo "not ok 4 - $name # pgrep output: '$(echo $pid1)', pidfile output: '$(echo $pid2)'"
|
| /freebsd-12.1/tools/test/ptrace/ |
| H A D | scescx.c | 339 pid_t pid, pid1; in main() local 375 } else if (pid1 == 0) { in main() 402 while ((pid1 = trace(pid)) >= 0) { in main() 403 if (pid1 != 0) { in main() 404 printf(TRACE "attached to pid %d\n", pid1); in main() 406 kill(pid1, SIGCONT); in main() 408 if (waitpid(pid1, &status, 0) == -1) { in main() 413 pid1, decode_wait_status(status)); in main() 419 ptrace(PT_KILL, pid1, NULL, 0); in main() 422 wait_info(pid1, status, &lwpinfo); in main() [all …]
|
| /freebsd-12.1/tools/regression/security/proc_to_proc/ |
| H A D | scenario.c | 269 pid_t pid1, pid2; in enact_scenario() local 277 pid1 = fork(); in enact_scenario() 278 switch (pid1) { in enact_scenario() 335 error = ptrace(PT_ATTACH, pid1, NULL, 0); in enact_scenario() 349 KTRFAC_SYSCALL, pid1); in enact_scenario() 357 error = kill(pid1, SIGHUP); in enact_scenario() 364 error = kill(pid1, SIGSEGV); in enact_scenario() 371 getpriority(PRIO_PROCESS, pid1); in enact_scenario() 378 error = setpriority(PRIO_PROCESS, pid1, in enact_scenario() 416 kill(pid1, SIGKILL); in enact_scenario()
|
| /freebsd-12.1/contrib/netbsd-tests/rump/rumpkern/h_client/ |
| H A D | h_forkcli.c | 21 pid_t pid1, pid2; in simple() local 24 if ((pid1 = rump_sys_getpid()) < 2) in simple() 25 errx(1, "unexpected pid %d", pid1); in simple() 44 if (pid1 == pid2) in simple()
|
| /freebsd-12.1/contrib/gcclibs/libiberty/testsuite/ |
| H A D | test-pexecute.c | 384 int pid1, pid2; in main() local 393 pid1 = pexecute ("./test-pexecute", subargv, "test-pexecute", "temp", in main() 395 if (pid1 < 0) in main() 414 if (pwait (pid1, &status, 0) < 0) in main()
|
| /freebsd-12.1/tests/sys/file/ |
| H A D | flock_helper.c | 501 int pid1, pid2; in test6() local 515 pid1 = fork(); in test6() 516 if (pid1 < 0) in test6() 519 if (pid1 == 0) { in test6() 567 kill(pid1, SIGTERM); in test6() 568 safe_waitpid(pid1); in test6()
|
| /freebsd-12.1/cddl/usr.sbin/dtrace/tests/common/builtinvar/ |
| H A D | Makefile | 35 tst.pid1.d \
|
| /freebsd-12.1/sys/arm64/linux/ |
| H A D | linux_systrace_args.c | 1936 iarg[0] = p->pid1; /* l_pid_t */ in systrace_args()
|
| H A D | linux_proto.h | 951 char pid1_l_[PADL_(l_pid_t)]; l_pid_t pid1; char pid1_r_[PADR_(l_pid_t)]; member
|
| /freebsd-12.1/sys/amd64/linux/ |
| H A D | linux_systrace_args.c | 2261 iarg[0] = p->pid1; /* l_pid_t */ in systrace_args()
|
| H A D | linux_proto.h | 1105 char pid1_l_[PADL_(l_pid_t)]; l_pid_t pid1; char pid1_r_[PADR_(l_pid_t)]; member
|
| /freebsd-12.1/sys/amd64/linux32/ |
| H A D | linux32_systrace_args.c | 2388 iarg[0] = p->pid1; /* l_pid_t */ in systrace_args()
|
| H A D | linux32_proto.h | 1179 char pid1_l_[PADL_(l_pid_t)]; l_pid_t pid1; char pid1_r_[PADR_(l_pid_t)]; member
|
| /freebsd-12.1/sys/i386/linux/ |
| H A D | linux_systrace_args.c | 2464 iarg[0] = p->pid1; /* l_pid_t */ in systrace_args()
|
| H A D | linux_proto.h | 1197 char pid1_l_[PADL_(l_pid_t)]; l_pid_t pid1; char pid1_r_[PADR_(l_pid_t)]; member
|