Support for Linux transparent proxy & asm/types.h

Andi Kleen ak@muc.de
Wed Dec 23 11:13:00 GMT 1998


On Wed, Dec 23, 1998 at 05:20:41PM +0100, Mark Kettenis wrote:
>    On a related topic: I currently give this synopsis line for netlink sockets:
> 
>    #include <linux/netlink.h>
>    nl_socket = socket(PF_NETLINK, ....); 
> 
>    To compile that snippet on glibc systems #include <asm/types.h> is needed.
>    Does glibc gurantee in future version that asm/types.h will continue to
>    work?
> 
> No, we can't guarantee this since Linus doesn't want to commit himself
> to keeping the Linux headers namespace clean.  So programs that
> compile against glibc should not include any Linux headers (i.e. no
> #include <asm/foo.h> or #include <linux/foo.h>).  If glibc doesn't
> provide a header (i.e. #include <sys/foo.h>), the programmer is
> supposed to copy the needed defenitions from the appropriate Linux
> header to a private header and use that.

You want me to suggest that in the man page? 
Sounds like a horrible kludge. I'll surely not do that.



-Andi



More information about the Libc-alpha mailing list