Re: missing(?) headers
Johannes Stezenbach <[email protected]> Thu, 6 Sep 2012 18:01:01 +0200
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Sep 06, 2012 at 05:12:32PM +0200, Felix von Leitner wrote: > Thus spake Laurent Bercot ([email protected]): > > > asm-generic is not part of glibc. Those are kernel headers. > > > I suggest using the kernel headers for now. > > So glibc and uClibc are #including some kernel headers at some point, > > if only to get SO_* definitions. > > What is your policy about #including kernel headers in the diet libc's > > headers, so userland programs don't have to ? > > (My view is that a userland program should never have to #include > > kernel headers directly.) > > In the beginning I included kernel headers as well, but then I asked > Linus on the kernel mailing list and he said he does not want user space > to include kernel headers, period, so I stopped doing it. Nowadays Linux has a headers_install target which cleans up the kernel headers for use by userspace. Johannes