Re: [patch] fat/msdos/vfat crud removal

Eric W. Biederman
2002-06-10T14:03:30Z

Thunder from the hill <thunder@ngforever.de> writes:

> Hi,
>
> On Sun, 9 Jun 2002, David Woodhouse wrote:
> > Er, no. If you randomly reassign errno values, the world breaks.
> > Don't even contemplate it.
>
> I meant adding. Not just errno, even PF_..., etc.
>
> > To that end, we should put '#ifndef __KERNEL__ #error' into all kernel
> > headers, and C libraries should maintain a _separate_ set of headers which
> > contain only the ABI definitions and are suitable for userspace. I believe
> > dietlibc already does this, and recent Red Hat distributions contain a
> > 'glibc-kernheaders' package with a slightly-sanitised version of kernel
> > headers, which should become more sanitised over time.
>
> I wouldn't call dietlibc an HighEnd open end API.

All linux libc's do this. glibc, dietlibc, and uclibc.

Beyond this if you really object you can come up with a set of header
that just describe the kernel/user space ABI, and build them so either
the kernel or user space can use them. And then this ABI-headers
package can be used to hold the common definitions.

Until someone builds a kernel-abi-headers package everyone will do it
by copying the appropriate headers periodically.

Eric