Subject: Re: kern/5377: sys/system.h inludes lib/libkern/libkern.h for LKM too
To: None <, netbsd-bugs@NetBSD.ORG>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: netbsd-bugs
Date: 04/29/1998 15:51:03
> Why does [<sys/systm.h>] ever check _KERNEL at all?

> systm.h is _only_ supposed to be used by kernel (including LKM)
> sources.  including it from user-land is not correct...

Then where *is* userland supposed to get the "struct sysent" definition
from?  (Admittedly not of much use except to kmem grovelers and /netbsd
grovelers, but still.)

For that matter, if userland isn't supposed to use it, why is it
installed in /usr/include/sys/systm.h at all?

					der Mouse

		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B