Home
last modified time | relevance | path

Searched refs:cmsg (Results 1 – 3 of 3) sorted by relevance

/libuv/test/
H A Dtest-pipe-sendmsg.c114 struct cmsghdr *cmsg; in TEST_IMPL() local
135 cmsg = CMSG_FIRSTHDR(&msg); in TEST_IMPL()
136 cmsg->cmsg_level = SOL_SOCKET; in TEST_IMPL()
137 cmsg->cmsg_type = SCM_RIGHTS; in TEST_IMPL()
138 cmsg->cmsg_len = msg.msg_controllen; in TEST_IMPL()
142 void* pv = CMSG_DATA(cmsg); in TEST_IMPL()
/libuv/src/unix/
H A Dstream.c783 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()
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()
993 cmsg->cmsg_type); 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
[all …]
H A Dcore.c730 struct cmsghdr* cmsg; in uv__recvmsg()
739 for (cmsg = CMSG_FIRSTHDR(msg); cmsg != NULL; cmsg = CMSG_NXTHDR(msg, cmsg)) in uv__recvmsg()
740 if (cmsg->cmsg_type == SCM_RIGHTS) in uv__recvmsg()
741 for (pfd = (int*) CMSG_DATA(cmsg), in uv__recvmsg()
742 end = (int*) ((char*) cmsg + cmsg->cmsg_len); in uv__recvmsg()

Completed in 11 milliseconds