Re: [RFC] Splitting kernel headers and deprecating __KERNEL__

Sam Ravnborg
2004-11-27T20:38:13Z

On Thu, Nov 25, 2004 at 04:54:33PM +0000, Matthew Wilcox wrote:
> > (5) For userspace use (such as for glibc), the appropriate include/user*/
> > directories should be selected and installed in /usr/include/ or wherever,
> > and symlinks made. For example, on i386 arch boxes, you might find:
> >
> > SOURCE INSTALLED AS
> > ====================== ============
> > include/user/ /usr/include/user/
> > include/user-i386/ /usr/include/user-i386/
> > /usr/include/linux -> user
> > /usr/include/asm -> user-i386
>
> This proposal doesn't address the asm-generic problem directly. Can I
> presume that you intend to also create linux/include/user-generic, install
> it as /usr/include/user-generic and create an asm-generic symlink that
> points to user-generic? A good problem file to be dealt with would
> be asm/errno.h

Do not allow asm-generic to be used direct by userspace.
The example with errno.h is handled by user-i386/errno.h which includes
asm-generic/errno.h.

Would that do the trick - yes?

Sam