Subject: Re: kern/5377: sys/system.h inludes lib/libkern/libkern.h for LKM too
To: der Mouse <mouse@rodents.montreal.qc.ca>
From: Chris G. Demetriou <cgd@pa.dec.com>
List: netbsd-bugs
Date: 04/29/1998 15:48:23
> 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.)

That's something which is gotten from there, then.  "probably
someplace else".  (conf.h?  another header...)


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

There are a bunch of things for which you can ask that (e.g. lots of
stuff which typically would live in /usr/include/machine, but also a
few other files in sys/sys).

The answer is "because the way kernel headers get moved into user-land
is that the whole directories are either copied or symlinked..."

That's a bug, not a feature.




cgd