Lines Matching refs:rlim_max
68 num_open.rlim_cur < num_open.rlim_max; in close_file_descriptors()
115 if(sizeof(rl.rlim_max) > sizeof(long))
119 fmt = (sizeof(rl.rlim_max) < sizeof(long))?fmt_u:fmt_lu;
140 if(rl.rlim_max == RLIM_INFINITY)
144 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max);
156 if(rl.rlim_cur != rl.rlim_max) {
173 rl.rlim_cur = rl.rlim_max;
200 if(rl.rlim_max == RLIM_INFINITY)
204 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max);
233 num_open.rlim_max = sizeof(*memchunk) * nitems;
234 msnprintf(strbuff, sizeof(strbuff), fmt, num_open.rlim_max);
263 num_open.rlim_max = rl.rlim_cur - SAFETY_MARGIN;
271 num_open.rlim_max = nitems;
276 if((size_t)(num_open.rlim_max) > ((size_t)-1) / sizeof(*fd)) {
277 msnprintf(strbuff1, sizeof(strbuff1), fmt, num_open.rlim_max);
289 msnprintf(strbuff, sizeof(strbuff), fmt, num_open.rlim_max);
291 fd = malloc(sizeof(*fd) * (size_t)(num_open.rlim_max));
294 num_open.rlim_max /= 2;
296 } while(num_open.rlim_max && !fd);
309 num_open.rlim_cur < num_open.rlim_max;
313 msnprintf(strbuff, sizeof(strbuff), fmt, num_open.rlim_max);
332 num_open.rlim_cur < num_open.rlim_max;
350 num_open.rlim_max = num_open.rlim_cur - SAFETY_MARGIN;
352 num_open.rlim_cur -= num_open.rlim_max;
358 for(num_open.rlim_cur = num_open.rlim_max;
365 msnprintf(strbuff, sizeof(strbuff), fmt, num_open.rlim_max);
370 tmpfd = realloc(fd, sizeof(*fd) * (size_t)(num_open.rlim_max));
382 msnprintf(strbuff, sizeof(strbuff), fmt, num_open.rlim_max);
401 if(num_open.rlim_max > num_open.rlim_cur) {
413 rl.rlim_cur < num_open.rlim_max;
439 msnprintf(strbuff1, sizeof(strbuff1), fmt, num_open.rlim_max);