Lines Matching defs:pid
150 /* Get an arbitary pid's process group id */
153 pid_t pid;
162 if (uap->pid == 0) {
166 p = pfind(uap->pid);
181 * Get an arbitary pid's session id.
185 pid_t pid;
194 if (uap->pid == 0) {
198 p = pfind(uap->pid);
378 * pid must be caller or child of caller (ESRCH)
380 * pid must be in same session (EPERM)
381 * pid can't have done an exec (EACCES)
382 * if pgid != pid
383 * there must exist some pid in same session having pgid (EPERM)
384 * pid must not be session leader (EPERM)
388 int pid; /* target process id */
410 if (uap->pid != 0 && uap->pid != curp->p_pid) {
411 if ((targp = pfind(uap->pid)) == NULL) {