Lines Matching refs:which
111 int dosetrlimit(struct proc *p, u_int which, struct rlimit *limp);
170 switch (uap->which) {
309 AUDIT_ARG(cmd, uap->which);
317 switch (uap->which) {
658 return (dosetrlimit(p, uap->which, &alim));
672 dosetrlimit(struct proc *p, u_int which, struct rlimit *limp)
677 int posix = (which & _RLIMIT_POSIX_FLAG) ? 1 : 0;
680 which &= ~_RLIMIT_POSIX_FLAG;
682 if (which >= RLIM_NLIMITS)
685 alimp = &p->p_rlimit[which];
702 alimp = &p->p_rlimit[which];
704 switch (which) {
927 uap->which &= ~_RLIMIT_POSIX_FLAG;
929 if (uap->which >= RLIM_NLIMITS)
931 proc_limitget(p, uap->which, &lim);
1069 proc_limitget(proc_t p, int which, struct rlimit * limp)
1072 limp->rlim_cur = p->p_rlimit[which].rlim_cur;
1073 limp->rlim_max = p->p_rlimit[which].rlim_max;