Lines Matching defs:pid
168 /* Get an arbitrary pid's process group id */
171 pid_t pid;
180 if (uap->pid == 0) {
184 p = pfind(uap->pid);
199 * Get an arbitrary pid's session id.
203 pid_t pid;
212 if (uap->pid == 0) {
216 p = pfind(uap->pid);
375 * pid must be caller or child of caller (ESRCH)
377 * pid must be in same session (EPERM)
378 * pid can't have done an exec (EACCES)
379 * if pgid != pid
380 * there must exist some pid in same session having pgid (EPERM)
381 * pid must not be session leader (EPERM)
385 int pid; /* target process id */
407 if (uap->pid != 0 && uap->pid != curp->p_pid) {
408 if ((targp = pfind(uap->pid)) == NULL) {