Subject: Re: freebsd sysctl compatibility
To: Jaromir Dolecek <jdolecek@NetBSD.org>
From: john heasley <heas@shrubbery.net>
List: tech-kern
Date: 02/04/2005 12:33:39
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

It seems to silly to create a separate tree for emulation, rather just
add this one entry and borrow the regular tree.

However, sysctl_root is static within kern_sysctl.  Is there any problem
with making it global?