Lines Matching defs:auxv
9 #include "src/sys/auxv/getauxval.h"
20 // for mallocing the global auxv
24 // for reading /proc/self/auxv
56 static AuxEntry *auxv = nullptr;
73 munmap(auxv, AUXV_MMAP_SIZE);
74 auxv = nullptr;
81 auxv = reinterpret_cast<AuxEntry *>(ptr);
93 AuxvFdGuard() : fd(open("/proc/self/auxv", O_RDONLY | O_CLOEXEC)) {}
119 // defined, we direcly fall back to reading /proc/self/auxv. In case the libc
151 // If we get out of the loop without an error, the auxv is ready.
178 // app.auxv_ptr is already set to the auxv passed on the initial stack of the
182 auto search_auxv = [&errno_guard](AuxEntry *auxv,
184 for (auto *ptr = auxv; ptr->id != AT_NULL; ptr++)
199 if (auxv != nullptr)
200 return search_auxv(auxv, id);