Lines Matching refs:cmsg
783 union uv__cmsg cmsg; in uv__try_write() local
790 memset(&cmsg, 0, sizeof(cmsg)); in uv__try_write()
800 msg.msg_control = &cmsg.hdr; in uv__try_write()
803 cmsg.hdr.cmsg_level = SOL_SOCKET; in uv__try_write()
804 cmsg.hdr.cmsg_type = SCM_RIGHTS; in uv__try_write()
805 cmsg.hdr.cmsg_len = CMSG_LEN(sizeof(fd_to_send)); in uv__try_write()
806 memcpy(CMSG_DATA(&cmsg.hdr), &fd_to_send, sizeof(fd_to_send)); in uv__try_write()
982 struct cmsghdr* cmsg; in uv__stream_recv_cmsg() local
990 for (cmsg = CMSG_FIRSTHDR(msg); cmsg != NULL; cmsg = CMSG_NXTHDR(msg, cmsg)) { in uv__stream_recv_cmsg()
991 if (cmsg->cmsg_type != SCM_RIGHTS) { in uv__stream_recv_cmsg()
993 cmsg->cmsg_type); in uv__stream_recv_cmsg()
997 assert(cmsg->cmsg_len >= CMSG_LEN(0)); in uv__stream_recv_cmsg()
998 count = cmsg->cmsg_len - CMSG_LEN(0); in uv__stream_recv_cmsg()
1002 p = (void*) CMSG_DATA(cmsg); in uv__stream_recv_cmsg()
1029 union uv__cmsg cmsg; in uv__read() local
1075 msg.msg_controllen = sizeof(cmsg); in uv__read()
1076 msg.msg_control = &cmsg.hdr; in uv__read()