提交 26c66c48 编写于 作者: R Rich Felker

add namespace-safe version of getauxval for internal use

上级 1de47886
#ifndef SYS_AUXV_H
#define SYS_AUXV_H
#include "../../../include/sys/auxv.h"
#include <features.h>
hidden unsigned long __getauxval(unsigned long);
#endif
......@@ -2,7 +2,7 @@
#include <errno.h>
#include "libc.h"
unsigned long getauxval(unsigned long item)
unsigned long __getauxval(unsigned long item)
{
size_t *auxv = libc.auxv;
if (item == AT_SECURE) return libc.secure;
......@@ -11,3 +11,5 @@ unsigned long getauxval(unsigned long item)
errno = ENOENT;
return 0;
}
weak_alias(__getauxval, getauxval);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册