summaryrefslogtreecommitdiff
path: root/include/sys/auxv.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-04-07 02:46:15 -0400
committerRich Felker <dalias@aerifal.cx>2014-04-07 02:46:15 -0400
commit21ada94c4b8c01589367cea300916d7db8461ae7 (patch)
treebdd68da89f47c8f1c002cab2cd57f1ff569c8cbc /include/sys/auxv.h
parent89740868c9f1c84b8ee528468d12df1fa72cd392 (diff)
downloadmusl-21ada94c4b8c01589367cea300916d7db8461ae7.tar.gz
add getauxval function
in a sense this implementation is incomplete since it doesn't provide the HWCAP_* macros for use with AT_HWCAP, which is perhaps the most important intended usage case for getauxval. they will be added at a later time.
Diffstat (limited to 'include/sys/auxv.h')
-rw-r--r--include/sys/auxv.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/sys/auxv.h b/include/sys/auxv.h
new file mode 100644
index 00000000..6dcf9adc
--- /dev/null
+++ b/include/sys/auxv.h
@@ -0,0 +1,16 @@
+#ifndef _SYS_AUXV_H
+#define _SYS_AUXV_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <elf.h>
+
+unsigned long getauxval(unsigned long);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif