Lines Matching refs:newrlim
12 struct rlimit newrlim; in main() local
23 newrlim.rlim_cur = oldrlim.rlim_max+1; in main()
24 newrlim.rlim_max = oldrlim.rlim_max; in main()
25 if (setrlimit(RLIMIT_NOFILE, &newrlim) == -1) in main()
38 newrlim.rlim_cur = oldrlim.rlim_max; in main()
39 newrlim.rlim_max = oldrlim.rlim_max+1; in main()
40 if (setrlimit(RLIMIT_NOFILE, &newrlim) == -1) in main()
53 newrlim.rlim_cur = oldrlim.rlim_cur / 2; in main()
54 newrlim.rlim_max = oldrlim.rlim_max; in main()
56 if (setrlimit(RLIMIT_NOFILE, &newrlim) < 0) in main()
62 if (getrlimit(RLIMIT_NOFILE, &newrlim) < 0) in main()
68 if (newrlim.rlim_cur != oldrlim.rlim_cur / 2) in main()
71 (unsigned long long)newrlim.rlim_cur, in main()
75 if (newrlim.rlim_max != oldrlim.rlim_max) in main()
78 (unsigned long long)newrlim.rlim_max, in main()
82 newrlim.rlim_cur -= 3; /* allow for stdin, stdout and stderr */ in main()
84 while (newrlim.rlim_cur-- > 0) in main()