diff options
author | jhb <jhb@FreeBSD.org> | 2008-01-17 22:46:32 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-01-17 22:46:32 +0000 |
commit | 7e32513a5bd95aa6c5a6cf09ad0df8902f8b826f (patch) | |
tree | 75213a9a501ce937762a36549f1387b93b08cbb2 /sys/kern/kern_mib.c | |
parent | 7f24f24832bc16d75b0f181ff5c1665095ba6a30 (diff) | |
download | FreeBSD-src-7e32513a5bd95aa6c5a6cf09ad0df8902f8b826f.zip FreeBSD-src-7e32513a5bd95aa6c5a6cf09ad0df8902f8b826f.tar.gz |
Add 'compat_freebsd[4567]' features corresponding to the kernel options
COMPAT_FREEBSD[4567].
MFC after: 1 week
Requested by: kris
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 73a1eac..74f05f9 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 |