diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/conf/newvers.sh | 3 | ||||
-rw-r--r-- | sys/kern/kern_sysctl.c | 3 | ||||
-rw-r--r-- | sys/sys/sysctl.h | 6 |
3 files changed, 9 insertions, 3 deletions
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh index 6ee1eda..adc2a27 100644 --- a/sys/conf/newvers.sh +++ b/sys/conf/newvers.sh @@ -32,7 +32,7 @@ # SUCH DAMAGE. # # @(#)newvers.sh 8.1 (Berkeley) 4/20/94 -# $Id$ +# $Id: newvers.sh,v 1.3 1994/08/02 07:38:27 davidg Exp $ if [ ! -r version ] then @@ -43,6 +43,7 @@ touch version v=`cat version` u=${USER-root} d=`pwd` h=`hostname` t=`date` echo "char ostype[] = \"FreeBSD\";" > vers.c echo "char osrelease[] = \"2.0.0 (Development)\";" >> vers.c +echo "int osreldate = 199409;" >> vers.c echo "char sccs[4] = { '@', '(', '#', ')' };" >>vers.c echo "char version[] = \"FreeBSD 2.0.0 (Development) #${v}: ${t}\\n ${u}@${h}:${d}\\n\";" >>vers.c diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index ae7f7b9..0896ebf 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -182,6 +182,7 @@ long hostid; int securelevel = -1; extern int vfs_update_wakeup; extern int vfs_update_interval; +extern int osreldate; /* * kernel related system variables. @@ -212,6 +213,8 @@ kern_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p) return (sysctl_rdint(oldp, oldlenp, newp, BSD)); case KERN_VERSION: return (sysctl_rdstring(oldp, oldlenp, newp, version)); + case KERN_OSRELDATE: + return (sysctl_rdint(oldp, oldlenp, newp, osreldate)); case KERN_MAXVNODES: return(sysctl_int(oldp, oldlenp, newp, newlen, &desiredvnodes)); case KERN_MAXPROC: diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h index 590e579..acad925 100644 --- a/sys/sys/sysctl.h +++ b/sys/sys/sysctl.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)sysctl.h 8.1 (Berkeley) 6/2/93 - * $Id: sysctl.h,v 1.3 1994/08/08 00:30:12 wollman Exp $ + * $Id: sysctl.h,v 1.4 1994/08/08 15:41:08 wollman Exp $ */ #ifndef _SYS_SYSCTL_H_ @@ -130,7 +130,8 @@ struct ctlname { #define KERN_BOOTTIME 21 /* struct: time kernel was booted */ #define KERN_DOMAINNAME 22 /* string: YP domain name */ #define KERN_UPDATEINTERVAL 23 /* int: update process sleep time */ -#define KERN_MAXID 24 /* number of valid kern ids */ +#define KERN_OSRELDATE 24 /* int: OS release date */ +#define KERN_MAXID 25 /* number of valid kern ids */ #define CTL_KERN_NAMES { \ { 0, 0 }, \ @@ -157,6 +158,7 @@ struct ctlname { { "boottime", CTLTYPE_STRUCT }, \ { "domainname", CTLTYPE_STRING }, \ { "update", CTLTYPE_INT }, \ + { "osreldate", CTLTYPE_INT }, \ } /* |