Lines Matching refs:newrlim
15 struct rlimit64 newrlim; in main() local
26 newrlim.rlim_cur = oldrlim.rlim_max+1; in main()
27 newrlim.rlim_max = oldrlim.rlim_max; in main()
28 if (setrlimit64(RLIMIT_NOFILE, &newrlim) == -1) in main()
41 newrlim.rlim_cur = oldrlim.rlim_max; in main()
42 newrlim.rlim_max = oldrlim.rlim_max+1; in main()
43 if (setrlimit64(RLIMIT_NOFILE, &newrlim) == -1) in main()
56 newrlim.rlim_cur = oldrlim.rlim_cur / 2; in main()
57 newrlim.rlim_max = oldrlim.rlim_max; in main()
59 if (setrlimit64(RLIMIT_NOFILE, &newrlim) < 0) in main()
65 if (getrlimit64(RLIMIT_NOFILE, &newrlim) < 0) in main()
71 if (newrlim.rlim_cur != oldrlim.rlim_cur / 2) in main()
74 (unsigned long long)newrlim.rlim_cur, in main()
78 if (newrlim.rlim_max != oldrlim.rlim_max) in main()
81 (unsigned long long)newrlim.rlim_max, in main()
85 newrlim.rlim_cur -= 3; /* allow for stdin, stdout and stderr */ in main()
87 while (newrlim.rlim_cur-- > 0) in main()