From: millert Date: Thu, 27 Mar 1997 04:39:35 +0000 (+0000) Subject: Make kern.osrevision (sysctl) and /kern/osrev report value of X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=88a070c00abd1381dbe7724c0b2c2eea0ebc8422;p=openbsd Make kern.osrevision (sysctl) and /kern/osrev report value of OpenBSD define, not BSD which is a bit more useful. --- diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index 5403b77c551..f9d638bf1ce 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sysctl.c,v 1.14 1997/03/26 17:23:50 deraadt Exp $ */ +/* $OpenBSD: kern_sysctl.c,v 1.15 1997/03/27 04:39:35 millert Exp $ */ /* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */ /*- @@ -217,7 +217,7 @@ kern_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p) case KERN_OSRELEASE: return (sysctl_rdstring(oldp, oldlenp, newp, osrelease)); case KERN_OSREV: - return (sysctl_rdint(oldp, oldlenp, newp, BSD)); + return (sysctl_rdint(oldp, oldlenp, newp, OpenBSD)); case KERN_OSVERSION: return (sysctl_rdstring(oldp, oldlenp, newp, osversion)); case KERN_VERSION: diff --git a/sys/miscfs/kernfs/kernfs_vnops.c b/sys/miscfs/kernfs/kernfs_vnops.c index 0a94d88248b..8b7f2f814eb 100644 --- a/sys/miscfs/kernfs/kernfs_vnops.c +++ b/sys/miscfs/kernfs/kernfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kernfs_vnops.c,v 1.7 1997/02/20 01:08:12 deraadt Exp $ */ +/* $OpenBSD: kernfs_vnops.c,v 1.8 1997/03/27 04:39:39 millert Exp $ */ /* $NetBSD: kernfs_vnops.c,v 1.43 1996/03/16 23:52:47 christos Exp $ */ /* @@ -70,7 +70,7 @@ static int byteorder = BYTE_ORDER; static int posix = _POSIX_VERSION; -static int osrev = BSD; +static int osrev = OpenBSD; static int ncpu = 1; /* XXX */ extern char machine[], cpu_model[]; extern char ostype[], osrelease[];