| version 1.68.4.1, 2006/01/30 14:48:18 |
version 1.69, 2004/09/03 18:14:09 |
| Line 133 typedef _BSD_SSIZE_T_ ssize_t; |
|
| Line 133 typedef _BSD_SSIZE_T_ ssize_t; |
|
| #define SO_RCVTIMEO 0x1006 /* receive timeout */ |
#define SO_RCVTIMEO 0x1006 /* receive timeout */ |
| #define SO_ERROR 0x1007 /* get error status and clear */ |
#define SO_ERROR 0x1007 /* get error status and clear */ |
| #define SO_TYPE 0x1008 /* get socket type */ |
#define SO_TYPE 0x1008 /* get socket type */ |
| |
#define SO_OVERFLOWED 0x1009 /* datagrams: return packets dropped */ |
| |
|
| /* |
/* |
| * Structure used for manipulating linger option. |
* Structure used for manipulating linger option. |
| Line 452 struct cmsghdr { |
|
| Line 453 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 *)0 : \ |
(struct cmsghdr *)NULL : \ |
| (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 464 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 *)0) |
(struct cmsghdr *)NULL) |
| |
|
| #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)) |