Searched refs:pid (Results 176 - 200 of 1046) sorted by relevance

1234567891011>>

/freebsd-11.0-release/contrib/netbsd-tests/kernel/kqueue/
H A Dt_proc3.c59 pid_t pid = 0; local
70 RL(pid = fork());
71 if (pid == 0) {
76 RL(waitpid(pid, &status, 0));
91 ATF_REQUIRE_EQ((pid_t)ke.ident, pid);
/freebsd-11.0-release/contrib/amd/scripts/
H A Dredhat-ctl-amd.in43 pid=`/usr/sbin/amq -p 2>/dev/null`
44 if [ "$pid" = "" ] ; then
45 # amq -p did not give pid, so try ps
46 pid=`ps acx 2>/dev/null | grep "amd" | sed -e 's/^ *//' -e 's/ .*//'`
48 if [ "$pid" = "" ] ; then
49 failure "amd shutdown pid"
53 kill $pid
/freebsd-11.0-release/tests/sys/file/
H A Dnewfileops_on_fork_test.c72 int pid; local
74 pid = fork();
75 if (pid < 0)
77 if (pid > 0) {
78 waitpid(pid, NULL, 0);
/freebsd-11.0-release/tools/regression/security/cap_test/
H A Dcap_test.c101 pid_t pid = fork(); local
102 if (pid < 0)
104 if (pid) {
107 while (waitpid(pid, &status, 0) != pid) {}
/freebsd-11.0-release/tools/test/pthread_vfork/
H A Dpthread_vfork_test.c47 pid_t pid, wpid; local
51 pid = vfork();
52 if (pid == 0)
54 else if (pid == -1)
57 wpid = waitpid(pid, &status, 0);
/freebsd-11.0-release/crypto/heimdal/appl/login/
H A Dshadow.c48 pid_t pid; local
50 switch (pid = fork()) {
58 waitpid(pid, &status, 0);
/freebsd-11.0-release/crypto/openssh/contrib/hpux/
H A Degd.rc80 pid=`ps -fuegd | awk '$1 == "egd" { print $2 }'`
81 if [ "X$pid" != "X" ]; then
82 if kill "$pid"; then
/freebsd-11.0-release/contrib/netbsd-tests/lib/libc/sys/
H A Dt_getlogin.c88 pid_t pid; local
91 pid = fork();
92 ATF_REQUIRE(pid >= 0);
94 if (pid == 0) {
129 pid_t pid; local
132 pid = fork();
133 ATF_REQUIRE(pid >= 0);
137 if (pid == 0) {
192 pid_t pid; local
195 pid
[all...]
/freebsd-11.0-release/sys/cddl/contrib/opensolaris/uts/common/sys/
H A Didmap.h94 #define IDMAP_ID_IS_EPHEMERAL(pid) \
95 (((pid) > INT32_MAX) && ((pid) != IDMAP_SENTINEL_PID))
/freebsd-11.0-release/lib/libc/posix1e/
H A Dmac_get.c42 extern int __mac_get_pid(pid_t pid, struct mac *mac_p);
76 mac_get_pid(pid_t pid, struct mac *label) argument
79 return (__mac_get_pid(pid, label));
/freebsd-11.0-release/lib/libulog/
H A Dulog_login_pseudo.c49 pid_t pid, wpid; local
57 switch (pid = fork()) {
70 wpid = waitpid(pid, &status, 0);
/freebsd-11.0-release/lib/libutil/
H A Dkinfo_getproc.c41 kinfo_getproc(pid_t pid) argument
51 mib[3] = pid;
65 if (kipp->ki_pid != pid)
/freebsd-11.0-release/usr.bin/ktrace/
H A Dktrace.c64 static int pid; variable
100 pid = -pid;
122 /* must have either -[Cc], a pid or a command */
123 if (clear == NOTSET && pid == 0 && argc == 0)
125 /* can't have both a pid and a command */
126 /* (note that -C sets pid to 1) */
127 if (pid != 0 && argc > 0) {
140 ops |= pid ? KTROP_CLEAR : KTROP_CLEARFILE;
142 if (ktrace(tracefile, ops, trpoints, pid) <
[all...]
/freebsd-11.0-release/contrib/wpa/wpa_supplicant/examples/
H A Dp2p-action-udhcp.sh26 kill_daemon udhcpc /var/run/udhcpc-$GIFNAME.pid
31 kill_daemon udhcpc /var/run/udhcpc-$GIFNAME.pid
32 kill_daemon udhcpd /var/run/udhcpd-$GIFNAME.pid
33 udhcpc -i $GIFNAME -p /var/run/udhcpc-$GIFNAME.pid \
41 kill_daemon udhcpd /var/run/udhcpd-$GIFNAME.pid
45 kill_daemon udhcpc /var/run/udhcpc-$GIFNAME.pid
/freebsd-11.0-release/usr.bin/tip/tip/
H A Duucplock.c67 pid_t pid; local
90 pid = atol(text_pid);
92 if (kill(pid, 0) == 0 || errno != ESRCH) {
101 ttyname, (long)pid);
110 pid = getpid();
111 (void)snprintf(text_pid, sizeof text_pid, "%10ld\n", (long)pid);
/freebsd-11.0-release/etc/rc.d/
H A Dftp-proxy23 # to the rc script. The pidfile will be named /var/run/<$name>.pid,
26 # The method used to determine the pid is rather hacky; grep ps output to
37 # Determine the pid.
38 ps_pid=`ps ax -o pid= -o command= | grep $cmd_string | grep -e "$flag_string" | grep -v grep | awk '{ print $1 }'`
40 echo $ps_pid > ${pidfile:-"/var/run/$name.pid"}
68 # Define a unique pid file name.
69 pidfile="/var/run/ftp-proxy.$i.pid"
/freebsd-11.0-release/lib/libc/gen/
H A Dwaitpid.c48 __waitpid(pid_t pid, int *istat, int options) argument
52 __libc_interposing[INTERPOS_wait4])(pid, istat, options, NULL));
/freebsd-11.0-release/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/scripts/
H A Ddtest.pl123 if (-f "$opt_d/$pid.core") {
124 print README "; see $pid.core\n";
132 if (-f "$opt_d/$pid.out") {
133 rename("$opt_d/$pid.out", "$opt_d/failure.$n/$pid.out");
137 if (-f "$opt_d/$pid.err") {
138 rename("$opt_d/$pid.err", "$opt_d/failure.$n/$pid.err");
142 if (-f "$opt_d/$pid.core") {
143 rename("$opt_d/$pid
[all...]
/freebsd-11.0-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/aggs/
H A Dtst.goodkey.d47 @counts[execname, pid, id, tid, arg0, vtimestamp ] = count();
/freebsd-11.0-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/drops/
H A Ddrp.DTRACEDROP_STKSTROVERFLOW.d44 /progenyof($pid) && execname == "java"/
/freebsd-11.0-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/
H A Dtst.main.ksh48 pid\$target::main:entry
/freebsd-11.0-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/privs/
H A Dtst.providers.ksh57 /err == 0 && progenyof(\$pid) && !seen["provider"]/ \
66 /progenyof(\$pid)/ \
72 /progenyof(\$pid)/ \
115 /progenyof(\$pid)/
/freebsd-11.0-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/raise/
H A Dtst.raise1.d47 /pid == $1/
H A Dtst.raise2.d47 /pid == $1/
H A Dtst.raise3.d47 /pid == $1/

Completed in 336 milliseconds

1234567891011>>