summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux/linux.h
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2009-03-04 12:14:33 +0000
committerdchagin <dchagin@FreeBSD.org>2009-03-04 12:14:33 +0000
commit45cda70b8f7151a76c1a1bc83aaa3acc0f361054 (patch)
tree62f76cca88478d27784a620e697797cefd2ec667 /sys/i386/linux/linux.h
parente609fbb43b577bbe85d61ed52b9fcec80adeb290 (diff)
downloadFreeBSD-src-45cda70b8f7151a76c1a1bc83aaa3acc0f361054.zip
FreeBSD-src-45cda70b8f7151a76c1a1bc83aaa3acc0f361054.tar.gz
Add AT_PLATFORM, AT_HWCAP and AT_CLKTCK auxiliary vector entries which
are used by glibc. This silents the message "2.4+ kernel w/o ELF notes?" from some programs at start, among them are top and pkill. Do the assignment of the vector entries in elf_linux_fixup() as it is done in glibc. Fix some minor style issues. Submitted by: Marcin Cieslak <saper at SYSTEM PL> Approved by: kib (mentor) MFC after: 1 week
Diffstat (limited to 'sys/i386/linux/linux.h')
-rw-r--r--sys/i386/linux/linux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h
index f9c7ee5..ca01c89 100644
--- a/sys/i386/linux/linux.h
+++ b/sys/i386/linux/linux.h
@@ -102,6 +102,10 @@ typedef struct {
#define LINUX_CTL_MAXNAME 10
+#define LINUX_AT_COUNT 16 /* Count of used aux entry types.
+ * Keep this synchronized with
+ * elf_linux_fixup() code.
+ */
struct l___sysctl_args
{
l_int *name;
OpenPOWER on IntegriCloud