Home
last modified time | relevance | path

Searched refs:CMSG_ALIGN (Results 1 – 19 of 19) sorted by relevance

/third_party/musl/porting/liteos_m/kernel/include/sys/
Dsocket.h360 #define CMSG_ALIGN(len) (((len) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) macro
361 #define CMSG_SPACE(len) (CMSG_ALIGN (len) + CMSG_ALIGN (sizeof (struct cmsghdr)))
362 #define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
/third_party/musl/include/sys/
Dsocket.h362 #define CMSG_ALIGN(len) (((len) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) macro
363 #define CMSG_SPACE(len) (CMSG_ALIGN (len) + CMSG_ALIGN (sizeof (struct cmsghdr)))
364 #define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
Dsocket.h360 #define CMSG_ALIGN(len) (((len) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) macro
361 #define CMSG_SPACE(len) (CMSG_ALIGN (len) + CMSG_ALIGN (sizeof (struct cmsghdr)))
362 #define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
/third_party/musl/porting/linux/user/include/sys/
Dsocket.h366 #define CMSG_ALIGN(len) (((len) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) macro
367 #define CMSG_SPACE(len) (CMSG_ALIGN (len) + CMSG_ALIGN (sizeof (struct cmsghdr)))
368 #define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/
Dsocket.h351 #define CMSG_ALIGN(len) (((len) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) macro
352 #define CMSG_SPACE(len) (CMSG_ALIGN (len) + CMSG_ALIGN (sizeof (struct cmsghdr)))
353 #define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
/third_party/musl/porting/liteos_a/kernel/include/sys/
Dsocket.h362 #define CMSG_ALIGN(len) (((len) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) macro
363 #define CMSG_SPACE(len) (CMSG_ALIGN (len) + CMSG_ALIGN (sizeof (struct cmsghdr)))
364 #define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
/third_party/musl/ndk_musl_include/sys/
Dsocket.h364 #define CMSG_ALIGN(len) (((len) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) macro
365 #define CMSG_SPACE(len) (CMSG_ALIGN (len) + CMSG_ALIGN (sizeof (struct cmsghdr)))
366 #define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
/third_party/musl/porting/uniproton/kernel/include/sys/
Dsocket.h360 #define CMSG_ALIGN(len) (((len) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) macro
361 #define CMSG_SPACE(len) (CMSG_ALIGN (len) + CMSG_ALIGN (sizeof (struct cmsghdr)))
362 #define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
/third_party/rust/crates/linux-raw-sys/src/
Dlib.rs88 pub unsafe fn CMSG_ALIGN(len: c_uint) -> c_uint { in CMSG_ALIGN() function
98 size_of::<cmsghdr>() as c_uint + CMSG_ALIGN(len) in CMSG_SPACE()
118 … let next_cmsg = (cmsg as *mut u8).offset(CMSG_ALIGN(cmsg_len as _) as isize) as *mut cmsghdr; in CMSG_NXTHDR()
125 …if next_cmsg.offset(1) as usize > max || next_cmsg as usize + CMSG_ALIGN(cmsg_len as _) as usize >… in CMSG_NXTHDR()
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_os_userspace.h246 #define CMSG_ALIGN(x) WSA_CMSGDATA_ALIGN(x) macro
1069 #define CMSG_ALIGN(n) _ALIGN(n) macro
1071 #define CMSG_ALIGN(n) (((n) + __ALIGNBYTES) & ~__ALIGNBYTES) macro
1088 #define CMSG_ALIGN(n) __DARWIN_ALIGN32(n) macro
Dsctp_output.c3588 for (off = 0; off < tot_len; off += CMSG_ALIGN(cmh.cmsg_len)) {
3590 if (rem_len < (int)CMSG_ALIGN(sizeof(cmh))) {
3595 if (cmh.cmsg_len < CMSG_ALIGN(sizeof(cmh))) {
3603 cmsg_data_len = (int)cmh.cmsg_len - CMSG_ALIGN(sizeof(cmh));
3604 cmsg_data_off = off + CMSG_ALIGN(sizeof(cmh));
3691 for (off = 0; off < tot_len; off += CMSG_ALIGN(cmh.cmsg_len)) {
3693 if (rem_len < (int)CMSG_ALIGN(sizeof(cmh))) {
3699 if (cmh.cmsg_len < CMSG_ALIGN(sizeof(cmh))) {
3709 cmsg_data_len = (int)cmh.cmsg_len - CMSG_ALIGN(sizeof(cmh));
3710 cmsg_data_off = off + CMSG_ALIGN(sizeof(cmh));
[all …]
/third_party/rust/crates/libc/src/vxworks/
Dmod.rs1039 pub {const} fn CMSG_ALIGN(len: usize) -> usize {
1045 let next = cmsg as usize + CMSG_ALIGN((*cmsg).cmsg_len as usize)
1046 + CMSG_ALIGN(::mem::size_of::<::cmsghdr>());
1050 (cmsg as usize + CMSG_ALIGN((*cmsg).cmsg_len as usize))
1067 .offset(CMSG_ALIGN(::mem::size_of::<::cmsghdr>()) as isize)
1071 (CMSG_ALIGN(length as usize) + CMSG_ALIGN(::mem::size_of::<cmsghdr>()))
1076 CMSG_ALIGN(::mem::size_of::<cmsghdr>()) as ::c_uint + length
/third_party/rust/crates/libc/src/unix/haiku/
Dmod.rs1465 {const} fn CMSG_ALIGN(len: usize) -> usize {
1481 .offset(CMSG_ALIGN(::mem::size_of::<::cmsghdr>()) as isize)
1485 (CMSG_ALIGN(length as usize) + CMSG_ALIGN(::mem::size_of::<cmsghdr>()))
1490 CMSG_ALIGN(::mem::size_of::<cmsghdr>()) as ::c_uint + length
1498 let next = cmsg as usize + CMSG_ALIGN((*cmsg).cmsg_len as usize)
1499 + CMSG_ALIGN(::mem::size_of::<::cmsghdr>());
1505 (cmsg as usize + CMSG_ALIGN((*cmsg).cmsg_len as usize))
/third_party/rust/crates/libc/src/unix/linux_like/
Dmod.rs1514 {const} fn CMSG_ALIGN(len: usize) -> usize {
1533 (CMSG_ALIGN(length as usize) + CMSG_ALIGN(::mem::size_of::<cmsghdr>()))
1538 CMSG_ALIGN(::mem::size_of::<cmsghdr>()) as ::c_uint + length
/third_party/rust/crates/libc/libc-test/semver/
Dfuchsia.txt136 CMSG_ALIGN
/third_party/rust/crates/libc/src/fuchsia/
Dmod.rs3263 pub {const} fn CMSG_ALIGN(len: ::size_t) -> ::size_t {
3269 (CMSG_ALIGN(len as ::size_t) + CMSG_ALIGN(::mem::size_of::<cmsghdr>()))
3274 (CMSG_ALIGN(::mem::size_of::<cmsghdr>()) + len as ::size_t) as ::c_uint
/third_party/rust/crates/libc/src/unix/linux_like/emscripten/
Dmod.rs1681 super::CMSG_ALIGN((*cmsg).cmsg_len as usize))
/third_party/rust/crates/libc/src/unix/linux_like/linux/
Dmod.rs3601 super::CMSG_ALIGN((*cmsg).cmsg_len as usize))
3606 next as usize + super::CMSG_ALIGN((*next).cmsg_len as usize) > max
/third_party/rust/crates/libc/src/unix/linux_like/android/
Dmod.rs2992 + super::CMSG_ALIGN((*cmsg).cmsg_len as usize))