diff options
-rw-r--r-- | sys/kern/kern_mib.c | 3 | ||||
-rw-r--r-- | sys/sys/sysctl.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/kern_mib.c b/sys/kern/kern_mib.c index 4a6d38c..6e236f6 100644 --- a/sys/kern/kern_mib.c +++ b/sys/kern/kern_mib.c @@ -85,6 +85,9 @@ SYSCTL_NODE(, OID_AUTO, regression, CTLFLAG_RW, 0, "Regression test MIB"); #endif +SYSCTL_STRING(_kern, OID_AUTO, ident, CTLFLAG_RD, + ident, 0, "Kernel identifier"); + SYSCTL_STRING(_kern, KERN_OSRELEASE, osrelease, CTLFLAG_RD, osrelease, 0, "Operating system release"); diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h index 7cbc2c2..68e6659 100644 --- a/sys/sys/sysctl.h +++ b/sys/sys/sysctl.h @@ -354,8 +354,7 @@ TAILQ_HEAD(sysctl_ctx_list, sysctl_ctx_entry); #define KERN_USRSTACK 33 /* int: address of USRSTACK */ #define KERN_LOGSIGEXIT 34 /* int: do we log sigexit procs? */ #define KERN_IOV_MAX 35 /* int: value of UIO_MAXIOV */ -#define KERN_IDENT 36 /* string: kernel ident */ -#define KERN_MAXID 37 /* number of valid kern ids */ +#define KERN_MAXID 36 /* number of valid kern ids */ #define CTL_KERN_NAMES { \ { 0, 0 }, \ @@ -393,7 +392,6 @@ TAILQ_HEAD(sysctl_ctx_list, sysctl_ctx_entry); { "usrstack", CTLTYPE_INT }, \ { "logsigexit", CTLTYPE_INT }, \ { "iov_max", CTLTYPE_INT }, \ - { "ident", CTLTYPE_STRING }, \ } /* |