Lines Matching refs:which

88 	int	which;  member
101 switch (uap->which) { in sys_getpriority()
170 int which; member
183 switch (uap->which) { in sys_setpriority()
531 u_int which; member
546 error = kern_setrlimit(td, uap->which, &lim); in osetrlimit()
552 u_int which; member
563 if (uap->which >= RLIM_NLIMITS) in ogetrlimit()
565 lim_rlimit(td, uap->which, &rl); in ogetrlimit()
585 u_int which; member
597 error = kern_setrlimit(td, uap->which, &alim); in sys_setrlimit()
637 kern_setrlimit(struct thread *td, u_int which, struct rlimit *limp) in kern_setrlimit() argument
640 return (kern_proc_setrlimit(td, td->td_proc, which, limp)); in kern_setrlimit()
644 kern_proc_setrlimit(struct thread *td, struct proc *p, u_int which, in kern_proc_setrlimit() argument
652 if (which >= RLIM_NLIMITS) in kern_proc_setrlimit()
667 alimp = &oldlim->pl_rlimit[which]; in kern_proc_setrlimit()
678 alimp = &newlim->pl_rlimit[which]; in kern_proc_setrlimit()
680 switch (which) { in kern_proc_setrlimit()
726 p->p_sysent->sv_fixlimit(limp, which); in kern_proc_setrlimit()
733 if (which == RLIMIT_STACK && in kern_proc_setrlimit()
772 u_int which; member
783 if (uap->which >= RLIM_NLIMITS) in sys_getrlimit()
785 lim_rlimit(td, uap->which, &rlim); in sys_getrlimit()
1149 lim_max(struct thread *td, int which) in lim_max() argument
1153 lim_rlimit(td, which, &rl); in lim_max()
1158 lim_max_proc(struct proc *p, int which) in lim_max_proc() argument
1162 lim_rlimit_proc(p, which, &rl); in lim_max_proc()
1171 lim_cur(struct thread *td, int which) in lim_cur() argument
1175 lim_rlimit(td, which, &rl); in lim_cur()
1180 lim_cur_proc(struct proc *p, int which) in lim_cur_proc() argument
1184 lim_rlimit_proc(p, which, &rl); in lim_cur_proc()
1193 lim_rlimit(struct thread *td, int which, struct rlimit *rlp) in lim_rlimit() argument
1198 KASSERT(which >= 0 && which < RLIM_NLIMITS, in lim_rlimit()
1200 *rlp = td->td_limit->pl_rlimit[which]; in lim_rlimit()
1202 p->p_sysent->sv_fixlimit(rlp, which); in lim_rlimit()
1206 lim_rlimit_proc(struct proc *p, int which, struct rlimit *rlp) in lim_rlimit_proc() argument
1210 KASSERT(which >= 0 && which < RLIM_NLIMITS, in lim_rlimit_proc()
1212 *rlp = p->p_limit->pl_rlimit[which]; in lim_rlimit_proc()
1214 p->p_sysent->sv_fixlimit(rlp, which); in lim_rlimit_proc()