Home
last modified time | relevance | path

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

/freebsd-12.1/bin/pkill/tests/
H A Dpgrep-j_test.sh44 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 Dscescx.c339 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 Dscenario.c269 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 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-12.1/contrib/gcclibs/libiberty/testsuite/
H A Dtest-pexecute.c384 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 Dflock_helper.c501 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 DMakefile35 tst.pid1.d \
/freebsd-12.1/sys/arm64/linux/
H A Dlinux_systrace_args.c1936 iarg[0] = p->pid1; /* l_pid_t */ in systrace_args()
H A Dlinux_proto.h951 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 Dlinux_systrace_args.c2261 iarg[0] = p->pid1; /* l_pid_t */ in systrace_args()
H A Dlinux_proto.h1105 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 Dlinux32_systrace_args.c2388 iarg[0] = p->pid1; /* l_pid_t */ in systrace_args()
H A Dlinux32_proto.h1179 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 Dlinux_systrace_args.c2464 iarg[0] = p->pid1; /* l_pid_t */ in systrace_args()
H A Dlinux_proto.h1197 char pid1_l_[PADL_(l_pid_t)]; l_pid_t pid1; char pid1_r_[PADR_(l_pid_t)]; member