mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
Synch with generic Linux version.
This commit is contained in:
parent
69f2f47737
commit
236eca388e
@ -227,7 +227,7 @@ struct cmsghdr
|
|||||||
of cmsghdr structure. */
|
of cmsghdr structure. */
|
||||||
int cmsg_level; /* Originating protocol. */
|
int cmsg_level; /* Originating protocol. */
|
||||||
int cmsg_type; /* Protocol specific type. */
|
int cmsg_type; /* Protocol specific type. */
|
||||||
unsigned char __cmsg_data __flexarr; /* Ancillary data. */
|
__extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */
|
||||||
/* XXX Perhaps this should be removed. */
|
/* XXX Perhaps this should be removed. */
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -242,7 +242,7 @@ struct cmsghdr
|
|||||||
((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) \
|
((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) \
|
||||||
? (struct cmsghdr *) (mhdr)->msg_control : (struct cmsghdr *) NULL)
|
? (struct cmsghdr *) (mhdr)->msg_control : (struct cmsghdr *) NULL)
|
||||||
#define CMSG_ALIGN(len) (((len) + sizeof (size_t) - 1) \
|
#define CMSG_ALIGN(len) (((len) + sizeof (size_t) - 1) \
|
||||||
& ~(sizeof (size_t) - 1))
|
& (size_t) ~(sizeof (size_t) - 1))
|
||||||
#define CMSG_SPACE(len) (CMSG_ALIGN (len) \
|
#define CMSG_SPACE(len) (CMSG_ALIGN (len) \
|
||||||
+ CMSG_ALIGN (sizeof (struct cmsghdr)))
|
+ CMSG_ALIGN (sizeof (struct cmsghdr)))
|
||||||
#define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
|
#define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
|
||||||
|
Loading…
Reference in New Issue
Block a user