building on commit 97d35a552e,
__BYTE_ORDER is now available wherever alltypes.h is included.
endian.h should not be used since, in the future, it will expose
identifiers that are not in the reserved namespace for the headers
which were previously using it.
32 lines
510 B
C
32 lines
510 B
C
struct msghdr {
|
|
void *msg_name;
|
|
socklen_t msg_namelen;
|
|
struct iovec *msg_iov;
|
|
#if __BYTE_ORDER == __BIG_ENDIAN
|
|
int __pad1, msg_iovlen;
|
|
#else
|
|
int msg_iovlen, __pad1;
|
|
#endif
|
|
void *msg_control;
|
|
#if __BYTE_ORDER == __BIG_ENDIAN
|
|
int __pad2;
|
|
socklen_t msg_controllen;
|
|
#else
|
|
socklen_t msg_controllen;
|
|
int __pad2;
|
|
#endif
|
|
int msg_flags;
|
|
};
|
|
|
|
struct cmsghdr {
|
|
#if __BYTE_ORDER == __BIG_ENDIAN
|
|
int __pad1;
|
|
socklen_t cmsg_len;
|
|
#else
|
|
socklen_t cmsg_len;
|
|
int __pad1;
|
|
#endif
|
|
int cmsg_level;
|
|
int cmsg_type;
|
|
};
|