/external/valgrind/main/none/tests/ |
fdleak_cmsg.c | 3 sys/socket.h in order to make CMSG_SPACE and CMSG_LEN visible. */ 70 cmsg->cmsg_len = CMSG_LEN(sizeof(int) * 2); 134 cmsg->cmsg_len == CMSG_LEN(sizeof(int) * 2)) {
|
/bionic/libc/kernel/common/linux/ |
socket.h | 58 __kernel_size_t cmsg_len; member in struct:cmsghdr 70 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 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))) 89 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len));
|
/development/ndk/platforms/android-3/include/linux/ |
socket.h | 58 __kernel_size_t cmsg_len; member in struct:cmsghdr 70 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 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))) 89 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len));
|
/prebuilt/ndk/android-ndk-r4/platforms/android-3/arch-arm/usr/include/linux/ |
socket.h | 58 __kernel_size_t cmsg_len; member in struct:cmsghdr 70 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 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))) 89 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len));
|
/prebuilt/ndk/android-ndk-r4/platforms/android-4/arch-arm/usr/include/linux/ |
socket.h | 58 __kernel_size_t cmsg_len; member in struct:cmsghdr 70 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 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))) 89 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len));
|
/prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-arm/usr/include/linux/ |
socket.h | 58 __kernel_size_t cmsg_len; member in struct:cmsghdr 70 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 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))) 89 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len));
|
/prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-x86/usr/include/linux/ |
socket.h | 58 __kernel_size_t cmsg_len; member in struct:cmsghdr 70 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 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))) 89 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len));
|
/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-arm/usr/include/linux/ |
socket.h | 58 __kernel_size_t cmsg_len; member in struct:cmsghdr 70 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 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))) 89 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len));
|
/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-x86/usr/include/linux/ |
socket.h | 58 __kernel_size_t cmsg_len; member in struct:cmsghdr 70 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 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))) 89 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len));
|
/prebuilt/ndk/android-ndk-r5/platforms/android-3/arch-arm/usr/include/linux/ |
socket.h | 58 __kernel_size_t cmsg_len; member in struct:cmsghdr 70 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 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))) 89 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len));
|
/prebuilt/ndk/android-ndk-r6/platforms/android-3/arch-arm/usr/include/linux/ |
socket.h | 58 __kernel_size_t cmsg_len; member in struct:cmsghdr 70 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 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))) 89 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len));
|
/prebuilt/ndk/android-ndk-r6/platforms/android-3/arch-x86/usr/include/linux/ |
socket.h | 58 __kernel_size_t cmsg_len; member in struct:cmsghdr 70 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 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))) 89 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len));
|
/external/kernel-headers/original/linux/ |
socket.h | 74 __kernel_size_t cmsg_len; /* data byte count, including hdr */ member in struct:cmsghdr 91 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 97 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \ 98 (cmsg)->cmsg_len <= (unsigned long) \ 125 * HEADER. But caller still MUST check, that cmsg->cmsg_len is 135 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len));
|
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/ |
socket.h | 73 __kernel_size_t cmsg_len; /* data byte count, including hdr */ member in struct:cmsghdr 90 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 96 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \ 97 (cmsg)->cmsg_len <= (unsigned long) \ 122 * HEADER. But caller still MUST check, that cmsg->cmsg_len is 132 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len));
|
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/bits/ |
socket.h | 245 size_t cmsg_len; /* Length of data in cmsg_data plus length member in struct:cmsghdr 271 #define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len)) 282 if ((size_t) __cmsg->cmsg_len < sizeof (struct cmsghdr)) 287 + CMSG_ALIGN (__cmsg->cmsg_len)); 290 || ((unsigned char *) __cmsg + CMSG_ALIGN (__cmsg->cmsg_len)
|
/external/strace/ |
net.c | 1093 tprintf(", {cmsg_len=%zu, cmsg_level=", cmsg->cmsg_len); 1098 unsigned long cmsg_len; local 1101 cmsg_len = (len < cmsg->cmsg_len) ? len : cmsg->cmsg_len; 1104 && CMSG_LEN(sizeof(int)) <= cmsg_len) { 1109 while ((char *) fds < ((char *) cmsg + cmsg_len)) { 1120 && CMSG_LEN(sizeof(struct ucred)) <= cmsg_len) [all...] |
/system/core/libcutils/ |
zygote.c | 82 cmsg->cmsg_len = CMSG_LEN(3 * sizeof(int));
|
/external/webkit/Source/WebKit2/Platform/CoreIPC/unix/ |
ConnectionUnix.cpp | 363 cmsg->cmsg_len = CMSG_LEN(sizeof(int) * attachments.size()); 371 message.msg_controllen = cmsg->cmsg_len;
|
/external/ping6/ |
ping6.c | 867 scmsgp->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); 885 scmsgp->cmsg_len = CMSG_LEN(sizeof(int)); 894 scmsgp->cmsg_len = CMSG_LEN(0); 908 scmsgp->cmsg_len = CMSG_LEN(rthdrlen); [all...] |
/external/bluetooth/bluez/audio/ |
ipc.c | 94 msgh.msg_controllen = CMSG_LEN(sizeof(int));
|
/hardware/ti/omap4xxx/ion/ |
ion_test.c | 168 cmsg->cmsg_len = CMSG_LEN(sizeof(int));
|
/external/dnsmasq/src/ |
forward.c | 71 msg.msg_controllen = cmptr->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo)); 77 msg.msg_controllen = cmptr->cmsg_len = CMSG_LEN(sizeof(struct in_addr)); 88 msg.msg_controllen = cmptr->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo));
|
/frameworks/base/core/jni/ |
android_net_LocalSocketImpl.cpp | 471 = ((cmsgptr->cmsg_len - CMSG_LEN(0)) / sizeof(int)); 621 cmsg->cmsg_len = CMSG_LEN(sizeof fds);
|
/device/moto/stingray/ril/ |
tty2ttyd | |
/external/ipsec-tools/src/racoon/ |
sockmisc.c | 484 cm->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); 544 cm->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo));
|