Searched refs:controlMsg (Results 1 – 3 of 3) sorted by relevance
104 struct cmsghdr *controlMsg = NULL; in RecvFileDescriptor() local148 …for (controlMsg = CMSG_FIRSTHDR(&hmsg); controlMsg != NULL; controlMsg = CMSG_NXTHDR(&hmsg, contro… in RecvFileDescriptor()149 if ((controlMsg->cmsg_level == SOL_SOCKET) && (controlMsg->cmsg_type == SCM_RIGHTS)) { in RecvFileDescriptor()150 cmdata = (int *)(uintptr_t)CMSG_DATA(controlMsg); in RecvFileDescriptor()
90 struct cmsghdr *controlMsg = CMSG_FIRSTHDR(&hmsg); in SendFileDescriptor() local91 if (controlMsg != NULL) { in SendFileDescriptor()92 controlMsg->cmsg_level = SOL_SOCKET; in SendFileDescriptor()93 controlMsg->cmsg_type = SCM_RIGHTS; in SendFileDescriptor()94 controlMsg->cmsg_len = CMSG_LEN(sizeof(int)); in SendFileDescriptor()95 cmdata = (int *)(uintptr_t)CMSG_DATA(controlMsg); in SendFileDescriptor()
205 } controlMsg; in RecvMsgCredFromSocket() local218 msgh.msg_control = controlMsg.buf; in RecvMsgCredFromSocket()219 msgh.msg_controllen = sizeof(controlMsg.buf); in RecvMsgCredFromSocket()