summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.rst5
-rw-r--r--Makefile1
-rw-r--r--libgcompat/auxv.c6
3 files changed, 12 insertions, 0 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 8b2596e..beb3da6 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -11,6 +11,11 @@
1.1 (202?-??-??)
================
+auxv
+----
+
+* Add __getauxval wrapper for getauxval.
+
locale
------
diff --git a/Makefile b/Makefile
index cbb7634..1893cc1 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ LIBGCOMPAT_INCLUDE = \
libgcompat/alias.h \
libgcompat/internal.h
LIBGCOMPAT_SRC = \
+ libgcompat/auxv.c \
libgcompat/ctype.c \
libgcompat/cxx_thread.c \
libgcompat/dlfcn.c \
diff --git a/libgcompat/auxv.c b/libgcompat/auxv.c
new file mode 100644
index 0000000..01de376
--- /dev/null
+++ b/libgcompat/auxv.c
@@ -0,0 +1,6 @@
+#include <sys/auxv.h> /* getauxval */
+
+unsigned long __getauxval(unsigned long value)
+{
+ return getauxval(value);
+}