Subject: Re: freebsd sysctl compatibility
To: Jaromir Dolecek <jdolecek@NetBSD.org>
From: john heasley <firstname.lastname@example.org>
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:
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?