Displaying 3 results from an estimated 3 matches for "__cmsg".
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 CMS...