Lines Matching defs:cmsghdr
431 pub struct cmsghdr {
2517 pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr {
2518 if (*mhdr).msg_controllen as usize >= ::mem::size_of::<cmsghdr>() {
2519 (*mhdr).msg_control as *mut cmsghdr
2521 0 as *mut cmsghdr
2525 pub fn CMSG_NXTHDR(mhdr: *const ::msghdr, cmsg: *const ::cmsghdr)
2526 -> *mut ::cmsghdr
2529 let next = cmsg as usize + msg + _CMSG_ALIGN(::mem::size_of::<::cmsghdr>());
2531 0 as *mut ::cmsghdr
2533 (cmsg as usize + msg) as *mut ::cmsghdr
2537 pub fn CMSG_DATA(cmsg: *const ::cmsghdr) -> *mut ::c_uchar {
2539 .offset(_CMSG_ALIGN(::mem::size_of::<::cmsghdr>()) as isize)
2543 _CMSG_ALIGN(::mem::size_of::<::cmsghdr>()) as ::c_uint + length
2547 (_CMSG_ALIGN(::mem::size_of::<cmsghdr>()) + _CMSG_ALIGN(length as usize) )