Home
last modified time | relevance | path

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

/external/strace/tests/
Dmsg_control.c63 return page - CMSG_ALIGN(len); in get_cmsghdr()
99 cmsg_len > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len) : CMSG_LEN(0); in test_scm_rights1()
152 cmsg_len[0] > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len[0]) : CMSG_LEN(0), in test_scm_rights2()
153 cmsg_len[1] > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len[1]) : CMSG_LEN(0) in test_scm_rights2()
399 cmsg_len > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len) : CMSG_LEN(0); in test_scm_security()
492 CMSG_ALIGN(cmsg_len[0]) + CMSG_LEN(0) <= msg_controllen in test_sol_socket()
493 && CMSG_ALIGN(cmsg_len[0]) <= CMSG_SPACE(sizeof(fds0)); in test_sol_socket()
496 msg_controllen - CMSG_ALIGN(cmsg_len[0]); in test_sol_socket()
Dinet-cmsg.c68 const size_t len = c->cmsg_len - CMSG_ALIGN(sizeof(*c)); in print_opts()
/external/strace/tests-m32/
Dmsg_control.c63 return page - CMSG_ALIGN(len); in get_cmsghdr()
99 cmsg_len > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len) : CMSG_LEN(0); in test_scm_rights1()
152 cmsg_len[0] > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len[0]) : CMSG_LEN(0), in test_scm_rights2()
153 cmsg_len[1] > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len[1]) : CMSG_LEN(0) in test_scm_rights2()
399 cmsg_len > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len) : CMSG_LEN(0); in test_scm_security()
492 CMSG_ALIGN(cmsg_len[0]) + CMSG_LEN(0) <= msg_controllen in test_sol_socket()
493 && CMSG_ALIGN(cmsg_len[0]) <= CMSG_SPACE(sizeof(fds0)); in test_sol_socket()
496 msg_controllen - CMSG_ALIGN(cmsg_len[0]); in test_sol_socket()
Dinet-cmsg.c68 const size_t len = c->cmsg_len - CMSG_ALIGN(sizeof(*c)); in print_opts()
/external/strace/tests-mx32/
Dmsg_control.c63 return page - CMSG_ALIGN(len); in get_cmsghdr()
99 cmsg_len > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len) : CMSG_LEN(0); in test_scm_rights1()
152 cmsg_len[0] > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len[0]) : CMSG_LEN(0), in test_scm_rights2()
153 cmsg_len[1] > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len[1]) : CMSG_LEN(0) in test_scm_rights2()
399 cmsg_len > CMSG_LEN(0) ? CMSG_ALIGN(cmsg_len) : CMSG_LEN(0); in test_scm_security()
492 CMSG_ALIGN(cmsg_len[0]) + CMSG_LEN(0) <= msg_controllen in test_sol_socket()
493 && CMSG_ALIGN(cmsg_len[0]) <= CMSG_SPACE(sizeof(fds0)); in test_sol_socket()
496 msg_controllen - CMSG_ALIGN(cmsg_len[0]); in test_sol_socket()
Dinet-cmsg.c68 const size_t len = c->cmsg_len - CMSG_ALIGN(sizeof(*c)); in print_opts()
/external/crosvm/sys_util/src/
Dsock_ctrl_msg.rs28 macro_rules! CMSG_ALIGN { macro
36 size_of::<cmsghdr>() + CMSG_ALIGN!($len)
60 let next_cmsg = (cmsg_ptr as *mut u8).wrapping_add(CMSG_ALIGN!(cmsg.cmsg_len)) as *mut cmsghdr; in get_next_cmsg()
/external/rust/crates/libc/src/unix/haiku/
Dmod.rs1246 {const} fn CMSG_ALIGN(len: usize) -> usize {
1262 .offset(CMSG_ALIGN(::mem::size_of::<::cmsghdr>()) as isize)
1266 (CMSG_ALIGN(length as usize) + CMSG_ALIGN(::mem::size_of::<cmsghdr>()))
1271 CMSG_ALIGN(::mem::size_of::<cmsghdr>()) as ::c_uint + length
1279 let next = cmsg as usize + CMSG_ALIGN((*cmsg).cmsg_len as usize)
1280 + CMSG_ALIGN(::mem::size_of::<::cmsghdr>());
1286 (cmsg as usize + CMSG_ALIGN((*cmsg).cmsg_len as usize))
/external/usrsctp/usrsctplib/netinet/
Dsctp_os_userspace.h250 #define CMSG_ALIGN(x) WSA_CMSGDATA_ALIGN(x) macro
1109 #define CMSG_ALIGN(n) _ALIGN(n) macro
1111 #define CMSG_ALIGN(n) (((n) + __ALIGNBYTES) & ~__ALIGNBYTES) macro
1128 #define CMSG_ALIGN(n) __DARWIN_ALIGN32(n) macro
Dsctp_output.c3594 for (off = 0; off < tot_len; off += CMSG_ALIGN(cmh.cmsg_len)) {
3596 if (rem_len < (int)CMSG_ALIGN(sizeof(cmh))) {
3601 if (cmh.cmsg_len < CMSG_ALIGN(sizeof(cmh))) {
3609 cmsg_data_len = (int)cmh.cmsg_len - CMSG_ALIGN(sizeof(cmh));
3610 cmsg_data_off = off + CMSG_ALIGN(sizeof(cmh));
3697 for (off = 0; off < tot_len; off += CMSG_ALIGN(cmh.cmsg_len)) {
3699 if (rem_len < (int)CMSG_ALIGN(sizeof(cmh))) {
3705 if (cmh.cmsg_len < CMSG_ALIGN(sizeof(cmh))) {
3715 cmsg_data_len = (int)cmh.cmsg_len - CMSG_ALIGN(sizeof(cmh));
3716 cmsg_data_off = off + CMSG_ALIGN(sizeof(cmh));
[all …]
/external/rust/crates/libc/src/vxworks/
Dmod.rs1032 pub {const} fn CMSG_ALIGN(len: usize) -> usize {
1038 let next = cmsg as usize + CMSG_ALIGN((*cmsg).cmsg_len as usize)
1039 + CMSG_ALIGN(::mem::size_of::<::cmsghdr>());
1043 (cmsg as usize + CMSG_ALIGN((*cmsg).cmsg_len as usize))
1060 .offset(CMSG_ALIGN(::mem::size_of::<::cmsghdr>()) as isize)
1064 (CMSG_ALIGN(length as usize) + CMSG_ALIGN(::mem::size_of::<cmsghdr>()))
1069 CMSG_ALIGN(::mem::size_of::<cmsghdr>()) as ::c_uint + length
/external/iputils/
Dping6.c859 cmsglen += CMSG_ALIGN(space); in main()
1212 char freq_buf[CMSG_ALIGN(sizeof(struct in6_flowlabel_req)) + cmsglen]; in main()
1217 freq_len = CMSG_ALIGN(sizeof(*freq)) + srcrt->cmsg_len; in main()
1227 memcpy(freq_buf + CMSG_ALIGN(sizeof(*freq)), srcrt, srcrt->cmsg_len); in main()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dbuffer_list.cc101 constexpr int64_t cmsg_hdr_len = CMSG_ALIGN(sizeof(struct cmsghdr)); in extract_opt_stats_from_cmsg()
/external/rust/crates/libc/src/unix/linux_like/
Dmod.rs1323 {const} fn CMSG_ALIGN(len: usize) -> usize {
1342 (CMSG_ALIGN(length as usize) + CMSG_ALIGN(::mem::size_of::<cmsghdr>()))
1347 CMSG_ALIGN(::mem::size_of::<cmsghdr>()) as ::c_uint + length
/external/python/cpython2/Lib/plat-atheos/
DIN.py687 def CMSG_ALIGN(len): return ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) ) function
/external/rust/crates/libc/src/fuchsia/
Dmod.rs3259 pub {const} fn CMSG_ALIGN(len: ::size_t) -> ::size_t {
3265 (CMSG_ALIGN(len as ::size_t) + CMSG_ALIGN(::mem::size_of::<cmsghdr>()))
3270 (CMSG_ALIGN(::mem::size_of::<cmsghdr>()) + len as ::size_t) as ::c_uint
/external/rust/crates/libc/src/unix/linux_like/linux/
Dmod.rs2822 super::CMSG_ALIGN((*cmsg).cmsg_len as usize))
2827 next as usize + super::CMSG_ALIGN((*next).cmsg_len as usize) > max
/external/rust/crates/libc/src/unix/linux_like/emscripten/
Dmod.rs1699 super::CMSG_ALIGN((*cmsg).cmsg_len as usize))
/external/rust/crates/libc/src/unix/linux_like/android/
Dmod.rs2296 + super::CMSG_ALIGN((*cmsg).cmsg_len as usize))