Subject: Re: freebsd sysctl compatibility
To: john heasley <heas@shrubbery.net>
From: Alistair Crooks <agc@pkgsrc.org>
List: tech-kern
Date: 02/04/2005 20:59:55
On Fri, Feb 04, 2005 at 12:33:39PM -0800, john heasley wrote:
> Thu, Feb 03, 2005 at 04:39:14PM +0100, Jaromir Dolecek:
> > john heasley wrote:
> > > How should this be dealt with?  handle oid 0.x in sys___sysctl?  a shim
> > > before sys___sysctl?
> > 
> > Yes, add a compat/freebsd wrapper around sys___sysctl().
> 
> Besides the hw.* entries that are expected by the 3ware tool, it wants
> kern.osreldate which is essentially the version like kern.osrevision.
> In fact, FreeBSD seems to have abandoned osrevision:
> 	kern.osrelease: 5.3-BETA5
> 	kern.osrevision: 199506
> 	kern.osreldate: 503000

Not really - it's the BSD revision:

[20:57:34] agc@sys3 ...pkgsrc/audio/lame 71 > grep 1995 /usr/include/sys/param.h
#define BSD     199506          /* System version (year & month). */
[20:57:42] agc@sys3 ...pkgsrc/audio/lame 72 > uname -srm
NetBSD 2.99.15 i386

i.e. 4.4Lite2
 
Regards,
Alistair