Lines Matching refs:cmsghdr
848 pub struct cmsghdr {
3307 pub fn CMSG_DATA(cmsg: *const cmsghdr) -> *mut c_uchar {
3311 pub fn CMSG_NXTHDR(mhdr: *const msghdr, cmsg: *const cmsghdr) -> *mut cmsghdr {
3312 if ((*cmsg).cmsg_len as size_t) < mem::size_of::<cmsghdr>() {
3313 core::ptr::null_mut::<cmsghdr>()
3314 } else if __CMSG_NEXT(cmsg).add(mem::size_of::<cmsghdr>()) >= __MHDR_END(mhdr) {
3315 core::ptr::null_mut::<cmsghdr>()
3321 pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr {
3322 if (*mhdr).msg_controllen as size_t >= mem::size_of::<cmsghdr>() {
3325 core::ptr::null_mut::<cmsghdr>()
3334 (CMSG_ALIGN(len as size_t) + CMSG_ALIGN(mem::size_of::<cmsghdr>())) as c_uint
3338 (CMSG_ALIGN(mem::size_of::<cmsghdr>()) + len as size_t) as c_uint
3405 fn __CMSG_LEN(cmsg: *const cmsghdr) -> ssize_t { in __CMSG_LEN()
3410 fn __CMSG_NEXT(cmsg: *const cmsghdr) -> *mut c_uchar { in __CMSG_NEXT()