Re: missing(?) headers

Felix von Leitner <[email protected]> Thu, 6 Sep 2012 17:12:32 +0200
Newsgroups gmane.linux.lib.dietlibc
Message-ID <[email protected]>
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.

Still, several projects do it, so I'm taking some precautions so that
that still works.

All the SO_* defines should be in <sys/socket.h>, am I right?

> > I never even heard of the s6-linux-utils :-)
>  Until recently, there was no reason to. There was nothing in there
> that couldn't be done with your embutils.
>  However, you might want to take a look now: you might like s6-devd.

OK, will have a look.

Felix