NetBSD Problem Report #1655

From gnats  Fri Oct 20 08:14:12 1995
Received: from bloom-beacon.MIT.EDU by pain.lcs.mit.edu (8.6.9/8.6.9) with ESMTP id HAA13174 for <gnats-bugs@gnats.netbsd.org>; Fri, 20 Oct 1995 07:58:47 -0400
Message-Id: <199510201135.HAA05342@pattern.arlington.ma.us>
Date: Fri, 20 Oct 1995 07:35:17 -0400
From: John Kohl <jtk@kolvir.arlington.ma.us>
Reply-To: jtk@kolvir.arlington.ma.us
To: gnats-bugs@gnats.netbsd.org
Subject: NetBSD symbol in param.h incorrectly moved backwards
X-Send-Pr-Version: 3.95

>Number:         1655
>Category:       kern
>Synopsis:       NetBSD symbol in param.h incorrectly moved backwards
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 20 08:20:02 +0000 1995
>Closed-Date:    Tue Mar 05 21:39:40 +0000 1996
>Last-Modified:  Wed Mar 06 02:41:15 +0000 1996
>Originator:     John Kohl
>Release:        NetBSD-current, 1995/10/18
>Organization:
NetBSD Kernel Hackers `R` Us
>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

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->suspended 
State-Changed-By: pk 
State-Changed-When: Tue Oct 31 20:03:20 EST 1995 
State-Changed-Why:  
This was apparently intentional. 
I'll leave this to jtc.

State-Changed-From-To: suspended->closed
State-Changed-By: jtc
State-Changed-When: Tue Mar  5 21:39:40 1996
State-Changed-Why:
In retrospect, normalizing the format of this symbol turned out to be 
a terrible idea.  Rest assured that the person responsible for this
mistake will not be decrementing it again.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.