Lines Matching defs:lim
2230 int lim, last, numfiles, oldnfiles;
2243 lim = min((int)p->p_rlimit[RLIMIT_NOFILE].rlim_cur, maxfiles);
2245 last = min(fdp->fd_nfiles, lim);
2263 if (fdp->fd_nfiles >= lim)
2269 /* Enforce lim */
2270 if (numfiles > lim)
2271 numfiles = lim;
2332 int i, lim;
2334 lim = min((int)p->p_rlimit[RLIMIT_NOFILE].rlim_cur, maxfiles);
2335 if ((i = lim - fdp->fd_nfiles) > 0 && (n -= i) <= 0)