Lines Matching refs:pid
228 * Description: Get an arbitary pid's process group id
230 * Parameters: uap->pid The target pid
248 if (uap->pid == 0)
251 if ((pt = proc_find(uap->pid)) == 0)
265 * Description: Get an arbitary pid's session leaders process group ID
267 * Parameters: uap->pid The target pid
286 if (uap->pid == 0)
289 if ((pt = proc_find(uap->pid)) == 0)
553 * Parameters: uap->pid Process to change
557 * ESRCH pid is not the caller or a child of
565 * EPERM pid and pgid are not the same, and
576 * If the target pid is 0, the pid of the calling process is
577 * substituted as the new target; if pgid is 0, the target pid
598 if (uap->pid != 0 && uap->pid != curp->p_pid) {
599 if ((targp = proc_find(uap->pid)) == 0 || !inferior(targp)) {
1464 * identity of the process represented by the pid argument.
1476 AUDIT_ARG(pid, uap->pid);
1492 * id passed in the pid argument.
1499 target_proc = proc_find(uap->pid);
2093 AUDIT_ARG(pid, uap->pid);
2095 if (uap->pid == LCID_PROC_SELF) { /* Create/Join/Leave */
2098 p = proc_find(uap->pid);
2105 error = mac_proc_check_setlcid(p0, p, uap->pid, uap->lcid);
2134 if (uap->pid != LCID_PROC_SELF) {
2198 AUDIT_ARG(pid, uap->pid);
2199 if (uap->pid == LCID_PROC_SELF) {
2202 p = proc_find(uap->pid);
2209 error = mac_proc_check_getlcid(p0, p, uap->pid);