mirror of
git://git.musl-libc.org/musl
synced 2025-01-21 22:23:13 +00:00
befa5866ee
placing the opening brace on the same line as the struct keyword/tag is the style I prefer and seems to be the prevailing practice in more recent additions. these changes were generated by the command: find include/ arch/*/bits -name '*.h' \ -exec sed -i '/^struct [^;{]*$/{N;s/\n/ /;}' {} + and subsequently checked by hand to ensure that the regex did not pick up any false positives.
34 lines
531 B
C
34 lines
531 B
C
#include <endian.h>
|
|
|
|
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;
|
|
};
|