diff options
author | John Baldwin <jhb@FreeBSD.org> | 2008-01-17 22:46:32 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2008-01-17 22:46:32 +0000 |
commit | 2c179010609d7a5c6c511ce3157fc2d9633c151f (patch) | |
tree | 75213a9a501ce937762a36549f1387b93b08cbb2 /sys/kern/kern_mib.c | |
parent | 933785a02729b0160e398bb05e6a44079b1afdbf (diff) |
Add 'compat_freebsd[4567]' features corresponding to the kernel options
COMPAT_FREEBSD[4567].
MFC after: 1 week
Requested by: kris
Notes
Notes:
svn path=/head/; revision=175417
Diffstat (limited to 'sys/kern/kern_mib.c')
-rw-r--r-- | sys/kern/kern_mib.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/kern/kern_mib.c b/sys/kern/kern_mib.c index 73a1eac4050c..74f05f9534a7 100644 --- a/sys/kern/kern_mib.c +++ b/sys/kern/kern_mib.c @@ -38,6 +38,7 @@ #include <sys/cdefs.h> __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 |