Lines Matching defs:pid
113 procfs_path, (int)P->pid);
146 procfs_path, (int)P->pid);
177 return (proc_get_cred(P->pid, pcrp, ngroups));
184 return (proc_get_secflags(P->pid, psf));
193 pp = proc_get_priv(P->pid);
206 if (proc_get_psinfo(P->pid, psinfo) == -1)
255 * previous information about the /proc/<pid>/object/a.out file.
281 "%s/%d/path/a.out", procfs_path, (int)P->pid);
293 "%s/%d/object/a.out", procfs_path, (int)P->pid);
304 "%s/%d/path/cwd", procfs_path, (int)P->pid);
319 return (proc_get_ldt(P->pid, pldt, nldt));
439 pid_t pid;
455 if ((pid = fork1()) == -1) {
461 if (pid == 0) { /* child process */
495 P->pid = pid;
505 * Open the /proc/pid files.
508 procfs_path, (int)pid);
680 (void) kill(pid, SIGKILL);
756 * pid: UNIX process ID.
766 Pgrab(pid_t pid, int flags, int *perr)
775 * PGRAB_RDONLY means that we do not open the /proc/<pid>/control file,
808 * Open the /proc/pid files
811 procfs_path, (int)pid);
897 P->pid = pid;
955 if (pid == getpid()) {
1505 procfs_path, (int)P->pid);
1665 dprintf("Prelease: releasing handle %p PS_DEAD of pid %d\n",
1666 (void *)P, (int)P->pid);
1679 dprintf("Prelease: releasing handle %p pid %d\n",
1680 (void *)P, (int)P->pid);
1701 (void) kill(P->pid, SIGKILL);
2876 * prheader_t at the start (/proc/pid/lstatus or /proc/pid/lpsinfo).
2977 * harder: the /proc/pid/lstatus file has the array of LWP structs.
3205 * Open the /proc/<pid>/lwp/<lwpid> files
3208 procfs_path, (int)P->pid, (int)lwpid);
3930 Pgrab_ops(pid_t pid, void *data, const ps_ops_t *ops, int flags)
3940 P->pid = pid;