Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 1267) sorted by relevance

12345678910>>...51

/freebsd-12.1/contrib/netbsd-tests/bin/ps/
H A Dt_ps.sh209 "$(echo "${default_keywords}" | sed -e 's/pid/pid %cpu %mem/')"
211 "$(echo "${default_keywords}" | sed -e 's/pid/pid %cpu %mem/')"
213 "$(echo "${default_keywords}" | sed -e 's/pid/pid %cpu %mem/')"
240 check_heading_keywords '-o comm,pid' \
284 check_heading_regexp '-o comm,pid==' \
286 check_heading_regexp '-o comm,pid=,' \
328 check_heading_regexp '-o comm,pid=' \
383 check_heading_regexp '-o pid=PPP -o pid=QQQ' \
386 check_heading_regexp '-o pid=PPP -o pid' \
388 check_heading_regexp '-o pid -o pid=QQQ' \
[all …]
/freebsd-12.1/bin/pkill/tests/
H A Dpkill-j_test.sh46 ! -f ${PWD}/${base}_1_1.pid &&
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)
74 [ -f ${PWD}/${base}_2_1.pid ] && kill $(cat ${PWD}/${base}_2_1.pid)
75 [ -f ${PWD}/${base}_2_2.pid ] && kill $(cat ${PWD}/${base}_2_2.pid)
85 [ ! -f ${PWD}/${base}_3_1.pid -a -f ${PWD}/${base}_3_2.pid ] ; then
88 ls ${PWD}/*.pid
91 [ -f ${PWD}/${base}_3_1.pid ] && kill $(cat ${base}_3_1.pid)
92 [ -f ${PWD}/${base}_3_2.pid ] && kill $(cat ${base}_3_2.pid)
116 [ -f ${PWD}/${base}_4_1.pid ] && kill $(cat ${PWD}/${base}_4_1.pid)
[all …]
H A Dpgrep-j_test.sh46 $(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)
67 $(cat ${PWD}/${base}_2_2.pid) | sort)
73 [ -f ${PWD}/${base}_2_1.pid ] && kill $(cat ${PWD}/${base}_2_1.pid)
74 [ -f ${PWD}/${base}_2_2.pid ] && kill $(cat ${PWD}/${base}_2_2.pid)
89 [ -f ${PWD}/${base}_3_1.pid ] && kill $(cat $PWD/${base}_3_1.pid)
90 [ -f ${PWD}/${base}_3_2.pid ] && kill $(cat $PWD/${base}_3_2.pid)
107 $(cat ${PWD}/${base}_4_2.pid) | sort)
113 [ -f ${PWD}/${base}_4_1.pid ] && kill $(cat ${PWD}/${base}_4_1.pid)
[all …]
/freebsd-12.1/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/uctf/
H A Dtst.printtype.ksh38 pid=$!
41 pid$pid::ff_getgameid:entry
44 print(*(pid$pid\`$t *)(copyin(arg0, sizeof (pid$pid\`$t))));
49 pid$pid::ff_getpartysize:entry
52 print(*(pid$pid\`$t *)(copyin(arg0, sizeof (pid$pid\`$t))));
57 pid$pid::ff_getsummons:entry
60 print(*(pid$pid\`$t *)(copyin(arg0, sizeof (pid$pid\`$t))));
67 kill -9 $pid
H A Dtst.chasestrings.ksh39 pid=$!
42 pid$pid::has_princess:entry
45 this->t = (pid$pid\`$t *)(copyin(arg0, sizeof (pid$pid\`$t)));
52 pid$pid::has_dungeons:entry
55 this->t = (pid$pid\`$t *)(copyin(arg0, sizeof (pid$pid\`$t)));
62 pid$pid::has_villain:entry
65 this->t = (pid$pid\`$t *)(copyin(arg0, sizeof (pid$pid\`$t)));
74 kill -9 $pid
H A Dtst.printtypetarg.ksh39 pid=$!
41 $dtrace -p $pid -qs /dev/stdin <<EOF
42 pid\$target::ff_getgameid:entry
45 print(*(pid\`$t *)(copyin(arg0, sizeof (pid\`$t))));
50 pid\$target::ff_getpartysize:entry
53 print(*(pid\`$t *)(copyin(arg0, sizeof (pid\`$t))));
58 pid\$target::ff_getsummons:entry
61 print(*(pid\`$t *)(copyin(arg0, sizeof (pid\`$t))));
68 kill -9 $pid
/freebsd-12.1/tests/sys/audit/
H A Dprocess-control.c51 static pid_t pid; variable
67 pid = getpid(); in ATF_TC_BODY()
73 if (pid) in ATF_TC_BODY()
101 if (pid) { in ATF_TC_BODY()
128 pid = getpid(); in ATF_TC_BODY()
133 if (pid) in ATF_TC_BODY()
182 if (pid) { in ATF_TC_BODY()
235 if (pid) { in ATF_TC_BODY()
931 if (pid) { in ATF_TC_BODY()
983 if (pid) { in ATF_TC_BODY()
[all …]
H A Dadministrative.c50 static pid_t pid; variable
71 pid = getpid(); in ATF_TC_BODY()
99 pid = getpid(); in ATF_TC_BODY()
128 pid = getpid(); in ATF_TC_BODY()
155 pid = getpid(); in ATF_TC_BODY()
182 pid = getpid(); in ATF_TC_BODY()
206 pid = getpid(); in ATF_TC_BODY()
232 pid = getpid(); in ATF_TC_BODY()
255 pid = getpid(); in ATF_TC_BODY()
279 pid = getpid(); in ATF_TC_BODY()
[all …]
/freebsd-12.1/tools/test/ptrace/
H A Dscescx.c152 get_pathname(pid_t pid) in get_pathname() argument
161 name[3] = pid; in get_pathname()
216 trace_sc(int pid) in trace_sc() argument
272 get_pathname(pid); in trace_sc()
282 trace_cont(int pid) in trace_cont() argument
313 get_pathname(pid); in trace_cont()
327 trace(pid_t pid) in trace() argument
330 return (trace_syscalls ? trace_sc(pid) : trace_cont(pid)); in trace()
339 pid_t pid, pid1; in main() local
361 if ((pid = fork()) < 0) { in main()
[all …]
/freebsd-12.1/contrib/netbsd-tests/lib/libc/sys/
H A Dt_wait.c80 pid_t pid; in ATF_TC_BODY() local
89 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY()
115 pid_t pid; in ATF_TC_BODY() local
125 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY()
151 pid_t pid; in ATF_TC_BODY() local
170 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY()
197 pid_t pid; in ATF_TC_BODY() local
209 ATF_REQUIRE(wait6(P_PID, pid, &st, WSTOPPED, &wru, &si) == pid); in ATF_TC_BODY()
239 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY()
268 pid_t pid; in ATF_TC_BODY() local
[all …]
/freebsd-12.1/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/scripts/
H A Ddtest.pl133 rename("$opt_d/$pid.out", "$opt_d/failure.$n/$pid.out");
138 rename("$opt_d/$pid.err", "$opt_d/failure.$n/$pid.err");
143 rename("$opt_d/$pid.core", "$opt_d/failure.$n/$pid.core");
313 if ($pid == 0) {
351 kill(9, $pid);
415 if ($pid == 0) {
435 kill(9, $pid);
440 logmsg("[$pid]\n");
640 if ($pid == 0) {
657 kill(9, $pid);
[all …]
/freebsd-12.1/usr.sbin/autofs/
H A Dpopen.c61 struct pid { struct
62 SLIST_ENTRY(pid) next;
64 pid_t pid; argument
80 struct pid *cur, *p; in auto_popen()
81 pid_t pid; in auto_popen() local
93 cur = malloc(sizeof(struct pid)); in auto_popen()
115 switch (pid = fork()) { in auto_popen()
142 cur->pid = pid; in auto_popen()
151 struct pid *cur, *last = NULL; in auto_pclose()
153 pid_t pid; in auto_pclose() local
[all …]
/freebsd-12.1/tests/sys/file/
H A Dflock_helper.c120 while (waitpid(pid, &status, 0) != pid) { in safe_waitpid()
187 int pid; in test2() local
258 int pid; in test3() local
328 int pid; in test4() local
415 int pid; in test5() local
602 int pid; in test7() local
674 int pid; in test8() local
751 int pid; in test9() local
823 int pid; in test10() local
976 int pid; in test12() local
[all …]
/freebsd-12.1/usr.bin/mail/
H A Dpopen.c53 pid_t pid; member
59 pid_t pid; member
108 pid_t pid; in Popen() local
175 fpp->pid = pid; in register_file()
218 pid_t pid; in start_commandv() local
236 return (pid); in start_commandv()
242 pid_t pid; in run_command() local
248 if (pid < 0) in run_command()
304 for (cpp = &child; *cpp != NULL && (*cpp)->pid != pid; in findchild()
318 (*cpp)->pid = pid; in findchild()
[all …]
/freebsd-12.1/tests/sys/fifo/
H A Dfifo_open.c105 pid_t pid; in run_in_process() local
107 pid = fork(); in run_in_process()
108 if (pid < 0) { in run_in_process()
113 if (pid == 0) in run_in_process()
117 *pidp = pid; in run_in_process()
144 if (wpid == pid) in wait_and_timeout()
156 if (wpid == pid) in wait_and_timeout()
159 if (kill(pid, SIGTERM) < 0) { in wait_and_timeout()
170 if (wpid != pid) { in wait_and_timeout()
389 pid_t pid; in test_non_blocking_reader() local
[all …]
/freebsd-12.1/contrib/gdb/gdb/
H A Dpa64solib.h55 #define SOLIB_CREATE_CATCH_LOAD_HOOK(pid,tempflag, filename,cond_string) \ argument
73 #define SOLIB_HAVE_LOAD_EVENT(pid) \ argument
74 pa64_solib_have_load_event (pid)
88 #define SOLIB_LOADED_LIBRARY_PATHNAME(pid) \ argument
89 pa64_solib_loaded_library_pathname (pid)
98 #define SOLIB_HAVE_UNLOAD_EVENT(pid) \ argument
99 pa64_solib_have_unload_event (pid)
113 #define SOLIB_UNLOADED_LIBRARY_PATHNAME(pid) \ argument
114 pa64_solib_unloaded_library_pathname (pid)
125 #define SOLIB_IN_DYNAMIC_LINKER(pid,pc) \ argument
[all …]
H A Dinftarg.c114 int pid; in child_wait() local
130 if (pid == -1) in child_wait()
155 return pid_to_ptid (pid); in child_wait()
160 return pid_to_ptid (pid); in child_wait()
185 pid_t pid = PIDGET (ptid); in child_thread_alive() local
187 return (kill (pid, 0) != -1); in child_thread_alive()
205 int pid; in child_attach() local
231 attach (pid); in child_attach()
241 child_post_attach (int pid) in child_post_attach() argument
329 ptrace_him (int pid) in ptrace_him() argument
[all …]
H A Dsomsolib.h68 #define SOLIB_CREATE_CATCH_LOAD_HOOK(pid,tempflag, filename,cond_string) \ argument
88 #define SOLIB_HAVE_LOAD_EVENT(pid) \ argument
89 som_solib_have_load_event (pid)
104 #define SOLIB_LOADED_LIBRARY_PATHNAME(pid) \ argument
105 som_solib_loaded_library_pathname (pid)
115 #define SOLIB_HAVE_UNLOAD_EVENT(pid) \ argument
116 som_solib_have_unload_event (pid)
131 #define SOLIB_UNLOADED_LIBRARY_PATHNAME(pid) \ argument
132 som_solib_unloaded_library_pathname (pid)
144 #define SOLIB_IN_DYNAMIC_LINKER(pid,pc) \ argument
[all …]
H A Dsparc-nat.c140 int pid; in fetch_inferior_registers() local
155 pid = TIDGET (inferior_ptid); in fetch_inferior_registers()
156 if (pid == 0) in fetch_inferior_registers()
157 pid = PIDGET (inferior_ptid); in fetch_inferior_registers()
192 int pid; in store_inferior_registers() local
196 pid = TIDGET (inferior_ptid); in store_inferior_registers()
197 if (pid == 0) in store_inferior_registers()
198 pid = PIDGET (inferior_ptid); in store_inferior_registers()
275 int pid; in sparc_xfer_wcookie() local
277 pid = TIDGET (inferior_ptid); in sparc_xfer_wcookie()
[all …]
/freebsd-12.1/contrib/blacklist/port/
H A Dpopenve.c67 static struct pid { struct
68 struct pid *next; argument
73 pid_t pid; argument
80 static struct pid *
83 struct pid *cur; in pdes_get()
124 struct pid *old; in pdes_child()
175 cur->pid = pid; in pdes_parent()
191 struct pid *cur; in popenve()
193 pid_t pid; in popenve() local
237 pid_t pid; in pcloseve() local
[all …]
/freebsd-12.1/contrib/netbsd-tests/lib/libc/stdlib/
H A Dt_exit.c59 pid_t pid; in ATF_TC_BODY() local
62 pid = fork(); in ATF_TC_BODY()
65 if (pid == 0) { in ATF_TC_BODY()
92 pid_t pid; in ATF_TC_BODY() local
95 pid = fork(); in ATF_TC_BODY()
119 pid_t pid; in ATF_TC_BODY() local
123 pid = fork(); in ATF_TC_BODY()
125 if (pid < 0) in ATF_TC_BODY()
128 if (pid == 0) in ATF_TC_BODY()
148 pid_t pid; in ATF_TC_BODY() local
[all …]
/freebsd-12.1/contrib/amd/scripts/
H A Dctl-amd.in25 pid=`amq -p 2>/dev/null`
26 if test "$pid" != ""
28 kill $pid
35 if test "$pid" != ""
37 kill $pid
44 if test "$pid" != ""
46 kill $pid
53 if test "$pid" != ""
55 kill $pid
135 pid=`amq -p 2>/dev/null`
[all …]
/freebsd-12.1/lib/libc/gen/
H A Dpopen.c58 struct pid { struct
59 SLIST_ENTRY(pid) next;
61 pid_t pid; argument
72 struct pid *cur; in popen()
77 struct pid *p; in popen()
122 switch (pid = vfork()) { in popen()
173 cur->pid = pid; in popen()
197 struct pid *cur, *last = NULL; in pclose()
199 pid_t pid; in pclose() local
223 pid = _wait4(cur->pid, &pstat, 0, (struct rusage *)0); in pclose()
[all …]
/freebsd-12.1/tests/sys/kern/
H A Dreaper.c81 ATF_REQUIRE_EQ(child, pid); in ATF_TC_BODY()
89 ATF_REQUIRE(pid > 0 && pid != child); in ATF_TC_BODY()
128 ATF_REQUIRE_EQ(child, pid); in ATF_TC_BODY()
133 ATF_REQUIRE(pid > 0 && pid != child); in ATF_TC_BODY()
203 ATF_REQUIRE_EQ(child, pid); in ATF_TC_BODY()
298 pid_t parent, child, pid; in ATF_TC_BODY() local
634 ATF_REQUIRE(pid > 0); in ATF_TC_BODY()
635 ATF_CHECK(pid != parent); in ATF_TC_BODY()
636 ATF_CHECK(pid != child); in ATF_TC_BODY()
714 ATF_REQUIRE(pid > 0); in ATF_TC_BODY()
[all …]
/freebsd-12.1/tests/sys/kqueue/libkqueue/
H A Dproc.c40 pid_t pid; in add_and_delete() local
43 pid = fork(); in add_and_delete()
44 if (pid == 0) { in add_and_delete()
68 if (kill(pid, SIGKILL) < 0) in add_and_delete()
82 pid_t pid; in proc_track() local
97 pid = fork(); in proc_track()
98 if (pid == 0) { /* Child */ in proc_track()
251 pid_t pid; in event_trigger() local
256 pid = fork(); in event_trigger()
257 if (pid == 0) { in event_trigger()
[all …]

12345678910>>...51