Home
last modified time | relevance | path

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

12

/src/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)'"
/src/tools/test/stress2/misc/
H A Dexlock2.sh163 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 Dgraid1_3.sh69 pid1=$!
82 kill $pid1 $pid2
H A Dbio.sh57 pid1=$!
70 wait $pid1
/src/tools/test/ptrace/
H A Dscescx.c358 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 …]
/src/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()
/src/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()
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/raidz/
H A Draidz_expand_003_pos.ksh111 pid1=$!
124 kill_if_running $pid1
/src/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()
/src/cddl/usr.sbin/dtrace/tests/common/builtinvar/
H A DMakefile33 tst.pid1.d \
/src/tests/sys/kern/
H A Dunix_passfd_test.c1071 pid_t pid1, pid2; in ATF_TC_BODY() local
1098 pid1 = fork(); in ATF_TC_BODY()
1099 ATF_REQUIRE(pid1 >= 0); in ATF_TC_BODY()
1100 if (pid1 == 0) { in ATF_TC_BODY()
1169 error = waitpid(pid1, &status, 0); in ATF_TC_BODY()
/src/include/
H A Dunistd.h532 int kcmp(pid_t pid1, pid_t pid2, int type, uintptr_t idx1, uintptr_t idx2);
/src/sys/kern/
H A Dsys_generic.c2170 kern_kcmp(struct thread *td, pid_t pid1, pid_t pid2, int type, in kern_kcmp() argument
2179 error = kcmp_pget(td, pid1, &p1); in kern_kcmp()
2231 return (kern_kcmp(td, uap->pid1, uap->pid2, uap->type, in sys_kcmp()
H A Dsystrace_args.c3427 iarg[a++] = p->pid1; /* pid_t */ in systrace_args()
/src/sys/sys/
H A Dsyscallsubr.h202 int kern_kcmp(struct thread *td, pid_t pid1, pid_t pid2, int type,
/src/lib/libsys/
H A D_libsys.h873 int __sys_kcmp(pid_t pid1, pid_t pid2, int type, uintptr_t idx1, uintptr_t idx2);
/src/sys/compat/linux/
H A Dlinux_misc.c3094 return (kern_kcmp(td, args->pid1, args->pid2, type, args->idx1, in linux_kcmp()
/src/sys/arm64/linux/
H A Dlinux_systrace_args.c2055 iarg[a++] = p->pid1; /* l_pid_t */ in systrace_args()
H A Dlinux_proto.h1026 char pid1_l_[PADL_(l_pid_t)]; l_pid_t pid1; char pid1_r_[PADR_(l_pid_t)]; member
/src/sys/amd64/linux/
H A Dlinux_systrace_args.c2427 iarg[a++] = p->pid1; /* l_pid_t */ in systrace_args()
H A Dlinux_proto.h1212 char pid1_l_[PADL_(l_pid_t)]; l_pid_t pid1; char pid1_r_[PADR_(l_pid_t)]; member
/src/sys/i386/linux/
H A Dlinux_systrace_args.c2567 iarg[a++] = p->pid1; /* l_pid_t */ in systrace_args()
H A Dlinux_proto.h1272 char pid1_l_[PADL_(l_pid_t)]; l_pid_t pid1; char pid1_r_[PADR_(l_pid_t)]; member
/src/sys/amd64/linux32/
H A Dlinux32_systrace_args.c2536 iarg[a++] = p->pid1; /* l_pid_t */ in systrace_args()
H A Dlinux32_proto.h1278 char pid1_l_[PADL_(l_pid_t)]; l_pid_t pid1; char pid1_r_[PADR_(l_pid_t)]; member

12