Home
last modified time | relevance | path

Searched refs:getauxval (Results 1 – 20 of 20) sorted by relevance

/bionic/tests/
Dgetauxval_test.cpp24 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 …]
Dlink_test.cpp126 .table = reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR)), in TEST()
127 .size = getauxval(AT_PHNUM) in TEST()
Ddlfcn_test.cpp262 if (getauxval(AT_SYSINFO_EHDR) == 0) { in TEST()
/bionic/tests/libs/
Dpreinit_getauxval_test_helper.cpp28 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()
Dld_config_test_helper.cpp30 if (getauxval(AT_SYSINFO_EHDR) == 0) { in main()
/bionic/libc/include/sys/
Dauxv.h51 unsigned long int getauxval(unsigned long int __type) __INTRODUCED_IN(18);
/bionic/linker/
Dlinker_wrapper.cpp63 reinterpret_cast<ElfW(Phdr)*>(args.getauxval(AT_PHDR)), args.getauxval(AT_PHNUM), in __linker_init()
Dlinker_main.cpp154 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/
Dbionic_arc4random.cpp54 memcpy(buf, reinterpret_cast<char*>(getauxval(AT_RANDOM)) + at_random_bytes_consumed, n); in __libc_safe_arc4random_buf()
Dlibc_init_static.cpp116 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()
Dgetauxval.cpp51 extern "C" unsigned long getauxval(unsigned long type) { in getauxval() function
Ddl_iterate_phdr_static.cpp63 ElfW(Ehdr)* ehdr_vdso = reinterpret_cast<ElfW(Ehdr)*>(getauxval(AT_SYSINFO_EHDR)); in dl_iterate_phdr()
Dsysconf.cpp68 case _SC_CLK_TCK: return static_cast<long>(getauxval(AT_CLKTCK)); in sysconf()
76 return static_cast<long>(getauxval(AT_PAGESZ)); in sysconf()
Dlibc_init_common.cpp298 unsigned long is_AT_SECURE = getauxval(AT_SECURE); in __libc_init_AT_SECURE()
Dvdso.cpp84 uintptr_t vdso_ehdr_addr = getauxval(AT_SYSINFO_EHDR); in __libc_init_vdso()
/bionic/libc/private/
DKernelArgumentBlock.h51 unsigned long getauxval(unsigned long type) { in getauxval() function
/bionic/docs/
Dstatus.md190 * <sys/auxv.h> `getauxval`.
/bionic/libc/
DAndroid.bp732 // 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.
Dlibc.map.txt424getauxval; # introduced-arm=18 introduced-arm64=21 introduced-mips=18 introduced-mips64=21 introdu…
/bionic/tools/versioner/platforms/
Dlibc.map.txt424getauxval; # introduced-arm=18 introduced-arm64=21 introduced-mips=18 introduced-mips64=21 introdu…