search for: __cmsg_nxthdr

Displaying 4 results from an estimated 4 matches for "__cmsg_nxthdr".

2002 Jan 21
1
help for tftp-hpa with libc5
...struct in_pktinfo pktinfo; #endif === 105 if ( msg.msg_controllen < sizeof(struct cmsghdr) || === 109 for ( cmptr = CMSG_FIRSTHDR(&msg) ; cmptr != NULL ; I added the following to recvfrom.h (copied from glibc headers) === #define MSG_CTRUNC 0x08 #define CMSG_NXTHDR(mhdr, cmsg) __cmsg_nxthdr (mhdr, cmsg) #define CMSG_FIRSTHDR(mhdr) \ ((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) \ ? (struct cmsghdr *) (mhdr)->msg_control : (struct cmsghdr *) NULL) extern struct cmsghdr *__cmsg_nxthdr __P ((struct msghdr *__mhdr,...
2010 Mar 13
1
klibc build trouble
as the next klibc release 1.5.16 looks like shaping up, I have a trouble to build that for Debian. currently I build depent on linux-libc-dev, I don't know what against I can build latest klibc, see klibc fails to build due too: make -C linux/ ARCH=x86_64 INSTALL_HDR_PATH=debian/tmp/usr/lib/klibc/ headers_install make[3]: *** No rule to make target `headers_install'. Stop. make[2]: ***
2010 Jul 07
0
[git pull v2] x86_32, sh4, getrusage()
...*/ + +struct cmsghdr { + __kernel_size_t cmsg_len; /* data byte count, including hdr */ + int cmsg_level; /* originating protocol */ + int cmsg_type; /* protocol-specific type */ +}; + +/* + * Ancilliary data object information MACROS + * Table 5-14 of POSIX 1003.1g + */ + +#define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg)) +#define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg)) + +#define CMSG_ALIGN(len) ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) ) + +#define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) +#define CMSG_SPACE...
2010 Oct 29
2
[LLVMdev] "multiple definition of .. " in clang 2.8
..._2c': Hostname.c:(.text+0x360): multiple definition of `__strsep_2c' av.o:av.c:(.text+0x360): first defined here Hostname.o: In function `__strsep_3c': Hostname.c:(.text+0x3b0): multiple definition of `__strsep_3c' av.o:av.c:(.text+0x3b0): first defined here Hostname.o: In function `__cmsg_nxthdr': Hostname.c:(.text+0x400): multiple definition of `__cmsg_nxthdr' av.o:av.c:(.text+0x400): first defined here Hostname.o: In function `stat': Hostname.c:(.text+0x450): multiple definition of `stat' av.o:av.c:(.text+0x450): first defined here Hostname.o: In function `lstat': Hos...