Subject: Re: NetBSD master CVS tree commits
To: None <current-users@NetBSD.ORG>
From: der Mouse <mouse@Holo.Rodents.Montreal.QC.CA>
Date: 09/21/1996 07:53:56
> OK, i'll bite.
> When should system.h be included in user-land code, since it's
> prototypes and declarations for _kernel_ code which won't be
> available in user-land environments.
> short answer:
> systm.h should _never_ be included by user-land code.
I'd agree with you, except that systm.h also includes a struct
definition, which is (potentially) useful to kmem readers, kernel
coredump grovelers, LKMs that want to use that data structure, etc.
At least $NetBSD: systm.h,v 126.96.36.199 1996/06/11 13:18:43 briggs Exp $
(Tangent: is _KERNEL supposed to be defined for LKMs? Or am I just
showing I haven't read some manpage?)
01 EE 31 F6 BB 0C 34 36 00 F3 7C 5A C1 A0 67 1D