Subject: Re: testing RC's
To: None <ghen@telenet.be>
From: Todd Vierling <tv@duh.org>
List: netbsd-users
Date: 08/25/2005 09:20:35
On Thu, 25 Aug 2005, Geert Hendrickx wrote:

> Another question: where in the source is the version number (as reported
> by uname) defined?
>
> I find a numeric version in src/sys/sys/param.h, but it doesn't define the
> character string like x.y_STABLE, x.y_RCz and the like.

In src/sys/sys/param.h:

#define __NetBSD_Version__      200000000       /* NetBSD 2.0_STABLE */
                                                   ^^^^^^^^^^^^^^^^^

The comment on the right is parsed by src/sys/conf/osrelease.sh, which is
then turned into a C source file when building the kernel.  Note that
"2.0_STABLE" is the code to become 2.1 -- it means "after 2.0.x, before
2.1.x".

-- 
-- Todd Vierling <tv@duh.org> <tv@pobox.com> <todd@vierling.name>