Re: /usr/include/linux and /usr/include/asm?
- To: Jonathan Guthrie <jguthrie@brokersys.com>
- Cc: debian-user@lists.debian.org
- Subject: Re: /usr/include/linux and /usr/include/asm?
- From: Carl Mummert <mummert@cs.wcu.edu>
- Date: Tue, 29 Jun 1999 10:39:45 -0400
- Message-id: <"sHqW6B.A.RuE.asNe3"@murphy>
- In-reply-to: Your message of "Tue, 29 Jun 1999 08:20:52 CDT." <Pine.LNX.4.05.9906290810110.7822-100000@weck.brokersys.com>
>I would have thought that someone would have figured out by now that
>/usr/include/linux (at the very least) should reflect the status of the
>kernel so that kernel-specific stuff can be done and that NOTHING in the
>library or in the include files associated with that library should depend
>upon the kernel-specific files.
>
>It's not the symlinks, it's the contents of /usr/include/*.h that's the
>problem.
They are the problem, but they cannot be fixed. Since the GNU C library
is portable to various kernels and hardware platforms, it has to get
its information about the underlying system from somewhere.
Back when we had our very own private C library, we could get away with
not separating the user-visible stuff from the kernel-only stuff.
But when we start using portable libraries, we have to worry about
what is used by normal programmers, and what is used only inside
the kernel.
find /usr/include -type f | xargs grep 'include.*<linux'
Most of the files that include stuff in /usr/include/linux are in the
/usr/incldue/sys subdir, with a few network realted ones also
hangin arond. The others seem to be individual cases.
Of all the files in /usr/include/*.h, only a couple reference
/usr/include/linux/...
Carl
Reply to: