/freebsd-11-stable/bin/pkill/tests/ |
H A D | pgrep-U_test.sh | 15 pid=`pgrep -f -U $ruid $sleep` 16 if [ "$pid" = "$chpid" ]; then 31 pid=`pgrep -f -U $ruid $sleep` 32 if [ "$pid" = "$chpid" ]; then
|
H A D | pgrep-_g_test.sh | 15 pid=`pgrep -f -G $rgid $sleep` 16 if [ "$pid" = "$chpid" ]; then 31 pid=`pgrep -f -G $rgid $sleep` 32 if [ "$pid" = "$chpid" ]; then
|
H A D | pgrep-g_test.sh | 15 pid=`pgrep -f -g $pgrp $sleep` 16 if [ "$pid" = "$chpid" ]; then 30 pid=`pgrep -f -g 0 $sleep` 31 if [ "$pid" = "$chpid" ]; then
|
H A D | pgrep-s_test.sh | 15 pid=`pgrep -f -s $sid $sleep` 16 if [ "$pid" = "$chpid" ]; then 30 pid=`pgrep -f -s 0 $sleep` 31 if [ "$pid" = "$chpid" ]; then
|
H A D | pgrep-t_test.sh | 24 pid=`pgrep -f -t $tty $sleep` 25 if [ "$pid" = "$chpid" ]; then 30 pid=`pgrep -f -t $ttyshort $sleep` 31 if [ "$pid" = "$chpid" ]; then
|
H A D | pgrep-j_test.sh | 25 command=daemon -p ${PWD}/${base}_1_1.pid $sleep $sleep_amount & 28 command=daemon -p ${PWD}/${base}_1_2.pid $sleep $sleep_amount & 45 pid2=$(printf "%s\n%s" "$(cat ${PWD}/${base}_1_1.pid)" \ 46 $(cat ${PWD}/${base}_1_2.pid) | sort) 52 [ -f ${PWD}/${base}_1_1.pid ] && kill $(cat ${PWD}/${base}_1_1.pid) 53 [ -f ${PWD}/${base}_1_2.pid ] && kill $(cat ${PWD}/${base}_1_2.pid) 59 command=daemon -p ${PWD}/${base}_2_1.pid $sleep $sleep_amount & 62 command=daemon -p ${PWD}/${base}_2_2.pid [all...] |
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/misc/ |
H A D | tst.schrock.ksh | 44 pid\$target::\$1:entry 49 pid\$target:::entry 55 pid\$target:::return 61 pid\$target::\$1:return
|
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/ |
H A D | tst.coverage.d | 32 * SECTION: pid provider 44 pid$1:a.out::
|
H A D | tst.float.d | 32 * SECTION: pid provider 43 pid$1:a.out:main:
|
H A D | tst.gcc.d | 33 * SECTION: pid provider 45 pid$1:a.out::
|
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ustack/ |
H A D | tst.bigstack.d | 30 /pid == $1/
|
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/i386/ustack/ |
H A D | tst.circstack.d | 30 /pid == $1/
|
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/ |
H A D | tst.circstack.d | 30 /pid == $1/
|
/freebsd-11-stable/contrib/binutils/libiberty/ |
H A D | pexecute.c | 85 pwait (int pid, int *status, int flags ATTRIBUTE_UNUSED) argument 88 --pid; 90 if (pex == NULL || pid < 0 || pid >= idx) 93 if (pid == 0 && idx == 1) 108 *status = vector[pid]; 116 if (pid + 1 == idx) 123 return pid + 1;
|
H A D | waitpid.c | 3 @deftypefn Supplemental int waitpid (int @var{pid}, int *@var{status}, int) 6 values of @var{pid} depend on your implementation of @code{wait}, as 27 waitpid (pid_t pid, int *stat_loc, int options ATTRIBUTE_UNUSED) argument 32 if (wpid == pid || wpid == -1)
|
/freebsd-11-stable/lib/libc/sys/ |
H A D | wait4.c | 44 wait4(pid_t pid, int *status, int options, struct rusage *ru) argument 48 __libc_interposing[INTERPOS_wait4])(pid, status, options, ru));
|
H A D | ptrace.c | 44 _ptrace(int request, pid_t pid, caddr_t addr, int data) argument 48 return (__sys_ptrace(request, pid, addr, data));
|
/freebsd-11-stable/lib/libc/gen/ |
H A D | clock_getcpuclockid.c | 36 clock_getcpuclockid(pid_t pid, clockid_t *clock_id) argument 38 if (clock_getcpuclockid2(pid, CPUCLOCK_WHICH_PID, clock_id))
|
/freebsd-11-stable/tests/sys/kern/ |
H A D | waitpid_nohang.c | 39 pid_t child, pid; local 50 pid = waitpid(child, &status, WNOHANG); 51 ATF_REQUIRE(pid == 0); 60 pid = waitpid(child, &status, WNOHANG); 61 ATF_REQUIRE(pid == child);
|
/freebsd-11-stable/usr.sbin/autofs/ |
H A D | popen.c | 61 struct pid { struct 62 SLIST_ENTRY(pid) next; 64 pid_t pid; member in struct:pid 67 static SLIST_HEAD(, pid) pidlist = SLIST_HEAD_INITIALIZER(pidlist); 80 struct pid *cur, *p; 81 pid_t pid; local 93 cur = malloc(sizeof(struct pid)); 115 switch (pid = fork()) { 134 log_debugx("executing \"%s\" as pid %d", command, pid); 153 pid_t pid; local [all...] |
/freebsd-11-stable/tools/regression/capsicum/syscalls/ |
H A D | cap_getmode.c | 50 pid_t pid; local 71 pid = fork(); 72 switch (pid) { 84 if (waitpid(pid, NULL, 0) == -1) 89 pid = pdfork(&pfd, 0); 90 switch (pid) { 127 pid = fork(); 128 switch (pid) { 148 pid = pdfork(&pfd, 0); 149 switch (pid) { [all...] |
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_sigaction.c | 69 wait_and_check_child(const pid_t pid, const char *fail_message) argument 73 (void)waitpid(pid, &status, 0); 115 const pid_t pid = fork(); local 116 if (pid == -1) 118 else if (pid == 0) 121 wait_and_check_child(pid, "Child process did not exit cleanly;" 133 const pid_t pid = fork(); local 134 if (pid == -1) 136 else if (pid == 0) 139 wait_and_check_child(pid, "Chil [all...] |
/freebsd-11-stable/contrib/gdb/gdb/ |
H A D | sparc-nat.c | 140 int pid; local 155 pid = TIDGET (inferior_ptid); 156 if (pid == 0) 157 pid = PIDGET (inferior_ptid); 169 if (ptrace (PTRACE_GETREGS, pid, (PTRACE_ARG3_TYPE) ®s, 0) == -1) 181 if (ptrace (PTRACE_GETFPREGS, pid, (PTRACE_ARG3_TYPE) &fpregs, 0) == -1) 192 int pid; local 196 pid = TIDGET (inferior_ptid); 197 if (pid == 0) 198 pid 275 int pid; local [all...] |
/freebsd-11-stable/usr.bin/proccontrol/ |
H A D | proccontrol.c | 56 warnx("non-numeric pid"); 67 "[-s (enable|disable)] [-p pid | command]\n"); 75 pid_t pid; local 80 pid = -1; 103 pid = str2pid(optarg); 118 if (pid != -1 || query) 120 pid = getpid(); 121 } else if (pid == -1) { 122 pid = getpid(); 128 error = procctl(P_PID, pid, PROC_TRACE_STATU [all...] |
/freebsd-11-stable/usr.sbin/bsdconfig/mouse/ |
H A D | enable | 49 MOUSED_PIDFILE=/var/run/moused.pid 89 f_eval_catch -dk pid "$0" cat 'cat "%s"' "$MOUSED_PIDFILE" && 90 f_isinteger "$pid" && 91 [ $pid -gt 0 ] && 92 f_eval_catch -d "$0" kill 'kill %s' $pid 116 f_eval_catch -dk pid "$0" cat 'cat "%s"' "$MOUSED_PIDFILE" && 117 f_isinteger "$pid" && 118 [ $pid -gt 0 ] && 119 f_eval_catch -d "$0" kill 'kill %s' $pid
|