Home
last modified time | relevance | path

Searched refs:getauxval (Results 1 – 24 of 24) 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/libc/include/sys/
Dauxv.h36 unsigned long int getauxval(unsigned long int type);
/bionic/libc/bionic/
Dlibc_init_static.cpp56 ElfW(Phdr)* phdr_start = reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR)); in apply_gnu_relro()
57 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
Dlibc_init_common.cpp70 __stack_chk_guard = *reinterpret_cast<uintptr_t*>(args.getauxval(AT_RANDOM)); in __libc_init_global_stack_chk_guard()
77 __libc_sysinfo = reinterpret_cast<void*>(args.getauxval(AT_SYSINFO)); in __libc_init_sysinfo()
269 bool is_AT_SECURE = getauxval(AT_SECURE); in __sanitize_environment_variables()
312 if (getauxval(AT_SECURE)) { in __libc_init_AT_SECURE()
Dsetjmp_cookie.cpp43 char* random_data = reinterpret_cast<char*>(args.getauxval(AT_RANDOM)); in __libc_init_setjmp_cookie()
Ddl_iterate_phdr_static.cpp64 ElfW(Ehdr)* ehdr_vdso = reinterpret_cast<ElfW(Ehdr)*>(getauxval(AT_SYSINFO_EHDR)); in dl_iterate_phdr()
Dsysconf.cpp58 case _SC_CLK_TCK: return static_cast<long>(getauxval(AT_CLKTCK)); in sysconf()
93 return static_cast<long>(getauxval(AT_PAGESZ)); in sysconf()
Dvdso.cpp57 uintptr_t vdso_ehdr_addr = args.getauxval(AT_SYSINFO_EHDR); in __libc_init_vdso()
Dgetentropy_linux.c536 p = (char *) getauxval(AT_RANDOM); in getentropy_fallback()
541 p = (char *) getauxval(AT_SYSINFO_EHDR); in getentropy_fallback()
546 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.cpp4067 ElfW(Ehdr)* ehdr_vdso = reinterpret_cast<ElfW(Ehdr)*>(args.getauxval(AT_SYSINFO_EHDR)); in add_vdso()
4188 if (!getauxval(AT_SECURE)) {
4223 si->phdr = reinterpret_cast<ElfW(Phdr)*>(args.getauxval(AT_PHDR));
4224 si->phnum = args.getauxval(AT_PHNUM);
4225 si->entry = args.getauxval(AT_ENTRY);
4398 ElfW(Addr) linker_addr = args.getauxval(AT_BASE);
4399 ElfW(Addr) entry_point = args.getauxval(AT_ENTRY);
/bionic/libc/
Dlibc.mips64.map358 getauxval;
Dlibc.x86_64.map358 getauxval;
Dlibc.arm64.map358 getauxval;
Dlibc.x86.brillo.map425 getauxval;
Dlibc.mips.brillo.map427 getauxval;
Dlibc.arm.brillo.map429 getauxval;
Dlibc.mips.map427 getauxval;
Dlibc.x86.map425 getauxval;
Dlibc.arm.map429 getauxval;
Dlibc.map.txt431 getauxval;
DAndroid.bp819 // The data that backs getauxval is initialized in the libc init
823 "bionic/getauxval.cpp",
825 // These four require getauxval, which isn't available on older
DAndroid.mk257 libc_bionic_src_files += bionic/getauxval.cpp