Lines Matching defs:cmsghdr
851 pub struct cmsghdr {
3238 pub fn CMSG_DATA(cmsg: *const cmsghdr) -> *mut c_uchar {
3242 pub fn CMSG_NXTHDR(mhdr: *const msghdr, cmsg: *const cmsghdr)
3243 -> *mut cmsghdr
3245 if ((*cmsg).cmsg_len as ::size_t) < ::mem::size_of::<cmsghdr>() {
3246 0 as *mut cmsghdr
3247 } else if __CMSG_NEXT(cmsg).add(::mem::size_of::<cmsghdr>())
3249 0 as *mut cmsghdr
3255 pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr {
3256 if (*mhdr).msg_controllen as ::size_t >= ::mem::size_of::<cmsghdr>() {
3259 0 as *mut cmsghdr
3269 (CMSG_ALIGN(len as ::size_t) + CMSG_ALIGN(::mem::size_of::<cmsghdr>()))
3274 (CMSG_ALIGN(::mem::size_of::<cmsghdr>()) + len as ::size_t) as ::c_uint
3327 fn __CMSG_LEN(cmsg: *const cmsghdr) -> ::ssize_t {
3332 fn __CMSG_NEXT(cmsg: *const cmsghdr) -> *mut c_uchar {