Subject: kern/1655: NetBSD symbol in param.h incorrectly moved backwards
To: None <gnats-bugs@gnats.netbsd.org>
From: John Kohl <jtk@kolvir.arlington.ma.us>
List: netbsd-bugs
Date: 10/20/1995 07:35:17
>Number: 1655
>Category: kern
>Synopsis: NetBSD symbol in param.h incorrectly moved backwards
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 20 08:20:02 1995
>Last-Modified:
>Originator: John Kohl
>Organization:
NetBSD Kernel Hackers `R` Us
>Release: NetBSD-current, 1995/10/18
>Environment:
System: NetBSD pattern 1.1_ALPHA NetBSD 1.1_ALPHA (PATTERN) #194: Thu Oct 19 00:34:35 EDT 1995 jtk@pattern:/u1/NetBSD-current/src/sys/arch/i386/compile/PATTERN i386
>Description:
The NetBSD symbol defined in <sys/param.h> should be
monotonically increasing over time, so that code that needs to detect
the version of NetBSD can do so with things like '#if NetBSD > xxxx'.
The recent change to param.h reduced the integer value of this symbol.
If you want a more consistent symbol, have it include Year, month and
day (e.g. 19951117 for the slated Nov. 17th release). That would be
larger than existing values and wouldn't pose a problem.
>How-To-Repeat:
Read the file, or try to compile code that auto-detects certain things.
>Fix:
*** /usr/src/sys/sys/param.h Fri Oct 13 22:57:00 1995
--- /u3/src/sys/sys/param.h Fri Oct 20 07:30:54 1995
***************
*** 44,50 ****
#define BSD4_3 1
#define BSD4_4 1
! #define NetBSD 199511 /* NetBSD version (year & month). */
#define NetBSD1_1 1 /* NetBSD 1.1 */
#ifndef NULL
--- 44,50 ----
#define BSD4_3 1
#define BSD4_4 1
! #define NetBSD 1995110 /* NetBSD version (year, month, release). */
#define NetBSD1_1 1 /* NetBSD 1.1 */
#ifndef NULL
>Audit-Trail:
>Unformatted: