Home | History | Annotate | Download | only in browser

Lines Matching refs:hdr

186   for (struct cmsghdr *hdr = CMSG_FIRSTHDR(&msg); hdr;
187 hdr = CMSG_NXTHDR(&msg, hdr)) {
188 if (hdr->cmsg_level != SOL_SOCKET)
190 if (hdr->cmsg_type == SCM_RIGHTS) {
191 const unsigned len = hdr->cmsg_len -
192 (((uint8_t*)CMSG_DATA(hdr)) - (uint8_t*)hdr);
201 HANDLE_EINTR(close(reinterpret_cast<int*>(CMSG_DATA(hdr))[i]));
204 partner_fd = reinterpret_cast<int*>(CMSG_DATA(hdr))[0];
205 signal_fd = reinterpret_cast<int*>(CMSG_DATA(hdr))[1];
207 } else if (hdr->cmsg_type == SCM_CREDENTIALS) {
209 reinterpret_cast<struct ucred*>(CMSG_DATA(hdr));