/freebsd/bin/pkill/tests/ |
H A D | pgrep-j_test.sh | 43 pid1="$(pgrep -f -x -j "$jid" "$sleep $sleep_amount" | sort)" 46 if [ "$pid1" = "$pid2" ]; then 49 echo "not ok 1 - $name # pgrep output: '$pid1', pidfile output: '$pid2'" 64 pid1="$(pgrep -f -x -j any "$sleep $sleep_amount" | sort)" 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'" 104 pid1="$(pgrep -f -x -j "$jname" "$sleep $sleep_amount" | sort)" 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; 174 if ((pid1 = fork()) == 0) 176 if (pid1 == -1) 193 kill(pid1, SIGHUP); 194 if (waitpid(pid1, &status, 0) != pid1) 195 err(1, "waitpid(%d)", pid1); 200 pid1, WTERMSIG(status));
|
H A D | graid1_3.sh | 69 pid1=$! 82 kill $pid1 $pid2
|
H A D | bio.sh | 57 pid1=$! 70 wait $pid1
|
/freebsd/tools/test/ptrace/ |
H A D | scescx.c | 358 pid_t pid, pid1; in main() local 396 if ((pid1 = use_vfork ? vfork() : fork()) < 0) { in main() 399 } else if (pid1 == 0) { in main() 426 while ((pid1 = trace(pid)) >= 0) { in main() 427 if (pid1 != 0) { in main() 428 printf(TRACE "attached to pid %d\n", pid1); in main() 430 kill(pid1, SIGCONT); in main() 432 if (waitpid(pid1, &status, 0) == -1) { in main() 437 pid1, decode_wait_status(status)); in main() 440 if (ptrace(PT_LWPINFO, pid1, (caddr_t)&lwpinfo, in main() [all …]
|
/freebsd/tools/regression/security/proc_to_proc/ |
H A D | scenario.c | 267 pid_t pid1, pid2; in enact_scenario() local 275 pid1 = fork(); in enact_scenario() 276 switch (pid1) { in enact_scenario() 333 error = ptrace(PT_ATTACH, pid1, NULL, 0); in enact_scenario() 347 KTRFAC_SYSCALL, pid1); in enact_scenario() 355 error = kill(pid1, SIGHUP); in enact_scenario() 362 error = kill(pid1, SIGSEGV); in enact_scenario() 369 getpriority(PRIO_PROCESS, pid1); in enact_scenario() 376 error = setpriority(PRIO_PROCESS, pid1, in enact_scenario() 414 kill(pid1, SIGKILL); in enact_scenario()
|
/freebsd/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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/raidz/ |
H A D | raidz_expand_003_pos.ksh | 110 pid1=$! 123 kill_if_running $pid1
|
/freebsd/tests/sys/file/ |
H A D | flock_helper.c | 499 int pid1, pid2; in test6() local 513 pid1 = fork(); in test6() 514 if (pid1 < 0) in test6() 517 if (pid1 == 0) { in test6() 565 kill(pid1, SIGTERM); in test6() 566 safe_waitpid(pid1); in test6()
|
/freebsd/cddl/usr.sbin/dtrace/tests/common/builtinvar/ |
H A D | Makefile | 33 tst.pid1.d \
|
/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 | 2131 kern_kcmp(struct thread *td, pid_t pid1, pid_t pid2, int type, in kern_kcmp() argument 2140 error = kcmp_pget(td, pid1, &p1); in kern_kcmp() 2192 return (kern_kcmp(td, uap->pid1, uap->pid2, uap->type, in sys_kcmp()
|
H A D | systrace_args.c | 3443 iarg[a++] = p->pid1; /* 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 | 1870 char pid1_l_[PADL_(pid_t)]; pid_t pid1; char pid1_r_[PADR_(pid_t)]; member
|
/freebsd/lib/libsys/ |
H A D | _libsys.h | 865 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 | 2048 iarg[a++] = p->pid1; /* l_pid_t */ in systrace_args()
|
/freebsd/sys/amd64/linux/ |
H A D | linux_systrace_args.c | 2420 iarg[a++] = p->pid1; /* l_pid_t */ in systrace_args()
|
/freebsd/sys/i386/linux/ |
H A D | linux_systrace_args.c | 2558 iarg[a++] = p->pid1; /* l_pid_t */ in systrace_args()
|
/freebsd/sys/amd64/linux32/ |
H A D | linux32_systrace_args.c | 2527 iarg[a++] = p->pid1; /* l_pid_t */ in systrace_args()
|
/freebsd/sys/compat/freebsd32/ |
H A D | freebsd32_systrace_args.c | 3356 iarg[a++] = p->pid1; /* pid_t */ in systrace_args()
|