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 | 171 alignas(cmsghdr) char control_buf[256] = {}; in HandleTracedPerfSignal() 176 struct cmsghdr* cmsg = CMSG_FIRSTHDR(&msg_hdr); in HandleTracedPerfSignal()
|
/bionic/libc/include/sys/ |
D | socket.h | 97 struct cmsghdr { struct 107 #define CMSG_DATA(cmsg) (((unsigned char*)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) argument 108 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len)) 109 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 111 ((msg)->msg_controllen >= sizeof(struct cmsghdr) \ 112 ? (struct cmsghdr*) (msg)->msg_control : (struct cmsghdr*) NULL) 113 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (u… 115 struct cmsghdr* _Nullable __cmsg_nxthdr(struct msghdr* _Nonnull __msg, struct cmsghdr* _Nonnull __c…
|
/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()
|