Lines Matching defs:pid
167 /* Get an arbitrary pid's process group id */
170 pid_t pid;
179 if (uap->pid == 0) {
183 p = pfind(uap->pid);
198 * Get an arbitrary pid's session id.
202 pid_t pid;
211 if (uap->pid == 0) {
215 p = pfind(uap->pid);
374 * pid must be caller or child of caller (ESRCH)
376 * pid must be in same session (EPERM)
377 * pid can't have done an exec (EACCES)
378 * if pgid != pid
379 * there must exist some pid in same session having pgid (EPERM)
380 * pid must not be session leader (EPERM)
384 int pid; /* target process id */
406 if (uap->pid != 0 && uap->pid != curp->p_pid) {
407 if ((targp = pfind(uap->pid)) == NULL) {