Lines Matching defs:cmsghdr
203 pub struct cmsghdr {
1471 pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr {
1472 if (*mhdr).msg_controllen as usize >= ::mem::size_of::<cmsghdr>() {
1473 (*mhdr).msg_control as *mut cmsghdr
1475 0 as *mut cmsghdr
1479 pub fn CMSG_DATA(cmsg: *const ::cmsghdr) -> *mut ::c_uchar {
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
1494 cmsg: *const cmsghdr) -> *mut cmsghdr {
1499 + CMSG_ALIGN(::mem::size_of::<::cmsghdr>());
1503 0 as *mut ::cmsghdr
1506 as *mut ::cmsghdr