Subject: CVS commit: src/sys/compat/freebsd
To: None <source-changes@NetBSD.org>
From: john heasley <heas@netbsd.org>
List: source-changes
Date: 02/22/2005 16:14:50
Module Name:	src
Committed By:	heas
Date:		Tue Feb 22 16:14:50 UTC 2005

Modified Files:
	src/sys/compat/freebsd: files.freebsd syscalls.master
Added Files:
	src/sys/compat/freebsd: freebsd_sysctl.c

Log Message:
Add FreeBSD sysctl emulation for their undocumented special OIDs rooted at
OID 0.  Only OID 0.3 is implemented for now, it 0.3 is the equivalent of
NetBSD's sysctlgetmibinfo().
This includes a new sysctl kern.osreldate with the value __NetBSD_Version__
for kernels with COMPAT_FREEBSD.

Both of these are used by 3ware's FreeBSD tw_cli, which seems to work now.


To generate a diff of this commit:
cvs rdiff -r1.8 -r1.9 src/sys/compat/freebsd/files.freebsd
cvs rdiff -r0 -r1.1 src/sys/compat/freebsd/freebsd_sysctl.c
cvs rdiff -r1.46 -r1.47 src/sys/compat/freebsd/syscalls.master

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.