• Home
  • Raw
  • Download

Lines Matching refs:rlim_cur

66   for(num_open.rlim_cur = 0;  in close_file_descriptors()
67 num_open.rlim_cur < num_open.rlim_max; in close_file_descriptors()
68 num_open.rlim_cur++) in close_file_descriptors()
69 if(fd[num_open.rlim_cur] > 0) in close_file_descriptors()
70 close(fd[num_open.rlim_cur]); in close_file_descriptors()
131 if(rl.rlim_cur == RLIM_INFINITY) in rlimit()
135 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_cur); in rlimit()
161 if(rl.rlim_cur != rl.rlim_max) { in rlimit()
164 if((rl.rlim_cur > 0) && in rlimit()
165 (rl.rlim_cur < OPEN_MAX)) { in rlimit()
167 rl.rlim_cur = OPEN_MAX; in rlimit()
178 rl.rlim_cur = rl.rlim_max; in rlimit()
197 if(rl.rlim_cur == RLIM_INFINITY) in rlimit()
201 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_cur); in rlimit()
229 num_open.rlim_cur = NUM_NEEDED; in rlimit()
231 if((rl.rlim_cur > 0) && in rlimit()
233 (rl.rlim_cur != RLIM_INFINITY) && in rlimit()
235 (rl.rlim_cur <= num_open.rlim_cur)) { in rlimit()
236 msnprintf(strbuff2, sizeof(strbuff2), fmt, rl.rlim_cur); in rlimit()
237 msnprintf(strbuff1, sizeof(strbuff1), fmt, num_open.rlim_cur); in rlimit()
314 for(num_open.rlim_cur = 0; in rlimit()
315 num_open.rlim_cur < num_open.rlim_max; in rlimit()
316 num_open.rlim_cur++) in rlimit()
317 fd[num_open.rlim_cur] = -1; in rlimit()
337 for(num_open.rlim_cur = 1; in rlimit()
338 num_open.rlim_cur < num_open.rlim_max; in rlimit()
339 num_open.rlim_cur++) { in rlimit()
341 fd[num_open.rlim_cur] = dup(fd[0]); in rlimit()
343 if(fd[num_open.rlim_cur] < 0) { in rlimit()
345 fd[num_open.rlim_cur] = -1; in rlimit()
347 msnprintf(strbuff1, sizeof(strbuff1), fmt, num_open.rlim_cur); in rlimit()
351 msnprintf(strbuff1, sizeof(strbuff), fmt, num_open.rlim_cur); in rlimit()
359 msnprintf(strbuff1, sizeof(strbuff1), fmt, num_open.rlim_cur); in rlimit()
365 for(num_open.rlim_cur = 0; in rlimit()
366 fd[num_open.rlim_cur] >= 0; in rlimit()
367 num_open.rlim_cur++) in rlimit()
368 close(fd[num_open.rlim_cur]); in rlimit()
396 num_open.rlim_cur = FD_SETSIZE - SAFETY_MARGIN; in rlimit()
397 if(num_open.rlim_max > num_open.rlim_cur) { in rlimit()
407 num_open.rlim_cur = FD_SETSIZE - SAFETY_MARGIN; in rlimit()
408 for(rl.rlim_cur = 0; in rlimit()
409 rl.rlim_cur < num_open.rlim_max; in rlimit()
410 rl.rlim_cur++) { in rlimit()
411 if((fd[rl.rlim_cur] > 0) && in rlimit()
412 ((unsigned int)fd[rl.rlim_cur] > num_open.rlim_cur)) { in rlimit()