Searched refs:cmsghdr (Results 1 – 5 of 5) sorted by relevance
/bionic/libc/bionic/ |
D | __cmsg_nxthdr.cpp | 31 cmsghdr* __cmsg_nxthdr(msghdr* msg, cmsghdr* cmsg) { in __cmsg_nxthdr() 32 cmsghdr* ptr; in __cmsg_nxthdr() 33 ptr = reinterpret_cast<cmsghdr*>(reinterpret_cast<char*>(cmsg) + CMSG_ALIGN(cmsg->cmsg_len)); in __cmsg_nxthdr()
|
D | recvmsg.cpp | 46 for (struct cmsghdr* cmsg = CMSG_FIRSTHDR(msg); cmsg; cmsg = CMSG_NXTHDR(msg, cmsg)) { 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()
|
D | android_profiling_dynamic.cpp | 163 alignas(cmsghdr) char control_buf[256] = {}; in HandleTracedPerfSignal() 168 struct cmsghdr* cmsg = CMSG_FIRSTHDR(&msg_hdr); in HandleTracedPerfSignal()
|
/bionic/libc/include/sys/ |
D | socket.h | 94 struct cmsghdr { struct 102 #define CMSG_DATA(cmsg) (((unsigned char*)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) argument 103 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len)) 104 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 106 ((msg)->msg_controllen >= sizeof(struct cmsghdr) \ 107 ? (struct cmsghdr*) (msg)->msg_control : (struct cmsghdr*) NULL) 108 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (u… 111 struct cmsghdr* __cmsg_nxthdr(struct msghdr* __msg, struct cmsghdr* __cmsg) __INTRODUCED_IN(21); 114 static inline struct cmsghdr* __cmsg_nxthdr(struct msghdr* msg, struct cmsghdr* cmsg) { in __cmsg_nxthdr() 115 struct cmsghdr* ptr = in __cmsg_nxthdr() [all …]
|
/bionic/tests/headers/posix/ |
D | sys_socket_h.c | 63 TYPE(struct cmsghdr); in sys_socket_h() 65 STRUCT_MEMBER(struct cmsghdr, size_t, cmsg_len); in sys_socket_h() 67 STRUCT_MEMBER(struct cmsghdr, socklen_t, cmsg_len); in sys_socket_h() 69 STRUCT_MEMBER(struct cmsghdr, int, cmsg_level); in sys_socket_h() 70 STRUCT_MEMBER(struct cmsghdr, int, cmsg_type); in sys_socket_h()
|