/prebuilts/ndk/r11/platforms/android-18/arch-mips/usr/include/linux/ |
socket.h | 63 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg)) 64 #define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg)) 68 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) 74 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long) ((mhdr)->msg_controllen - ((char *)(cmsg) - (char *)(mhdr)->msg_control)) [all...] |
/prebuilts/ndk/r11/platforms/android-18/arch-x86/usr/include/linux/ |
socket.h | 63 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg)) 64 #define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg)) 68 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) 74 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long) ((mhdr)->msg_controllen - ((char *)(cmsg) - (char *)(mhdr)->msg_control)) [all...] |
/prebuilts/ndk/r11/platforms/android-19/arch-arm/usr/include/linux/ |
socket.h | 63 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg)) 64 #define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg)) 68 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) 74 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long) ((mhdr)->msg_controllen - ((char *)(cmsg) - (char *)(mhdr)->msg_control)) [all...] |
/prebuilts/ndk/r11/platforms/android-19/arch-mips/usr/include/linux/ |
socket.h | 63 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg)) 64 #define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg)) 68 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) 74 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long) ((mhdr)->msg_controllen - ((char *)(cmsg) - (char *)(mhdr)->msg_control)) [all...] |
/prebuilts/ndk/r11/platforms/android-19/arch-x86/usr/include/linux/ |
socket.h | 63 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg)) 64 #define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg)) 68 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) 74 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long) ((mhdr)->msg_controllen - ((char *)(cmsg) - (char *)(mhdr)->msg_control)) [all...] |
/prebuilts/ndk/r11/platforms/android-3/arch-arm/usr/include/linux/ |
socket.h | 63 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg)) 64 #define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg)) 68 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) 74 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long) ((mhdr)->msg_controllen - ((char *)(cmsg) - (char *)(mhdr)->msg_control)) [all...] |
/prebuilts/ndk/r11/platforms/android-4/arch-arm/usr/include/linux/ |
socket.h | 63 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg)) 64 #define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg)) 68 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) 74 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long) ((mhdr)->msg_controllen - ((char *)(cmsg) - (char *)(mhdr)->msg_control)) [all...] |
/prebuilts/ndk/r11/platforms/android-5/arch-arm/usr/include/linux/ |
socket.h | 63 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg)) 64 #define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg)) 68 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) 74 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long) ((mhdr)->msg_controllen - ((char *)(cmsg) - (char *)(mhdr)->msg_control)) [all...] |
/prebuilts/ndk/r11/platforms/android-8/arch-arm/usr/include/linux/ |
socket.h | 63 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg)) 64 #define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg)) 68 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) 74 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long) ((mhdr)->msg_controllen - ((char *)(cmsg) - (char *)(mhdr)->msg_control)) [all...] |
/prebuilts/ndk/r11/platforms/android-9/arch-arm/usr/include/linux/ |
socket.h | 63 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg)) 64 #define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg)) 68 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) 74 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long) ((mhdr)->msg_controllen - ((char *)(cmsg) - (char *)(mhdr)->msg_control)) [all...] |
/prebuilts/ndk/r11/platforms/android-9/arch-mips/usr/include/linux/ |
socket.h | 63 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg)) 64 #define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg)) 68 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) 74 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long) ((mhdr)->msg_controllen - ((char *)(cmsg) - (char *)(mhdr)->msg_control)) [all...] |
/prebuilts/ndk/r11/platforms/android-9/arch-x86/usr/include/linux/ |
socket.h | 63 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg)) 64 #define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg)) 68 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) 74 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long) ((mhdr)->msg_controllen - ((char *)(cmsg) - (char *)(mhdr)->msg_control)) [all...] |
/system/netd/client/ |
FwmarkClient.cpp | 90 char cmsg[CMSG_SPACE(sizeof(fd))]; member in union:__anon114577 94 memset(cmsgu.cmsg, 0, sizeof(cmsgu.cmsg)); 95 message.msg_control = cmsgu.cmsg; 96 message.msg_controllen = sizeof(cmsgu.cmsg);
|
/external/llvm/bindings/go/llvm/ |
executionengine.go | 93 var cmsg *C.char 94 fail := C.LLVMCreateExecutionEngineForModule(&ee.C, m.C, &cmsg) 97 err = errors.New(C.GoString(cmsg)) 98 C.LLVMDisposeMessage(cmsg) 104 var cmsg *C.char 105 fail := C.LLVMCreateInterpreterForModule(&ee.C, m.C, &cmsg) 108 err = errors.New(C.GoString(cmsg)) 109 C.LLVMDisposeMessage(cmsg) 121 var cmsg *C.char 122 fail := C.LLVMCreateMCJITCompilerForModule(&ee.C, m.C, &options.C, C.size_t(unsafe.Sizeof(C.struct_LLVMMCJITCompilerOptions{})), &cmsg) [all...] |
/external/ltp/utils/sctp/testlib/ |
sctputil.c | 58 /* This function prints the cmsg data. */ 89 printf("UNKNOWN CMSG: %d\n", type); 99 struct cmsghdr *cmsg; local 105 for (cmsg = CMSG_FIRSTHDR(msg); 106 cmsg != NULL; 107 cmsg = CMSG_NXTHDR(msg, cmsg)) { 108 data = (sctp_cmsg_data_t *)CMSG_DATA(cmsg); 109 test_print_cmsg(cmsg->cmsg_type, data); 279 struct cmsghdr *cmsg = NULL local [all...] |
/external/ltp/utils/sctp/func_tests/ |
test_assoc_abort.c | 74 struct cmsghdr *cmsg; local 125 cmsg = CMSG_FIRSTHDR(&outmessage); 126 cmsg->cmsg_level = IPPROTO_SCTP; 127 cmsg->cmsg_type = SCTP_SNDRCV; 128 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); 129 outmessage.msg_controllen = cmsg->cmsg_len; 130 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); 188 cmsg = CMSG_FIRSTHDR(&outmessage); 189 cmsg->cmsg_level = IPPROTO_SCTP; 190 cmsg->cmsg_type = SCTP_SNDRCV [all...] |
test_assoc_shutdown.c | 73 struct cmsghdr *cmsg; local 125 cmsg = CMSG_FIRSTHDR(&outmessage); 126 cmsg->cmsg_level = IPPROTO_SCTP; 127 cmsg->cmsg_type = SCTP_SNDRCV; 128 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); 129 outmessage.msg_controllen = cmsg->cmsg_len; 130 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); 189 cmsg = CMSG_FIRSTHDR(&outmessage); 190 cmsg->cmsg_level = IPPROTO_SCTP; 191 cmsg->cmsg_type = SCTP_SNDRCV [all...] |
test_inaddr_any.c | 73 struct cmsghdr *cmsg; local 157 cmsg = CMSG_FIRSTHDR(&outmessage); 158 cmsg->cmsg_level = IPPROTO_SCTP; 159 cmsg->cmsg_type = SCTP_SNDRCV; 160 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); 161 outmessage.msg_controllen = cmsg->cmsg_len; 162 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); 205 cmsg = CMSG_FIRSTHDR(&outmessage); 206 cmsg->cmsg_level = IPPROTO_SCTP; 207 cmsg->cmsg_type = SCTP_SNDRCV [all...] |
test_1_to_1_events.c | 65 struct cmsghdr *cmsg; local 117 cmsg = CMSG_FIRSTHDR(&outmessage); 118 cmsg->cmsg_level = IPPROTO_SCTP; 119 cmsg->cmsg_type = SCTP_SNDRCV; 120 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); 121 outmessage.msg_controllen = cmsg->cmsg_len; 122 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg);
|
test_1_to_1_threads.c | 93 struct cmsghdr *cmsg; local 106 cmsg = CMSG_FIRSTHDR(&outmessage); 107 cmsg->cmsg_level = IPPROTO_SCTP; 108 cmsg->cmsg_type = SCTP_SNDRCV; 109 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); 110 outmessage.msg_controllen = cmsg->cmsg_len; 112 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg);
|
/prebuilts/go/darwin-x86/src/syscall/ |
syscall_solaris_amd64.go | 19 func (cmsg *Cmsghdr) SetLen(length int) { 20 cmsg.Len = uint32(length)
|
/prebuilts/go/linux-x86/src/syscall/ |
syscall_solaris_amd64.go | 19 func (cmsg *Cmsghdr) SetLen(length int) { 20 cmsg.Len = uint32(length)
|
/system/core/libcutils/ |
uevent.c | 73 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&hdr); local 74 if (cmsg == NULL || cmsg->cmsg_type != SCM_CREDENTIALS) { 79 struct ucred *cred = (struct ucred *)CMSG_DATA(cmsg);
|
/external/google-breakpad/src/client/linux/crash_generation/ |
crash_generation_client.cc | 64 char cmsg[kControlMsgSize] = ""; local 65 msg.msg_control = cmsg; 66 msg.msg_controllen = sizeof(cmsg);
|
/system/core/logd/ |
LogListener.cpp | 67 struct cmsghdr* cmsg = CMSG_FIRSTHDR(&hdr); local 68 while (cmsg != NULL) { 69 if (cmsg->cmsg_level == SOL_SOCKET && 70 cmsg->cmsg_type == SCM_CREDENTIALS) { 71 cred = (struct ucred*)CMSG_DATA(cmsg); 74 cmsg = CMSG_NXTHDR(&hdr, cmsg);
|