summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2016-01-09 16:24:30 +0000
committerdchagin <dchagin@FreeBSD.org>2016-01-09 16:24:30 +0000
commit68ddeae1b4dafbdcc753ae60d8495aecc6dde4cc (patch)
treed878568d4b02bdcee1d86e32899092b7cbb2ac72 /sys/compat
parent6a7051941493d24f6ceac5c4560fdc0a0465393d (diff)
downloadFreeBSD-src-68ddeae1b4dafbdcc753ae60d8495aecc6dde4cc.zip
FreeBSD-src-68ddeae1b4dafbdcc753ae60d8495aecc6dde4cc.tar.gz
MFC r283431:
Add AT_RANDOM and AT_EXECFN auxiliary vector entries which are used by glibc. At list since glibc version 2.16 using AT_RANDOM is mandatory.
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_misc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_misc.h b/sys/compat/linux/linux_misc.h
index ca8d7b6..62c76da 100644
--- a/sys/compat/linux/linux_misc.h
+++ b/sys/compat/linux/linux_misc.h
@@ -70,10 +70,13 @@ extern const char *linux_kplatform;
#define LINUX_AT_BASE_PLATFORM 24 /* string identifying real platform, may
* differ from AT_PLATFORM.
*/
+#define LINUX_AT_RANDOM 25 /* address of random bytes */
#define LINUX_AT_EXECFN 31 /* filename of program */
#define LINUX_AT_SYSINFO 32 /* vsyscall */
#define LINUX_AT_SYSINFO_EHDR 33 /* vdso header */
+#define LINUX_AT_RANDOM_LEN 16 /* size of random bytes */
+
/* Linux sets the i387 to extended precision. */
#if defined(__i386__) || defined(__amd64__)
#define __LINUX_NPXCW__ 0x37f
OpenPOWER on IntegriCloud