Searched refs:rlim (Results 1 – 5 of 5) sorted by relevance
34 struct rlimit rlim; in main() local75 rlim.rlim_cur = nfiles + 10; in main()76 rlim.rlim_max = nfiles + 10; in main()77 if (setrlimit(RLIMIT_NOFILE, &rlim)) { in main()78 fprintf(stderr, "Unable to raise RLIMIT_NOFILE to %ld\n", rlim.rlim_cur); in main()
247 struct rlimit rlim; in main() local312 rlim.rlim_cur = 8192; in main()313 rlim.rlim_max = 8192; in main()314 if (setrlimit(RLIMIT_NOFILE, &rlim) == -1) { in main()
331 rlimit rlim; in IncreaseThreadPriority() local332 int result = getrlimit(RLIMIT_NICE, &rlim); in IncreaseThreadPriority()333 if (result == 0 && rlim.rlim_cur == 40) { in IncreaseThreadPriority()
315 struct rlimit rlim; in TEST_F() local316 ASSERT_EQ(getrlimit(RLIMIT_NOFILE, &rlim), 0); in TEST_F()317 for (int i = 0; i <= rlim.rlim_cur + 1; i++) { in TEST_F()
1255 struct rlimit rlim = { in seccomp_fork_rlimit() local1260 if (setrlimit(RLIMIT_AS, &rlim) != 0) { in seccomp_fork_rlimit()