Home
last modified time | relevance | path

Searched refs:rlim_cur (Results 1 – 9 of 9) sorted by relevance

/bionic/tests/
Dsys_resource_test.cpp56 ASSERT_EQ(l32_.rlim_cur, pr_l32_.rlim_cur); in CheckResourceLimits()
57 ASSERT_EQ(l64_.rlim_cur, pr_l64_.rlim_cur); in CheckResourceLimits()
59 if (l64_.rlim_cur == RLIM64_INFINITY) { in CheckResourceLimits()
60 ASSERT_EQ(RLIM_INFINITY, l32_.rlim_cur); in CheckResourceLimits()
62 ASSERT_EQ(l64_.rlim_cur, l32_.rlim_cur); in CheckResourceLimits()
87 l32_.rlim_cur = 123U; in TEST_F()
90 ASSERT_EQ(123U, l32_.rlim_cur); in TEST_F()
94 l64_.rlim_cur = 456U; in TEST_F()
97 ASSERT_EQ(456U, l64_.rlim_cur); in TEST_F()
101 pr_l32_.rlim_cur = pr_l32_.rlim_max; in TEST_F()
[all …]
Dunistd_test.cpp1137 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()
1142 rl.rlim_cur = original_rlim_cur; 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()
1157 rl.rlim_cur = 128 * sysconf(_SC_PAGE_SIZE); in TEST()
Dpthread_test.cpp1802 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()
1809 rl.rlim_cur = original_rlim_cur; in TEST()
1816 rl.rlim_cur = rl.rlim_max = 1024; // 1KiB. We know the stack must be at least a page already. in TEST()
1830 rl.rlim_cur = rl.rlim_max = 6666; // Not a whole number of pages. in TEST()
/bionic/libc/bionic/
Dlegacy_32_bit_support.cpp90 n64.rlim_cur = (n32->rlim_cur == RLIM_INFINITY) ? RLIM64_INFINITY : n32->rlim_cur; in prlimit()
99 o32->rlim_cur = (o64.rlim_cur == RLIM64_INFINITY) ? RLIM_INFINITY : o64.rlim_cur; in prlimit()
Dpthread_attr.cpp197 if (stack_limit.rlim_cur == RLIM_INFINITY) { in __pthread_attr_getstack_main_thread()
198 stack_limit.rlim_cur = 8 * 1024 * 1024; in __pthread_attr_getstack_main_thread()
214 *stack_size = stack_limit.rlim_cur; in __pthread_attr_getstack_main_thread()
Dsysconf.cpp46 return rl.rlim_cur; in __sysconf_rlimit()
Dndk_cruft.cpp289 return r.rlim_cur; in getdtablesize()
/bionic/libc/kernel/uapi/linux/
Dresource.h46 __kernel_ulong_t rlim_cur; member
51 __u64 rlim_cur; member
/bionic/tests/headers/posix/
Dsys_resource_h.c48 STRUCT_MEMBER(struct rlimit, rlim_t, rlim_cur); in sys_resource_h()