Lines Matching defs:msgh
118 struct msghdr& msgh, struct iovec& iov)
122 msgh.msg_iov = &iov;
123 msgh.msg_iovlen = 1; // 1 is length of io vector
125 msgh.msg_control = control.data();
126 msgh.msg_controllen = control.size();
128 msgh.msg_name = nullptr;
129 msgh.msg_namelen = 0;
130 msgh.msg_flags = 0;
133 pid_t ReadPidFromMsgh(struct msghdr& msgh)
135 struct cmsghdr* cmsg = CMSG_FIRSTHDR(&msgh);
239 struct msghdr msgh = {0};
244 InitMsgh(buffer, BUFFER_SIZE, control, msgh, iov);
246 int ret = recvmsg(socketId_, &msgh, 0);
251 pid_t uCredPid = ReadPidFromMsgh(msgh);