Subject: Re: CVS commit: src/lib/libkvm
To: Simon Burge <simonb@NetBSD.org>
From: David Laight <david@l8s.co.uk>
List: source-changes
Date: 02/07/2007 20:37:13
On Wed, Feb 07, 2007 at 02:19:05PM +1100, Simon Burge wrote:
>
> /*
> * 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 */
Actually there is a more general point that maybe we should use
#ifdef NETBSD_KMEM_USER
....
#endif
for stuff in kernel headers that normal kmem grovellers access.
Rather than have any userspace stuff compiled with _KERNEL defined.
David
--
David Laight: david@l8s.co.uk