Searched refs:pid (Results 101 - 125 of 1106) sorted by relevance

1234567891011>>

/freebsd-11-stable/bin/pkill/tests/
H A Dpgrep-U_test.sh15 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 Dpgrep-_g_test.sh15 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 Dpgrep-g_test.sh15 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 Dpgrep-s_test.sh15 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 Dpgrep-t_test.sh24 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 Dpgrep-j_test.sh25 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 Dtst.schrock.ksh44 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 Dtst.coverage.d32 * SECTION: pid provider
44 pid$1:a.out::
H A Dtst.float.d32 * SECTION: pid provider
43 pid$1:a.out:main:
H A Dtst.gcc.d33 * SECTION: pid provider
45 pid$1:a.out::
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ustack/
H A Dtst.bigstack.d30 /pid == $1/
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/i386/ustack/
H A Dtst.circstack.d30 /pid == $1/
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/
H A Dtst.circstack.d30 /pid == $1/
/freebsd-11-stable/contrib/binutils/libiberty/
H A Dpexecute.c85 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 Dwaitpid.c3 @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 Dwait4.c44 wait4(pid_t pid, int *status, int options, struct rusage *ru) argument
48 __libc_interposing[INTERPOS_wait4])(pid, status, options, ru));
H A Dptrace.c44 _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 Dclock_getcpuclockid.c36 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 Dwaitpid_nohang.c39 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 Dpopen.c61 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 Dcap_getmode.c50 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 Dt_sigaction.c69 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 Dsparc-nat.c140 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) &regs, 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 Dproccontrol.c56 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 Denable49 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

Completed in 124 milliseconds

1234567891011>>