/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt/ |
H A D | tst.andpid.ksh | 37 pid\$target::mutex_lock_impl:
|
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ustack/ |
H A D | tst.depth.ksh | 44 pid\$target:::entry, 45 pid\$target:::return, 46 pid\$target:a.out::, 49 /pid == \$target/
|
/freebsd-11-stable/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-stable/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-stable/crypto/openssh/openbsd-compat/ |
H A D | port-solaris.h | 25 void solaris_contract_post_fork_parent(pid_t pid);
|
/freebsd-11-stable/contrib/llvm-project/lldb/tools/driver/ |
H A D | Platform.cpp | 41 int kill(pid_t pid, int sig) { argument 43 if (pid == getpid())
|
/freebsd-11-stable/usr.bin/login/ |
H A D | login_audit.c | 69 pid_t pid = getpid(); local 87 auinfo.ai_asid = pid; 96 if ((tok = au_to_subject32(uid, geteuid(), getegid(), uid, gid, pid, 97 pid, &tid)) == NULL) 121 pid_t pid = getpid(); local 141 pid, -1, &tid)) == NULL) 148 gid, pid, pid, &tid)) == NULL) 177 pid_t pid = getpid(); local 193 if ((tok = au_to_subject32(uid, geteuid(), getegid(), uid, gid, pid, [all...] |
/freebsd-11-stable/contrib/amd/amd/ |
H A D | sched.c | 55 int pid; /* Process ID of job */ member in struct:pjob 132 if ((p->pid = background())) { 162 p->pid = 0; 256 int pid; local 259 while ((pid = waitpid((pid_t) -1, &w, WNOHANG)) > 0) { 261 while ((pid = wait3( &w, WNOHANG, (struct rusage *) NULL)) > 0) { 267 pid, WTERMSIG(w)); 270 pid, WEXITSTATUS(w)); 275 if (p->pid == pid) { [all...] |
/freebsd-11-stable/tests/sys/audit/ |
H A D | miscellaneous.c | 39 static pid_t pid; variable 60 pid = getpid(); 61 snprintf(miscreg, sizeof(miscreg), "audit.*%d.*return,failure", pid); 84 pid = getpid(); 85 snprintf(miscreg, sizeof(miscreg), "sysarch.*%d.*return,success", pid); 151 pid = getpid(); 152 snprintf(miscreg, sizeof(miscreg), "sysarch.*%d.*return,failure", pid); 183 pid = getpid(); 184 snprintf(miscreg, sizeof(miscreg), "sysctl.*%d.*return,success", pid); 206 pid [all...] |
/freebsd-11-stable/lib/libproc/ |
H A D | proc_util.c | 73 if (ptrace(PT_CONTINUE, phdl->pid, (caddr_t)(uintptr_t)1, pending) != 0) 89 kill(phdl->pid, SIGKILL); 92 if (ptrace(PT_DETACH, phdl->pid, 0, 0) != 0 && errno == ESRCH) 95 kill(phdl->pid, SIGSTOP); 96 waitpid(phdl->pid, &status, WUNTRACED); 97 ptrace(PT_DETACH, phdl->pid, 0, 0); 98 kill(phdl->pid, SIGCONT); 144 return (phdl->pid); 154 if (waitpid(phdl->pid, &status, WUNTRACED) < 0) { 199 if (ptrace(PT_IO, phdl->pid, (caddr_ [all...] |
/freebsd-11-stable/usr.bin/truss/ |
H A D | setup.c | 78 pid_t pid; local 80 pid = vfork(); 81 if (pid == -1) 83 if (pid == 0) { /* Child */ 90 if (waitpid(pid, NULL, 0) < 0) 93 new_proc(info, pid, 0); 100 start_tracing(struct trussinfo *info, pid_t pid) argument 106 ret = ptrace(PT_ATTACH, pid, NULL, 0); 112 if (waitpid(pid, NULL, 0) < 0) 115 new_proc(info, pid, 132 detach_proc(pid_t pid) argument 151 find_abi(pid_t pid) argument 236 new_proc(struct trussinfo *info, pid_t pid, lwpid_t lwpid) argument 290 find_proc(struct trussinfo *info, pid_t pid) argument 306 find_thread(struct trussinfo *info, pid_t pid, lwpid_t lwpid) argument 328 find_exit_thread(struct trussinfo *info, pid_t pid) argument [all...] |
/freebsd-11-stable/sys/amd64/linux/ |
H A D | linux_ptrace.c | 203 linux_ptrace_peek(struct thread *td, pid_t pid, void *addr, void *data) argument 207 error = kern_ptrace(td, PT_READ_I, pid, addr, 0); 216 linux_ptrace_setoptions(struct thread *td, pid_t pid, l_ulong data) argument 260 return (kern_ptrace(td, PT_SET_EVENT_MASK, pid, &mask, sizeof(mask))); 264 linux_ptrace_getregs(struct thread *td, pid_t pid, void *data) argument 271 error = kern_ptrace(td, PT_GETREGS, pid, &b_reg, 0); 281 error = kern_ptrace(td, PT_LWPINFO, pid, &lwpinfo, sizeof(lwpinfo)); 294 linux_ptrace_setregs(struct thread *td, pid_t pid, void *data) argument 304 error = kern_ptrace(td, PT_SETREGS, pid, &b_reg, 0); 309 linux_ptrace_getregset(struct thread *td, pid_t pid, l_ulon argument 325 linux_ptrace_seize(struct thread *td, pid_t pid, l_ulong addr, l_ulong data) argument 336 pid_t pid; local [all...] |
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/gen/posix_spawn/ |
H A D | t_fileactions.c | 98 pid_t pid; local 114 err = posix_spawn(&pid, "/bin/cat", &fa, NULL, args, NULL); 120 waitpid(pid, &status, 0); 140 err = posix_spawn(&pid, "/bin/cat", &fa, NULL, args, NULL); 146 waitpid(pid, &status, 0); 166 err = posix_spawn(&pid, "/bin/cat", &fa, NULL, args, NULL); 172 waitpid(pid, &status, 0); 194 pid_t pid; local 208 err = posix_spawn(&pid, "/bin/cat", &fa, NULL, args, NULL); 213 waitpid(pid, 229 pid_t pid; local 268 pid_t pid; local 303 pid_t pid; local 348 pid_t pid; local [all...] |
/freebsd-11-stable/contrib/netbsd-tests/kernel/ |
H A D | t_lockf.c | 126 pid_t *pid; local 144 pid = malloc(nprocs * sizeof(pid_t)); 148 pid[i] = fork(); 149 switch (pid[i]) { 172 ATF_REQUIRE_MSG(ptrace(PT_ATTACH, pid[i], 0, 0) >= 0, 173 "ptrace attach %d", pid[i]); local 174 ATF_REQUIRE_MSG(waitpid(pid[i], &status, WUNTRACED) >= 0, 177 ATF_REQUIRE_MSG(ptrace(PT_DETACH, pid[i], (caddr_t)1, 179 "ptrace detach %d", pid[i]); local 186 kill(pid[ 224 pid_t pid; local [all...] |
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/gen/ |
H A D | t_alarm.c | 81 pid_t pid; local 90 pid = fork(); 91 ATF_REQUIRE(pid >= 0); 93 if (pid == 0) {
|
H A D | t_getgrent.c | 128 pid_t pid; local 139 pid = fork(); 140 ATF_REQUIRE(pid >= 0); 142 if (pid == 0) {
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_getsid.c | 82 pid_t csid, pid, ppid, sid; local 86 pid = fork(); 88 ATF_REQUIRE(pid >= 0); 91 if (pid == 0) {
|
H A D | t_setuid.c | 84 pid_t pid; local 89 pid = fork(); 90 ATF_REQUIRE(pid >= 0); 92 if (pid == 0) {
|
/freebsd-11-stable/bin/pkill/tests/ |
H A D | pgrep-LF_test.sh | 15 pid=`pgrep -f -L -F $pidfile $sleep` 16 if [ "$pid" = "$chpid" ]; then
|
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/proc/ |
H A D | tst.create.ksh | 39 /args[0]->p_pptr->p_pid == $child && pid == $child/
|
/freebsd-11-stable/contrib/wpa/src/utils/ |
H A D | browser-system.c | 70 pid_t pid; local 88 pid = fork(); 89 if (pid < 0) { 96 if (pid == 0) {
|
/freebsd-11-stable/contrib/pf/pflogd/ |
H A D | pidfile.c | 62 pid_t pid; local 73 (void) asprintf(&pidfile_path, "%s%s.pid", _PATH_VARRUN, basename); 85 pid = getpid(); 86 if (fprintf(f, "%ld\n", (long)pid) <= 0 || fclose(f) != 0) { 95 pidfile_pid = pid;
|
/freebsd-11-stable/lib/libc/tests/gen/ |
H A D | arc4random_test.c | 58 pid_t pid; local 67 pid = fork(); 68 ATF_REQUIRE(0 <= pid); 69 if (pid == 0) {
|
/freebsd-11-stable/tools/regression/security/cap_test/ |
H A D | cap_test_pdkill.c | 67 pid_t pid; local 82 error = pdgetpid(pd, &pid); 94 while (waitpid(pid, &status, 0) != pid) {}
|
/freebsd-11-stable/tools/regression/sockets/pr_atomic/ |
H A D | pr_atomic.c | 58 pid_t pid; local 72 pid = fork(); 73 if (pid == -1) 75 if (pid == 0) {
|