Lines Matching refs:resource
47 test_getrlimit (int resource, rlim_t exp_cur, rlim_t exp_max) in test_getrlimit() argument
50 TEST_VERIFY_EXIT (getrlimit (resource, &r) == 0); in test_getrlimit()
56 test_getrlimit64 (int resource, rlim64_t exp_cur, rlim64_t exp_max) in test_getrlimit64() argument
59 TEST_VERIFY_EXIT (getrlimit64 (resource, &r) == 0); in test_getrlimit64()
65 test_prlimit_get (int resource, rlim_t exp_cur, rlim_t exp_max) in test_prlimit_get() argument
68 TEST_VERIFY_EXIT (prlimit (0, resource, NULL, &r) == 0); in test_prlimit_get()
74 test_prlimit64_get (int resource, rlim64_t exp_cur, rlim64_t exp_max) in test_prlimit64_get() argument
77 TEST_COMPARE (prlimit64 (0, resource, NULL, &r), 0); in test_prlimit64_get()
83 test_setrlimit (int resource, rlim_t new_cur, rlim_t new_max) in test_setrlimit() argument
86 TEST_COMPARE (setrlimit (resource, &r), 0); in test_setrlimit()
90 test_setrlimit64 (int resource, rlim64_t new_cur, rlim64_t new_max) in test_setrlimit64() argument
93 TEST_COMPARE (setrlimit64 (resource, &r), 0); in test_setrlimit64()
97 test_prlimit_set (int resource, rlim_t new_cur, rlim_t new_max) in test_prlimit_set() argument
100 TEST_COMPARE (prlimit (0, resource, &r, NULL), 0); in test_prlimit_set()
104 test_prlimit64_set (int resource, rlim64_t new_cur, rlim64_t new_max) in test_prlimit64_set() argument
107 TEST_COMPARE (prlimit64 (0, resource, &r, NULL), 0); in test_prlimit64_set()
113 int resource = -1; in do_test() local
123 resource = resources[i]; in do_test()
128 if (resource == -1) in do_test()
133 test_prlimit64_set (resource, PRLIMIT64_TESTVAL, PRLIMIT64_INFINITY); in do_test()
134 test_getrlimit (resource, PRLIMIT64_TESTVAL, RLIM_INFINITY); in do_test()
135 test_getrlimit64 (resource, PRLIMIT64_TESTVAL, RLIM64_INFINITY); in do_test()
136 test_prlimit_get (resource, PRLIMIT64_TESTVAL, RLIM_INFINITY); in do_test()
137 test_prlimit64_get (resource, PRLIMIT64_TESTVAL, RLIM64_INFINITY); in do_test()
140 test_prlimit64_set (resource, PRLIMIT64_INFINITY, PRLIMIT64_INFINITY); in do_test()
141 test_getrlimit (resource, RLIM_INFINITY, RLIM_INFINITY); in do_test()
142 test_getrlimit64 (resource, RLIM64_INFINITY, RLIM64_INFINITY); in do_test()
143 test_prlimit_get (resource, RLIM_INFINITY, RLIM_INFINITY); in do_test()
144 test_prlimit64_get (resource, RLIM64_INFINITY, RLIM64_INFINITY); in do_test()
147 test_setrlimit (resource, PRLIMIT64_TESTVAL, RLIM_INFINITY); in do_test()
148 test_prlimit64_get (resource, PRLIMIT64_TESTVAL, PRLIMIT64_INFINITY); in do_test()
151 test_setrlimit (resource, RLIM_INFINITY, RLIM_INFINITY); in do_test()
152 test_prlimit64_get (resource, PRLIMIT64_INFINITY, PRLIMIT64_INFINITY); in do_test()
155 test_setrlimit64 (resource, PRLIMIT64_TESTVAL, RLIM64_INFINITY); in do_test()
156 test_prlimit64_get (resource, PRLIMIT64_TESTVAL, PRLIMIT64_INFINITY); in do_test()
159 test_setrlimit64 (resource, RLIM64_INFINITY, RLIM64_INFINITY); in do_test()
160 test_prlimit64_get (resource, PRLIMIT64_INFINITY, PRLIMIT64_INFINITY); in do_test()
163 test_prlimit_set (resource, RLIM_INFINITY, RLIM_INFINITY); in do_test()
164 test_prlimit64_get (resource, PRLIMIT64_INFINITY, PRLIMIT64_INFINITY); in do_test()
167 test_prlimit_set (resource, PRLIMIT64_TESTVAL, RLIM_INFINITY); in do_test()
168 test_prlimit64_get (resource, PRLIMIT64_TESTVAL, PRLIMIT64_INFINITY); in do_test()