Home
last modified time | relevance | path

Searched refs:sysconf (Results 1 – 25 of 38) sorted by relevance

12

/bionic/tests/
Dsys_sysinfo_test.cpp25 ASSERT_EQ(sysconf(_SC_NPROCESSORS_ONLN), nprocs); in TEST()
29 ASSERT_EQ(sysconf(_SC_NPROCESSORS_CONF), nprocs_conf); in TEST()
35 ASSERT_EQ(sysconf(_SC_PHYS_PAGES), phys_pages); in TEST()
38 ASSERT_GE(phys_pages, sysconf(_SC_AVPHYS_PAGES)); in TEST()
Dunistd_test.cpp63 uintptr_t mask = sysconf(_SC_PAGE_SIZE) - 1; in page_align()
80 new_break = page_align(reinterpret_cast<uintptr_t>(initial_break) + sysconf(_SC_PAGE_SIZE)); in TEST()
940 long ret = sysconf(option); in VerifySysconf()
945 TEST(UNISTD_TEST, sysconf) { in TEST() argument
976 EXPECT_EQ(sysconf(_SC_IOV_MAX), sysconf(_SC_UIO_MAXIOV)); in TEST()
980 [](long v){return v == sysconf(_SC_PAGESIZE) && errno == 0 && v == getpagesize();}); in TEST()
1108 ASSERT_EQ(online_cpus, sysconf(_SC_NPROCESSORS_ONLN)); in TEST()
1129 EXPECT_EQ(static_cast<long>(rl.rlim_cur / 4), sysconf(_SC_ARG_MAX)); in TEST()
1136 EXPECT_EQ(static_cast<long>(32 * sysconf(_SC_PAGE_SIZE)), sysconf(_SC_ARG_MAX)); in TEST()
1139 rl.rlim_cur = 128 * sysconf(_SC_PAGE_SIZE); in TEST()
[all …]
Dsys_mman_test.cpp100 size_t pagesize = sysconf(_SC_PAGESIZE); in TEST()
136 size_t pagesize = sysconf(_SC_PAGESIZE); in TEST()
179 size_t pagesize = sysconf(_SC_PAGESIZE); in TEST()
200 size_t pagesize = sysconf(_SC_PAGESIZE); in TEST()
Dbuffer_tests.cpp362 size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); in RunSingleBufferOverreadTest()
383 size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); in RunSrcDstBufferOverreadTest()
413 size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); in RunCmpBufferOverreadTest()
Dleak_test.cpp131 const int thread_count = (sysconf(_SC_NPROCESSORS_CONF) > 2) ? 100 : 50; in TEST()
Dsys_prctl_test.cpp37 size_t page_size = static_cast<size_t>(sysconf(_SC_PAGESIZE)); in TEST()
Dbionic_allocator_test.cpp62 static size_t kPageSize = sysconf(_SC_PAGE_SIZE);
Dsemaphore_test.cpp42 ASSERT_EQ(SEM_VALUE_MAX, sysconf(_SC_SEM_VALUE_MAX)); in TEST()
Dgrp_pwd_test.cpp371 long size = sysconf(_SC_GETPW_R_SIZE_MAX); in TEST()
791 long size = sysconf(_SC_GETGR_R_SIZE_MAX); in TEST()
Dmalloc_test.cpp333 size_t pagesize = sysconf(_SC_PAGESIZE); in TEST()
354 size_t pagesize = sysconf(_SC_PAGESIZE); in TEST()
Dstring_test.cpp170 …glob_ptr = reinterpret_cast<Character*>(memalign(sysconf(_SC_PAGESIZE), 2 * sizeof(Character) * MA… in StringTestState()
171 …glob_ptr1 = reinterpret_cast<Character*>(memalign(sysconf(_SC_PAGESIZE), 2 * sizeof(Character) * M… in StringTestState()
172 …glob_ptr2 = reinterpret_cast<Character*>(memalign(sysconf(_SC_PAGESIZE), 2 * sizeof(Character) * M… in StringTestState()
Dpthread_test.cpp62 int sysconf_max = sysconf(_SC_THREAD_KEYS_MAX); in TEST()
2831 const auto kPageSize = sysconf(_SC_PAGE_SIZE); in TEST()
/bionic/libc/include/bits/
Dsysconf.h193 long sysconf(int __name);
/bionic/linker/
Dlinker_block_allocator_test.cpp60 static size_t kPageSize = sysconf(_SC_PAGE_SIZE);
/bionic/libc/bionic/
Dsysconf.cpp49 long sysconf(int name) { in sysconf() function
Dndk_cruft.cpp286 return sysconf(_SC_OPEN_MAX); in getdtablesize()
/bionic/libc/include/
Dunistd.h289 return sysconf(_SC_PAGESIZE); in getpagesize()
/bionic/benchmarks/linker_relocation/gen/
Dliblinker_reloc_bench_081.S263 CALL(sysconf)
Dliblinker_reloc_bench_024.S341 CALL(sysconf)
Dliblinker_reloc_bench_008.S349 CALL(sysconf)
Dliblinker_reloc_bench_076.S323 CALL(sysconf)
Dliblinker_reloc_bench_095.S67 CALL(sysconf)
Dliblinker_reloc_bench_003.S1193 CALL(sysconf)
/bionic/tests/headers/posix/
Dunistd_h.c367 FUNCTION(sysconf, long (*f)(int)); in unistd_h()
/bionic/libc/tools/
Dposix-2013.txt1040 sysconf

12