Searched refs:cmsg (Results 1 – 4 of 4) sorted by relevance
46 for (struct cmsghdr* cmsg = CMSG_FIRSTHDR(msg); cmsg; cmsg = CMSG_NXTHDR(msg, cmsg)) { in track_fds() local47 if (cmsg->cmsg_type != SCM_RIGHTS) { in track_fds()51 if (cmsg->cmsg_len <= sizeof(struct cmsghdr)) { in track_fds()55 size_t data_length = cmsg->cmsg_len - sizeof(struct cmsghdr); in track_fds()62 memcpy(&fd, CMSG_DATA(cmsg) + offset, sizeof(int)); in track_fds()
31 cmsghdr* __cmsg_nxthdr(msghdr* msg, cmsghdr* cmsg) { in __cmsg_nxthdr() argument33 ptr = reinterpret_cast<cmsghdr*>(reinterpret_cast<char*>(cmsg) + CMSG_ALIGN(cmsg->cmsg_len)); in __cmsg_nxthdr()
176 struct cmsghdr* cmsg = CMSG_FIRSTHDR(&msg_hdr); in HandleTracedPerfSignal() local177 cmsg->cmsg_level = SOL_SOCKET; in HandleTracedPerfSignal()178 cmsg->cmsg_type = SCM_RIGHTS; in HandleTracedPerfSignal()179 cmsg->cmsg_len = static_cast<size_t>(CMSG_LEN(raw_ctl_data_sz)); in HandleTracedPerfSignal()180 memcpy(CMSG_DATA(cmsg), send_fds, num_fds * sizeof(int)); in HandleTracedPerfSignal()
105 #define CMSG_NXTHDR(mhdr, cmsg) __cmsg_nxthdr((mhdr), (cmsg)) argument107 #define CMSG_DATA(cmsg) (((unsigned char*)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) argument113 …OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long… argument