Home
last modified time | relevance | path

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

/bionic/tests/
Dgetauxval_test.cpp38 TEST(getauxval, expected_values) { in TEST() argument
40 ASSERT_EQ(0UL, getauxval(AT_SECURE)); in TEST()
41 ASSERT_EQ(getuid(), getauxval(AT_UID)); in TEST()
42 ASSERT_EQ(geteuid(), getauxval(AT_EUID)); in TEST()
43 ASSERT_EQ(getgid(), getauxval(AT_GID)); in TEST()
44 ASSERT_EQ(getegid(), getauxval(AT_EGID)); in TEST()
45 ASSERT_EQ(static_cast<unsigned long>(getpagesize()), getauxval(AT_PAGESZ)); in TEST()
47 ASSERT_NE(0UL, getauxval(AT_PHDR)); in TEST()
48 ASSERT_NE(0UL, getauxval(AT_PHNUM)); in TEST()
49 ASSERT_NE(0UL, getauxval(AT_ENTRY)); in TEST()
[all …]
/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()
/bionic/libc/include/sys/
Dauxv.h36 unsigned long int getauxval(unsigned long int type) __INTRODUCED_IN(18);
/bionic/libc/bionic/
Dlibc_init_static.cpp57 ElfW(Phdr)* phdr_start = reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR)); in apply_gnu_relro()
58 unsigned long int phdr_ct = getauxval(AT_PHNUM); in apply_gnu_relro()
Dgetauxval.cpp38 extern "C" unsigned long int getauxval(unsigned long int type) { in getauxval() function
Dbionic_arc4random.cpp60 memcpy(buf, reinterpret_cast<char*>(args.getauxval(AT_RANDOM)) + at_random_bytes_consumed, n); in __libc_safe_arc4random_buf()
Dlibc_init_common.cpp72 __libc_sysinfo = reinterpret_cast<void*>(args.getauxval(AT_SYSINFO)); in __libc_init_sysinfo()
284 bool is_AT_SECURE = getauxval(AT_SECURE); in __sanitize_environment_variables()
328 if (getauxval(AT_SECURE)) { in __libc_init_AT_SECURE()
Ddl_iterate_phdr_static.cpp64 ElfW(Ehdr)* ehdr_vdso = reinterpret_cast<ElfW(Ehdr)*>(getauxval(AT_SYSINFO_EHDR)); in dl_iterate_phdr()
Dsysconf.cpp61 case _SC_CLK_TCK: return static_cast<long>(getauxval(AT_CLKTCK)); in sysconf()
69 return static_cast<long>(getauxval(AT_PAGESZ)); in sysconf()
Dvdso.cpp59 uintptr_t vdso_ehdr_addr = args.getauxval(AT_SYSINFO_EHDR); in __libc_init_vdso()
Dgetentropy_linux.c524 p = (char *) getauxval(AT_RANDOM); in getentropy_fallback()
529 p = (char *) getauxval(AT_SYSINFO_EHDR); in getentropy_fallback()
534 p = (char *) getauxval(AT_BASE); in getentropy_fallback()
/bionic/libc/private/
DKernelArgumentBlock.h54 unsigned long getauxval(unsigned long type) { in getauxval() function
/bionic/linker/
Dlinker_main.cpp140 ElfW(Ehdr)* ehdr_vdso = reinterpret_cast<ElfW(Ehdr)*>(args.getauxval(AT_SYSINFO_EHDR)); in add_vdso()
254 if (!getauxval(AT_SECURE)) {
292 si->phdr = reinterpret_cast<ElfW(Phdr)*>(args.getauxval(AT_PHDR));
293 si->phnum = args.getauxval(AT_PHNUM);
437 ElfW(Addr) entry = args.getauxval(AT_ENTRY);
490 ElfW(Addr) entry_point = args.getauxval(AT_ENTRY);
/bionic/libc/
DAndroid.bp765 // The data that backs getauxval is initialized in the libc init
769 "bionic/getauxval.cpp",
771 // These four require getauxval, which isn't available on older
Dlibc.mips64.map351getauxval; # introduced-arm=18 introduced-arm64=21 introduced-mips=18 introduced-mips64=21 introdu…
Dlibc.x86_64.map351getauxval; # introduced-arm=18 introduced-arm64=21 introduced-mips=18 introduced-mips64=21 introdu…
Dlibc.arm64.map351getauxval; # introduced-arm=18 introduced-arm64=21 introduced-mips=18 introduced-mips64=21 introdu…
Dlibc.x86.map417getauxval; # introduced-arm=18 introduced-arm64=21 introduced-mips=18 introduced-mips64=21 introdu…
Dlibc.mips.map419getauxval; # introduced-arm=18 introduced-arm64=21 introduced-mips=18 introduced-mips64=21 introdu…
Dlibc.arm.map421getauxval; # introduced-arm=18 introduced-arm64=21 introduced-mips=18 introduced-mips64=21 introdu…
Dlibc.map.txt423getauxval; # introduced-arm=18 introduced-arm64=21 introduced-mips=18 introduced-mips64=21 introdu…