summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2022-10-07 23:27:41 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2022-10-07 23:27:41 -0500
commit9dbbddcb9813b84b48057a1756eacede6e48cdc7 (patch)
tree5081e2f31c2439e14a088b6afa5719d3852fd47d
parentfbdd06c3aba7cd559ca6307d91ad08611e2da805 (diff)
downloadgcompat-9dbbddcb9813b84b48057a1756eacede6e48cdc7.tar.gz
gcompat-9dbbddcb9813b84b48057a1756eacede6e48cdc7.tar.bz2
gcompat-9dbbddcb9813b84b48057a1756eacede6e48cdc7.tar.xz
gcompat-9dbbddcb9813b84b48057a1756eacede6e48cdc7.zip
sysctl: Add __getauxval alias
Used by GraalVM Java.
-rw-r--r--libgcompat/sysctl.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/libgcompat/sysctl.c b/libgcompat/sysctl.c
index e7218c1..14c596c 100644
--- a/libgcompat/sysctl.c
+++ b/libgcompat/sysctl.c
@@ -1,5 +1,13 @@
+#include <sys/auxv.h> /* getauxval */
#include <sys/syscall.h>
-#include <unistd.h> /* size_t */
+#include <unistd.h> /* size_t */
+
+
+unsigned long __getauxval(unsigned long type)
+{
+ return getauxval(type);
+}
+
#ifdef SYS__sysctl