Lines Matching refs:hdr
46 struct cmsghdr hdr;
63 ctl.hdr.cmsg_len = msg.msg_controllen;
64 ctl.hdr.cmsg_level = SOL_SOCKET;
65 ctl.hdr.cmsg_type = SCM_RIGHTS;
76 if (ctl.hdr.cmsg_level != SOL_SOCKET || ctl.hdr.cmsg_type != SCM_RIGHTS)
78 n = (ctl.hdr.cmsg_len - sizeof(ctl.hdr)) / sizeof(fds[0]);
115 struct csfdhdr hdr;
240 if (!(m = read(fd, &hdr, sizeof(hdr))))
242 m = read(fd, &hdr, sizeof(hdr));
243 if (m != sizeof(hdr))
246 messagef((state->id, NiL, -1, "recv: %d: hdr read error", fd));
249 if (hdr.count <= 0)
252 messagef((state->id, NiL, -1, "recv: %d: invalid hdr count %d", fd, hdr.count));
255 for (i = 0; i < hdr.count; i++)
265 id->pid = hdr.pid;