summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2021-10-23 23:29:40 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2021-10-23 23:29:40 -0500
commite860a38a88c7ea148ee15976136a1f83ea13f8e0 (patch)
tree24f6fc56f9772ed5307abe03059dd5afc31d1415
parent5bd1f89a69d906844aa6b28e672a5c5a44e88480 (diff)
downloadgcompat-add-__getauxval.tar.gz
gcompat-add-__getauxval.tar.bz2
gcompat-add-__getauxval.tar.xz
gcompat-add-__getauxval.zip
auxv: new moduleadd-__getauxval
Adds `__getauxval` wrapper, needed for Parallels Tools GUI installer.
-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);
+}