Lines Matching refs:uid
305 fork_check_maxthread(uid_t uid)
316 if ((nthreads >= maxthread - 5 && uid != 0) || nthreads >= maxthread) {
348 uid_t uid = curp->p_ucred->cr_ruid;
360 if ((error = fork_check_maxthread(uid)))
363 if ((nprocesses >= maxprocess - 5 && uid != 0) ||
375 * Increment the count of processes running with this uid.
378 count = chgproccnt(uid, 1);
379 if (uid != 0 && count > lim_cur(RLIMIT_NPROC)) {
380 (void)chgproccnt(uid, -1);
388 (void)chgproccnt(uid, -1);