summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-03-27 04:39:40 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-03-27 04:39:40 +0000
commitea04172c2de7166d55587bd419b310ac650215a8 (patch)
treec96cb42870f18e35b715dd460535ce873d960560
parentf7b95b5aea5e03410c4d9cd3739a28882a44673c (diff)
Make kern.osrevision (sysctl) and /kern/osrev report value of
OpenBSD define, not BSD which is a bit more useful.
-rw-r--r--sys/kern/kern_sysctl.c4
-rw-r--r--sys/miscfs/kernfs/kernfs_vnops.c4
2 files changed, 4 insertions, 4 deletions
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[];