Home
last modified time | relevance | path

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

/freebsd/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/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
/freebsd/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 …]
/freebsd/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/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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/raidz/
H A Draidz_expand_003_pos.ksh110 pid1=$!
123 kill_if_running $pid1
/freebsd/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/cddl/usr.sbin/dtrace/tests/common/builtinvar/
H A DMakefile33 tst.pid1.d \
/freebsd/include/
H A Dunistd.h527 int kcmp(pid_t pid1, pid_t pid2, int type, uintptr_t idx1, uintptr_t idx2);
/freebsd/sys/kern/
H A Dsys_generic.c2131 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 Dsystrace_args.c3443 iarg[a++] = p->pid1; /* pid_t */ in systrace_args()
/freebsd/sys/sys/
H A Dsyscallsubr.h203 int kern_kcmp(struct thread *td, pid_t pid1, pid_t pid2, int type,
H A Dsysproto.h1870 char pid1_l_[PADL_(pid_t)]; pid_t pid1; char pid1_r_[PADR_(pid_t)]; member
/freebsd/lib/libsys/
H A D_libsys.h865 int __sys_kcmp(pid_t pid1, pid_t pid2, int type, uintptr_t idx1, uintptr_t idx2);
/freebsd/sys/arm64/linux/
H A Dlinux_systrace_args.c2048 iarg[a++] = p->pid1; /* l_pid_t */ in systrace_args()
/freebsd/sys/amd64/linux/
H A Dlinux_systrace_args.c2420 iarg[a++] = p->pid1; /* l_pid_t */ in systrace_args()
/freebsd/sys/i386/linux/
H A Dlinux_systrace_args.c2558 iarg[a++] = p->pid1; /* l_pid_t */ in systrace_args()
/freebsd/sys/amd64/linux32/
H A Dlinux32_systrace_args.c2527 iarg[a++] = p->pid1; /* l_pid_t */ in systrace_args()
/freebsd/sys/compat/freebsd32/
H A Dfreebsd32_systrace_args.c3356 iarg[a++] = p->pid1; /* pid_t */ in systrace_args()