Searched refs:CMSG_ALIGN (Results 1 – 15 of 15) sorted by relevance
63 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()
68 const size_t len = c->cmsg_len - CMSG_ALIGN(sizeof(*c)); in print_opts()
26 macro_rules! CMSG_ALIGN { macro34 size_of::<cmsghdr>() + CMSG_ALIGN!($len)58 let next_cmsg = (cmsg_ptr as *mut u8).wrapping_add(CMSG_ALIGN!(cmsg.cmsg_len)) as *mut cmsghdr; in get_next_cmsg()
970 fn CMSG_ALIGN(len: usize) -> usize { in CMSG_ALIGN() function988 (CMSG_ALIGN(length as usize) + CMSG_ALIGN(::mem::size_of::<cmsghdr>()))993 CMSG_ALIGN(::mem::size_of::<cmsghdr>()) as ::c_uint + length1002 CMSG_ALIGN((*cmsg).cmsg_len as usize))1007 next as usize + CMSG_ALIGN((*next).cmsg_len as usize) > max
1011 pub fn CMSG_ALIGN(len: usize) -> usize {1017 let next = cmsg as usize + CMSG_ALIGN((*cmsg).cmsg_len as usize)1018 + CMSG_ALIGN(::mem::size_of::<::cmsghdr>());1022 (cmsg as usize + CMSG_ALIGN((*cmsg).cmsg_len as usize))1039 .offset(CMSG_ALIGN(::mem::size_of::<::cmsghdr>()) as isize)1043 (CMSG_ALIGN(length as usize) + CMSG_ALIGN(::mem::size_of::<cmsghdr>()))1048 CMSG_ALIGN(::mem::size_of::<cmsghdr>()) as ::c_uint + length
859 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()
1193 {const} fn CMSG_ALIGN(len: usize) -> usize {1212 (CMSG_ALIGN(length as usize) + CMSG_ALIGN(::mem::size_of::<cmsghdr>()))1217 CMSG_ALIGN(::mem::size_of::<cmsghdr>()) as ::c_uint + length
687 def CMSG_ALIGN(len): return ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) ) function
2318 super::CMSG_ALIGN((*cmsg).cmsg_len as usize))2323 next as usize + super::CMSG_ALIGN((*next).cmsg_len as usize) > max
1654 super::CMSG_ALIGN((*cmsg).cmsg_len as usize))
2001 + super::CMSG_ALIGN((*cmsg).cmsg_len as usize))