Searched defs:cmsghdr (Results 1 - 1 of 1) sorted by relevance

/bionic/libc/include/sys/
H A Dsocket.h104 struct cmsghdr { struct
112 #define CMSG_DATA(cmsg) ((void*)((char*)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr))))
113 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len))
114 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
116 ((msg)->msg_controllen >= sizeof(struct cmsghdr) \
117 ? (struct cmsghdr*) (msg)->msg_control : (struct cmsghdr*) NULL)
118 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long) ((mhdr)->msg_controllen - ((char*)(cmsg) - (char*)(mhdr)->msg_control)))
120 struct cmsghdr* __cmsg_nxthdr(struct msghdr*, struct cmsghdr*);
[all...]

Completed in 21 milliseconds