projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
provide getauxval(AT_SECURE) even if it is missing from the aux vector
[musl]
/
src
/
misc
/
getauxval.c
diff --git
a/src/misc/getauxval.c
b/src/misc/getauxval.c
index
5ac8b3d
..
b846c80
100644
(file)
--- a/
src/misc/getauxval.c
+++ b/
src/misc/getauxval.c
@@
-5,6
+5,7
@@
unsigned long getauxval(unsigned long item)
{
size_t *auxv = libc.auxv;
+ if (item == AT_SECURE) return libc.secure;
for (; *auxv; auxv+=2)
if (*auxv==item) return auxv[1];
errno = ENOENT;