Home
last modified time | relevance | path

Searched refs:cmsg (Results 1 – 4 of 4) sorted by relevance

/bionic/libc/bionic/
Drecvmsg.cpp46 for (struct cmsghdr* cmsg = CMSG_FIRSTHDR(msg); cmsg; cmsg = CMSG_NXTHDR(msg, cmsg)) { in track_fds() local
47 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()
D__cmsg_nxthdr.cpp31 cmsghdr* __cmsg_nxthdr(msghdr* msg, cmsghdr* cmsg) { in __cmsg_nxthdr() argument
33 ptr = reinterpret_cast<cmsghdr*>(reinterpret_cast<char*>(cmsg) + CMSG_ALIGN(cmsg->cmsg_len)); in __cmsg_nxthdr()
Dandroid_profiling_dynamic.cpp176 struct cmsghdr* cmsg = CMSG_FIRSTHDR(&msg_hdr); in HandleTracedPerfSignal() local
177 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()
/bionic/libc/include/sys/
Dsocket.h105 #define CMSG_NXTHDR(mhdr, cmsg) __cmsg_nxthdr((mhdr), (cmsg)) argument
107 #define CMSG_DATA(cmsg) (((unsigned char*)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) argument
113 …OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long… argument