/freebsd-11.0-release/contrib/netbsd-tests/kernel/kqueue/ |
H A D | t_proc3.c | 59 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 D | redhat-ctl-amd.in | 43 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 D | newfileops_on_fork_test.c | 72 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 D | cap_test.c | 101 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 D | pthread_vfork_test.c | 47 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 D | shadow.c | 48 pid_t pid; local 50 switch (pid = fork()) { 58 waitpid(pid, &status, 0);
|
/freebsd-11.0-release/crypto/openssh/contrib/hpux/ |
H A D | egd.rc | 80 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 D | t_getlogin.c | 88 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 D | idmap.h | 94 #define IDMAP_ID_IS_EPHEMERAL(pid) \ 95 (((pid) > INT32_MAX) && ((pid) != IDMAP_SENTINEL_PID))
|
/freebsd-11.0-release/lib/libc/posix1e/ |
H A D | mac_get.c | 42 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 D | ulog_login_pseudo.c | 49 pid_t pid, wpid; local 57 switch (pid = fork()) { 70 wpid = waitpid(pid, &status, 0);
|
/freebsd-11.0-release/lib/libutil/ |
H A D | kinfo_getproc.c | 41 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 D | ktrace.c | 64 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 D | p2p-action-udhcp.sh | 26 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 D | uucplock.c | 67 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 D | ftp-proxy | 23 # 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 D | waitpid.c | 48 __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 D | dtest.pl | 123 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 D | tst.goodkey.d | 47 @counts[execname, pid, id, tid, arg0, vtimestamp ] = count();
|
/freebsd-11.0-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/drops/ |
H A D | drp.DTRACEDROP_STKSTROVERFLOW.d | 44 /progenyof($pid) && execname == "java"/
|
/freebsd-11.0-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/ |
H A D | tst.main.ksh | 48 pid\$target::main:entry
|
/freebsd-11.0-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/privs/ |
H A D | tst.providers.ksh | 57 /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 D | tst.raise1.d | 47 /pid == $1/
|
H A D | tst.raise2.d | 47 /pid == $1/
|
H A D | tst.raise3.d | 47 /pid == $1/
|