Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/lib/libkvm
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
Home |
Main Index |
Thread Index |
Old Index