Lines Matching refs:msgh
154 struct msghdr msgh;
155 (void)memset_s(&msgh, sizeof(msgh), 0, sizeof(msgh));
161 msgh.msg_iov = &iov;
162 msgh.msg_iovlen = 1;
165 msgh.msg_control = ctlBuffer;
166 msgh.msg_controllen = sizeof(ctlBuffer);
168 if (OHOS_TEMP_FAILURE_RETRY(recvmsg(sockfd, &msgh, 0)) < 0) {
173 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msgh);
198 struct msghdr msgh;
199 (void)memset_s(&msgh, sizeof(msgh), 0, sizeof(msgh));
207 msgh.msg_name = nullptr;
208 msgh.msg_namelen = 0;
215 msgh.msg_iov = &iov;
216 msgh.msg_iovlen = 1;
218 msgh.msg_control = controlMsg.buf;
219 msgh.msg_controllen = sizeof(controlMsg.buf);
221 if (OHOS_TEMP_FAILURE_RETRY(recvmsg(sockfd, &msgh, 0)) < 0) {
226 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msgh);
248 struct msghdr msgh;
249 (void)memset_s(&msgh, sizeof(msgh), 0, sizeof(msgh));
250 msgh.msg_name = nullptr;
251 msgh.msg_namelen = 0;
256 msgh.msg_iov = &iov;
257 msgh.msg_iovlen = 1;
259 msgh.msg_control = nullptr;
260 msgh.msg_controllen = 0;
262 if (OHOS_TEMP_FAILURE_RETRY(sendmsg(sockfd, &msgh, 0)) < 0) {
275 struct msghdr msgh;
276 (void)memset_s(&msgh, sizeof(msgh), 0, sizeof(msgh));
282 msgh.msg_iov = &iov;
283 msgh.msg_iovlen = 1;
287 msgh.msg_control = controlBuf;
288 msgh.msg_controllen = sizeof(controlBuf);
290 struct cmsghdr *cmsgh = CMSG_FIRSTHDR(&msgh);
300 if (OHOS_TEMP_FAILURE_RETRY(sendmsg(sockfd, &msgh, 0)) < 0) {