Searched refs:cmsg_len (Results 1 – 7 of 7) sorted by relevance
36 size_t cmsg_len = CMSG_LEN(sizeof(int) * fds.size()); in SendFileDescriptorVector() local58 cmsg->cmsg_len = cmsg_len; in SendFileDescriptorVector()141 if (cmsg->cmsg_len % sizeof(int) != 0) { in ReceiveFileDescriptorVector()142 LOG(FATAL) << "cmsg_len(" << cmsg->cmsg_len << ") not aligned to sizeof(int)"; in ReceiveFileDescriptorVector()143 } else if (cmsg->cmsg_len <= CMSG_LEN(0)) { in ReceiveFileDescriptorVector()144 LOG(FATAL) << "cmsg_len(" << cmsg->cmsg_len << ") not long enough to hold any data"; in ReceiveFileDescriptorVector()148 size_t cmsg_fdcount = static_cast<size_t>(cmsg->cmsg_len - CMSG_LEN(0)) / sizeof(int); in ReceiveFileDescriptorVector()
41 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in SendFd()
108 cmsgh->cmsg_len = CMSG_LEN(sizeof(fd)); in send()
110 cmsg->cmsg_len = CMSG_LEN(sizeof send_fd); in sock_send_fd()
111 cmsg->cmsg_len = CMSG_LEN(sizeof(fd)); in run()139 cmsg->cmsg_len = CMSG_LEN(sizeof(fd)); in sendfd()
152 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in ion_share_test()
174 header->cmsg_len = CMSG_LEN(sizeof(int)); in socket_write_and_transfer_fd()