Lines Matching defs:limp

111 int	dosetrlimit(struct proc *p, u_int which, struct rlimit *limp);
672 dosetrlimit(struct proc *p, u_int which, struct rlimit *limp)
686 if (limp->rlim_cur > limp->rlim_max)
689 if (limp->rlim_cur > alimp->rlim_max ||
690 limp->rlim_max > alimp->rlim_max)
707 if (limp->rlim_cur == RLIM_INFINITY) {
726 tv.tv_sec = (limp->rlim_cur > __INT_MAX__ ? __INT_MAX__ : limp->rlim_cur);
744 if (limp->rlim_cur > maxdmap)
745 limp->rlim_cur = maxdmap;
746 if (limp->rlim_max > maxdmap)
747 limp->rlim_max = maxdmap;
752 if (limp->rlim_cur > maxsmap ||
753 limp->rlim_max > maxsmap) {
764 if (limp->rlim_cur > maxsmap)
765 limp->rlim_cur = maxsmap;
766 if (limp->rlim_max > maxsmap)
767 limp->rlim_max = maxsmap;
776 if (limp->rlim_cur > alimp->rlim_cur) {
781 size = round_page_64(limp->rlim_cur);
784 addr = p->user_stack - round_page_64(limp->rlim_cur);
792 } else if (limp->rlim_cur < alimp->rlim_cur) {
811 round_page_64(limp->rlim_cur))) {
827 size -= round_page_64(limp->rlim_cur);
852 if (limp->rlim_cur != alimp->rlim_cur &&
853 limp->rlim_cur > (rlim_t)maxfiles) {
858 limp->rlim_cur = maxfiles;
860 if (limp->rlim_max != alimp->rlim_max &&
861 limp->rlim_max > (rlim_t)maxfiles)
862 limp->rlim_max = maxfiles;
865 if (limp->rlim_cur != alimp->rlim_cur &&
866 limp->rlim_cur > (rlim_t)maxfilesperproc) {
871 limp->rlim_cur = maxfilesperproc;
873 if (limp->rlim_max != alimp->rlim_max &&
874 limp->rlim_max > (rlim_t)maxfilesperproc)
875 limp->rlim_max = maxfilesperproc;
886 if (limp->rlim_cur > (rlim_t)maxproc)
887 limp->rlim_cur = maxproc;
888 if (limp->rlim_max > (rlim_t)maxproc)
889 limp->rlim_max = maxproc;
892 if (limp->rlim_cur > (rlim_t)maxprocperuid)
893 limp->rlim_cur = maxprocperuid;
894 if (limp->rlim_max > (rlim_t)maxprocperuid)
895 limp->rlim_max = maxprocperuid;
904 vm_map_set_user_wire_limit(current_map(), limp->rlim_cur);
909 *alimp = *limp;
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;