cvs commit: src/sys/net bpf.c if.c if_arcsubr.c if_atmsubr.c if_ethersubr.c if_fddisubr.c if_iso88025subr.c radix.c raw_usrreq.c route.c route.h rtsock.c src/sys/net/faith if_faith.c src/sys/netinet if_ether.c in.c in_cksum.c in_gif.c in_pcb.c ...

YONETANI Tomokazu qhwt+dfly at les.ath.cx
Mon Jan 10 05:41:11 PST 2005


On Mon, Jan 10, 2005 at 02:22:58PM +0100, Joerg Sonnenberger wrote:
> On Mon, Jan 10, 2005 at 04:29:04PM +0900, YONETANI Tomokazu wrote:
> > This commit broke the build of linuxpluginwrapper which does the following:
> > 
> > #define _KERNEL
> > #include <sys/socket.h>
> > #undef _KERNEL
> > 
> > to obtain typedefs, structs and macros, but not function declarations
> > at the end of the <sys/socket.h>.  After the commit, it now includes
> > <sys/libkern.h>, which includes <sys/systm.h>, which declares string
> > manipulation functions with arguments slightly different from ones
> > declared in <string.h>.
> 
> The source is wrong. A userland program should NEVER define _KERNEL, only
> _KERNEL_STRUCTURES.

If _KERNEL_STRUCTURES also covers typedefs and macros, and hides
declaration of functions like accept() or bind() from <sys/socket.h>,
that's what is wanted here.





More information about the Commits mailing list