| version 1.68, 2003/08/07 16:34:14 |
version 1.68.4.1, 2006/01/30 14:48:18 |
| Line 452 struct cmsghdr { |
|
| Line 452 struct cmsghdr { |
|
| (((__caddr_t)(cmsg) + __CMSG_ALIGN((cmsg)->cmsg_len) + \ |
(((__caddr_t)(cmsg) + __CMSG_ALIGN((cmsg)->cmsg_len) + \ |
| __CMSG_ALIGN(sizeof(struct cmsghdr)) > \ |
__CMSG_ALIGN(sizeof(struct cmsghdr)) > \ |
| (((__caddr_t)(mhdr)->msg_control) + (mhdr)->msg_controllen)) ? \ |
(((__caddr_t)(mhdr)->msg_control) + (mhdr)->msg_controllen)) ? \ |
| (struct cmsghdr *)NULL : \ |
(struct cmsghdr *)0 : \ |
| (struct cmsghdr *)((__caddr_t)(cmsg) + \ |
(struct cmsghdr *)((__caddr_t)(cmsg) + \ |
| __CMSG_ALIGN((cmsg)->cmsg_len))) |
__CMSG_ALIGN((cmsg)->cmsg_len))) |
| |
|
| Line 463 struct cmsghdr { |
|
| Line 463 struct cmsghdr { |
|
| #define CMSG_FIRSTHDR(mhdr) \ |
#define CMSG_FIRSTHDR(mhdr) \ |
| ((mhdr)->msg_controllen >= sizeof(struct cmsghdr) ? \ |
((mhdr)->msg_controllen >= sizeof(struct cmsghdr) ? \ |
| (struct cmsghdr *)(mhdr)->msg_control : \ |
(struct cmsghdr *)(mhdr)->msg_control : \ |
| (struct cmsghdr *)NULL) |
(struct cmsghdr *)0) |
| |
|
| #define CMSG_SPACE(l) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + __CMSG_ALIGN(l)) |
#define CMSG_SPACE(l) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + __CMSG_ALIGN(l)) |
| #define CMSG_LEN(l) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + (l)) |
#define CMSG_LEN(l) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + (l)) |