This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Support for Linux transparent proxy & asm/types.h


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]