Subject: Re: CVS commit: src/lib/libkvm
To: None <source-changes@NetBSD.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: source-changes
Date: 02/07/2007 13:26:33
On Wed, Feb 07, 2007 at 02:19:05PM +1100, Simon Burge wrote:
> What about using a #define that makes it obvious that it shouldn't be
> used as well?  For example, sys/sys/kauth_private.h that has:
> 
> 	...
> 
> 	/*
> 	 * This file contains a private definition for 'struct kauth_cred'
> 	 * that must only be used by kern/kern_auth.c and kmem grovellers
> 	 * like ps(1).
> 	 */
> 
> 	#ifdef _KAUTH_CRED_PRIVATE
> 	struct kauth_cred {
> 		...
> 	}
> 	#endif /* _KAUTH_CRED_PRIVATE */

You mean like using
#ifdef _KERNEL
...
#endif /* _KERNEL */
for datastructures which are internal to the kernel? Oh wait...

Joerg