From 7e32513a5bd95aa6c5a6cf09ad0df8902f8b826f Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 17 Jan 2008 22:46:32 +0000 Subject: Add 'compat_freebsd[4567]' features corresponding to the kernel options COMPAT_FREEBSD[4567]. MFC after: 1 week Requested by: kris --- sys/kern/kern_mib.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'sys') diff --git a/sys/kern/kern_mib.c b/sys/kern/kern_mib.c index 73a1eac..74f05f9 100644 --- a/sys/kern/kern_mib.c +++ b/sys/kern/kern_mib.c @@ -38,6 +38,7 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_compat.h" #include "opt_posix.h" #include "opt_config.h" @@ -335,6 +336,22 @@ SYSCTL_STRING(_kern, KERN_HOSTUUID, hostuuid, CTLFLAG_RW, hostuuid, SYSCTL_NODE(_kern, OID_AUTO, features, CTLFLAG_RD, 0, "Kernel Features"); +#ifdef COMPAT_FREEBSD4 +FEATURE(compat_freebsd4, "Compatible with FreeBSD 4"); +#endif + +#ifdef COMPAT_FREEBSD5 +FEATURE(compat_freebsd5, "Compatible with FreeBSD 5"); +#endif + +#ifdef COMPAT_FREEBSD6 +FEATURE(compat_freebsd6, "Compatible with FreeBSD 6"); +#endif + +#ifdef COMPAT_FREEBSD7 +FEATURE(compat_freebsd7, "Compatible with FreeBSD 7"); +#endif + /* * This is really cheating. These actually live in the libc, something * which I'm not quite sure is a good idea anyway, but in order for -- cgit v1.1