Searched refs:getauxval (Results 1 – 20 of 20) sorted by relevance
/bionic/tests/ |
D | getauxval_test.cpp | 24 TEST(getauxval, expected_values) { in TEST() argument 25 ASSERT_EQ(0UL, getauxval(AT_SECURE)); in TEST() 26 ASSERT_EQ(getuid(), getauxval(AT_UID)); in TEST() 27 ASSERT_EQ(geteuid(), getauxval(AT_EUID)); in TEST() 28 ASSERT_EQ(getgid(), getauxval(AT_GID)); in TEST() 29 ASSERT_EQ(getegid(), getauxval(AT_EGID)); in TEST() 30 ASSERT_EQ(static_cast<unsigned long>(getpagesize()), getauxval(AT_PAGESZ)); in TEST() 32 ASSERT_NE(0UL, getauxval(AT_PHDR)); in TEST() 33 ASSERT_NE(0UL, getauxval(AT_PHNUM)); in TEST() 34 ASSERT_NE(0UL, getauxval(AT_ENTRY)); in TEST() [all …]
|
D | link_test.cpp | 126 .table = reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR)), in TEST() 127 .size = getauxval(AT_PHNUM) in TEST()
|
D | dlfcn_test.cpp | 262 if (getauxval(AT_SYSINFO_EHDR) == 0) { in TEST()
|
/bionic/tests/libs/ |
D | preinit_getauxval_test_helper.cpp | 28 g_AT_RANDOM = getauxval(AT_RANDOM); in preinit_ctor() 29 g_AT_PAGESZ = getauxval(AT_PAGESZ); in preinit_ctor() 36 CHECK(getauxval(AT_RANDOM) == g_AT_RANDOM); in main() 37 CHECK(getauxval(AT_PAGESZ) == g_AT_PAGESZ); in main()
|
D | ld_config_test_helper.cpp | 30 if (getauxval(AT_SYSINFO_EHDR) == 0) { in main()
|
/bionic/libc/include/sys/ |
D | auxv.h | 51 unsigned long int getauxval(unsigned long int __type) __INTRODUCED_IN(18);
|
/bionic/linker/ |
D | linker_wrapper.cpp | 63 reinterpret_cast<ElfW(Phdr)*>(args.getauxval(AT_PHDR)), args.getauxval(AT_PHNUM), in __linker_init()
|
D | linker_main.cpp | 154 ElfW(Ehdr)* ehdr_vdso = reinterpret_cast<ElfW(Ehdr)*>(getauxval(AT_SYSINFO_EHDR)); in add_vdso() 227 result.phdr = reinterpret_cast<const ElfW(Phdr)*>(getauxval(AT_PHDR)); in get_executable_info() 228 result.phdr_count = getauxval(AT_PHNUM); in get_executable_info() 229 result.entry_point = getauxval(AT_ENTRY); in get_executable_info() 338 if (!getauxval(AT_SECURE)) { 597 ElfW(Addr) linker_addr = getauxval(AT_BASE); 603 reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR)), getauxval(AT_PHNUM), 660 if (getauxval(AT_ENTRY) == reinterpret_cast<uintptr_t>(&_start)) {
|
/bionic/libc/bionic/ |
D | bionic_arc4random.cpp | 54 memcpy(buf, reinterpret_cast<char*>(getauxval(AT_RANDOM)) + at_random_bytes_consumed, n); in __libc_safe_arc4random_buf()
|
D | libc_init_static.cpp | 116 ElfW(Phdr)* phdr_start = reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR)); in apply_gnu_relro() 117 unsigned long int phdr_ct = getauxval(AT_PHNUM); in apply_gnu_relro() 137 ElfW(Phdr)* phdr_start = reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR)); in layout_static_tls() 138 size_t phdr_ct = getauxval(AT_PHNUM); in layout_static_tls()
|
D | getauxval.cpp | 51 extern "C" unsigned long getauxval(unsigned long type) { in getauxval() function
|
D | dl_iterate_phdr_static.cpp | 63 ElfW(Ehdr)* ehdr_vdso = reinterpret_cast<ElfW(Ehdr)*>(getauxval(AT_SYSINFO_EHDR)); in dl_iterate_phdr()
|
D | sysconf.cpp | 68 case _SC_CLK_TCK: return static_cast<long>(getauxval(AT_CLKTCK)); in sysconf() 76 return static_cast<long>(getauxval(AT_PAGESZ)); in sysconf()
|
D | libc_init_common.cpp | 298 unsigned long is_AT_SECURE = getauxval(AT_SECURE); in __libc_init_AT_SECURE()
|
D | vdso.cpp | 84 uintptr_t vdso_ehdr_addr = getauxval(AT_SYSINFO_EHDR); in __libc_init_vdso()
|
/bionic/libc/private/ |
D | KernelArgumentBlock.h | 51 unsigned long getauxval(unsigned long type) { in getauxval() function
|
/bionic/docs/ |
D | status.md | 190 * <sys/auxv.h> `getauxval`.
|
/bionic/libc/ |
D | Android.bp | 732 // The data that backs getauxval is initialized in the libc init 736 "bionic/getauxval.cpp", 738 // These require getauxval, which isn't available on older platforms.
|
D | libc.map.txt | 424 …getauxval; # introduced-arm=18 introduced-arm64=21 introduced-mips=18 introduced-mips64=21 introdu…
|
/bionic/tools/versioner/platforms/ |
D | libc.map.txt | 424 …getauxval; # introduced-arm=18 introduced-arm64=21 introduced-mips=18 introduced-mips64=21 introdu…
|