Searched refs:rl (Results 1 – 3 of 3) sorted by relevance
/bionic/libc/bionic/ |
D | sysconf.cpp | 44 rlimit rl; in __sysconf_rlimit() local 45 getrlimit(resource, &rl); in __sysconf_rlimit() 46 return rl.rlim_cur; in __sysconf_rlimit()
|
/bionic/tests/ |
D | unistd_test.cpp | 1135 rlimit rl; in TEST() local 1136 ASSERT_EQ(0, getrlimit(RLIMIT_STACK, &rl)); in TEST() 1137 uint64_t original_rlim_cur = rl.rlim_cur; in TEST() 1138 if (rl.rlim_cur == RLIM_INFINITY) { in TEST() 1139 rl.rlim_cur = 8 * 1024 * 1024; // Bionic reports unlimited stacks as 8MiB. in TEST() 1141 auto guard = android::base::make_scope_guard([&rl, original_rlim_cur]() { in TEST() 1142 rl.rlim_cur = original_rlim_cur; in TEST() 1143 ASSERT_EQ(0, setrlimit(RLIMIT_STACK, &rl)); in TEST() 1147 EXPECT_EQ(static_cast<long>(rl.rlim_cur / 4), sysconf(_SC_ARG_MAX)); in TEST() 1150 rl.rlim_cur = 1024; in TEST() [all …]
|
D | pthread_test.cpp | 1800 rlimit rl; in TEST() local 1801 ASSERT_EQ(0, getrlimit(RLIMIT_STACK, &rl)); in TEST() 1802 uint64_t original_rlim_cur = rl.rlim_cur; in TEST() 1803 if (rl.rlim_cur == RLIM_INFINITY) { in TEST() 1804 rl.rlim_cur = 8 * 1024 * 1024; // Bionic reports unlimited stacks as 8MiB. in TEST() 1806 EXPECT_EQ(rl.rlim_cur, stack_size); in TEST() 1808 auto guard = android::base::make_scope_guard([&rl, original_rlim_cur]() { in TEST() 1809 rl.rlim_cur = original_rlim_cur; in TEST() 1810 ASSERT_EQ(0, setrlimit(RLIMIT_STACK, &rl)); in TEST() 1816 rl.rlim_cur = rl.rlim_max = 1024; // 1KiB. We know the stack must be at least a page already. in TEST() [all …]
|