Home
last modified time | relevance | path

Searched refs:pid1 (Results 1 – 23 of 23) sorted by relevance

/freebsd-14.2/bin/pkill/tests/
H A Dpgrep-j_test.sh43 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-14.2/tools/test/stress2/misc/
H A Dexlock2.sh168 pid_t pid1, pid2;
179 if ((pid1 = fork()) == 0)
181 if (pid1 == -1)
198 kill(pid1, SIGHUP);
199 if (waitpid(pid1, &status, 0) != pid1)
200 err(1, "waitpid(%d)", pid1);
205 pid1, WTERMSIG(status));
H A Dgraid1_3.sh69 pid1=$!
82 kill $pid1 $pid2
H A Dbio.sh57 pid1=$!
70 wait $pid1
/freebsd-14.2/tools/test/ptrace/
H A Dscescx.c359 pid_t pid, pid1; in main() local
400 } else if (pid1 == 0) { in main()
427 while ((pid1 = trace(pid)) >= 0) { in main()
428 if (pid1 != 0) { in main()
429 printf(TRACE "attached to pid %d\n", pid1); in main()
431 kill(pid1, SIGCONT); in main()
433 if (waitpid(pid1, &status, 0) == -1) { in main()
438 pid1, decode_wait_status(status)); in main()
444 ptrace(PT_KILL, pid1, NULL, 0); in main()
447 wait_info(pid1, status, &lwpinfo); in main()
[all …]
/freebsd-14.2/tools/regression/security/proc_to_proc/
H A Dscenario.c267 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-14.2/contrib/netbsd-tests/rump/rumpkern/h_client/
H A Dh_forkcli.c21 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-14.2/tests/sys/file/
H A Dflock_helper.c499 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-14.2/cddl/usr.sbin/dtrace/tests/common/builtinvar/
H A DMakefile34 tst.pid1.d \
/freebsd-14.2/include/
H A Dunistd.h525 int kcmp(pid_t pid1, pid_t pid2, int type, uintptr_t idx1, uintptr_t idx2);
/freebsd-14.2/sys/kern/
H A Dsys_generic.c2110 kern_kcmp(struct thread *td, pid_t pid1, pid_t pid2, int type, in kern_kcmp() argument
2119 error = kcmp_pget(td, pid1, &p1); in kern_kcmp()
2171 return (kern_kcmp(td, uap->pid1, uap->pid2, uap->type, in sys_kcmp()
H A Dsystrace_args.c3464 iarg[a++] = p->pid1; /* pid_t */ in systrace_args()
/freebsd-14.2/sys/sys/
H A Dsyscallsubr.h203 int kern_kcmp(struct thread *td, pid_t pid1, pid_t pid2, int type,
H A Dsysproto.h1880 char pid1_l_[PADL_(pid_t)]; pid_t pid1; char pid1_r_[PADR_(pid_t)]; member
/freebsd-14.2/sys/arm64/linux/
H A Dlinux_systrace_args.c2047 iarg[a++] = p->pid1; /* l_pid_t */ in systrace_args()
H A Dlinux_proto.h1023 char pid1_l_[PADL_(l_pid_t)]; l_pid_t pid1; char pid1_r_[PADR_(l_pid_t)]; member
/freebsd-14.2/sys/amd64/linux/
H A Dlinux_systrace_args.c2419 iarg[a++] = p->pid1; /* l_pid_t */ in systrace_args()
H A Dlinux_proto.h1209 char pid1_l_[PADL_(l_pid_t)]; l_pid_t pid1; char pid1_r_[PADR_(l_pid_t)]; member
/freebsd-14.2/sys/i386/linux/
H A Dlinux_systrace_args.c2557 iarg[a++] = p->pid1; /* l_pid_t */ in systrace_args()
H A Dlinux_proto.h1269 char pid1_l_[PADL_(l_pid_t)]; l_pid_t pid1; char pid1_r_[PADR_(l_pid_t)]; member
/freebsd-14.2/sys/amd64/linux32/
H A Dlinux32_systrace_args.c2526 iarg[a++] = p->pid1; /* l_pid_t */ in systrace_args()
H A Dlinux32_proto.h1275 char pid1_l_[PADL_(l_pid_t)]; l_pid_t pid1; char pid1_r_[PADR_(l_pid_t)]; member
/freebsd-14.2/sys/compat/freebsd32/
H A Dfreebsd32_systrace_args.c3377 iarg[a++] = p->pid1; /* pid_t */ in systrace_args()