Lines Matching refs:cmsghdr
200 pub struct cmsghdr {
1080 pub fn CMSG_NXTHDR(mhdr: *const msghdr, cmsg: *const cmsghdr) -> *mut cmsghdr {
1083 + CMSG_ALIGN(mem::size_of::<cmsghdr>());
1086 (cmsg as usize + CMSG_ALIGN((*cmsg).cmsg_len as usize)) as *mut cmsghdr
1088 core::ptr::null_mut::<cmsghdr>()
1092 pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr {
1094 (*mhdr).msg_control as *mut cmsghdr
1096 core::ptr::null_mut::<cmsghdr>()
1100 pub fn CMSG_DATA(cmsg: *const cmsghdr) -> *mut c_uchar {
1101 (cmsg as *mut c_uchar).offset(CMSG_ALIGN(mem::size_of::<cmsghdr>()) as isize)
1105 (CMSG_ALIGN(length as usize) + CMSG_ALIGN(mem::size_of::<cmsghdr>())) as c_uint
1109 CMSG_ALIGN(mem::size_of::<cmsghdr>()) as c_uint + length