/external/e2fsprogs/misc/ |
uuidd.c | 138 sizeof(struct sockaddr_un)) < 0) { 152 memcpy(op_buf+1, num, sizeof(int)); 153 op_len += sizeof(int); 164 ret = read_all(s, (char *) &reply_len, sizeof(reply_len)); 180 if (reply_len >= (int) (16+sizeof(int))) 181 memcpy(buf+16, num, sizeof(int)); 186 if (*num >= (int) sizeof(int)) 187 memcpy(buf, num, sizeof(int)); 235 ret = call_daemon(socket_path, 0, reply_buf, sizeof(reply_buf), 0, 0); 259 sizeof(struct sockaddr_un)) < 0) [all...] |
/external/icu4c/test/intltest/ |
strtest.cpp | 38 if(U_SIZEOF_WCHAR_T!=sizeof(wchar_t)) { 39 errln("TestSizeofWCharT: U_SIZEOF_WCHAR_T!=sizeof(wchar_t) - U_SIZEOF_WCHAR_T needs to be fixed in platform.h"); 44 if(8!=sizeof(int64_t)) { 45 errln("TestSizeofTypes: 8!=sizeof(int64_t) - int64_t needs to be fixed in platform.h"); 47 if(8!=sizeof(uint64_t)) { 48 errln("TestSizeofTypes: 8!=sizeof(uint64_t) - uint64_t needs to be fixed in platform.h"); 51 if(8!=sizeof(double)) { 52 errln("8!=sizeof(double) - putil.c code may not work"); 54 if(4!=sizeof(int32_t)) { 55 errln("4!=sizeof(int32_t)") [all...] |
/external/wpa_supplicant/ |
driver_broadcom.c | 122 if (broadcom_ioctl(drv, WLC_GET_SSID, &s, sizeof(s)) == -1) 135 os_memset(&ea, enable ? 0xff : 0, sizeof(ea)); 136 if (broadcom_ioctl(drv, WLC_GET_WPA_AUTH, &wauth, sizeof(wauth)) == 138 broadcom_ioctl(drv, WLC_GET_WSEC, &wsec, sizeof(wsec)) == -1) 149 if (broadcom_ioctl(drv, WLC_SET_WPA_AUTH, &wauth, sizeof(wauth)) == 151 broadcom_ioctl(drv, WLC_SET_WSEC, &wsec, sizeof(wsec)) == -1) 155 broadcom_ioctl(drv, 122, &ea, sizeof(ea)); 169 os_memset(&wkt, 0, sizeof wkt); 213 os_memcpy(&wkt.ea, addr, sizeof(wkt.ea)); 214 ret = broadcom_ioctl(drv, WLC_SET_KEY, &wkt, sizeof(wkt)) [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/ |
driver_broadcom.c | 127 if (broadcom_ioctl(drv, WLC_GET_SSID, &s, sizeof(s)) == -1) 140 os_memset(&ea, enable ? 0xff : 0, sizeof(ea)); 141 if (broadcom_ioctl(drv, WLC_GET_WPA_AUTH, &wauth, sizeof(wauth)) == 143 broadcom_ioctl(drv, WLC_GET_WSEC, &wsec, sizeof(wsec)) == -1) 154 if (broadcom_ioctl(drv, WLC_SET_WPA_AUTH, &wauth, sizeof(wauth)) == 156 broadcom_ioctl(drv, WLC_SET_WSEC, &wsec, sizeof(wsec)) == -1) 160 broadcom_ioctl(drv, 122, &ea, sizeof(ea)); 174 os_memset(&wkt, 0, sizeof wkt); 218 os_memcpy(&wkt.ea, addr, sizeof(wkt.ea)); 219 ret = broadcom_ioctl(drv, WLC_SET_KEY, &wkt, sizeof(wkt)) [all...] |
/system/wlan/ti/sta_dk_4_0_4_32/common/src/hal/hw_ctrl/ |
whalHwMboxConfig.c | 64 pObj = os_memoryAlloc (hOs, sizeof(HwMboxConfig_T)); 68 os_memoryZero (hOs, (void *)pObj, sizeof(HwMboxConfig_T)); 90 os_memoryFree(pHwMboxConfig->hOs, pHwMboxConfig, sizeof(HwMboxConfig_T)); 133 os_memoryZero(pHwMboxConfig->hOs, (void *)pCfg, sizeof(*pCfg)); 138 pCfg->memConfig.EleHdr.len = sizeof(*pCfg) - sizeof(EleHdrStruct); 171 pCfg->memConfig.EleHdr.len -= (NUM_ACCESS_CATEGORIES_QUEUES - pDmaParams->NumTxQueues) * sizeof(ACXtxQueueConfig); 176 return CmdQueue_CmdConfigure (pHwMboxConfig->hCmdMboxQueue, pCfg, sizeof(*pCfg)); 203 pCfg->EleHdr.len = sizeof(*pCfg) - sizeof(EleHdrStruct) [all...] |
/bionic/libc/kernel/common/linux/ |
in.h | 125 #define IP_MSFILTER_SIZE(numsrc) (sizeof(struct ip_msfilter) - sizeof(__u32) + (numsrc) * sizeof(__u32)) 149 #define GROUP_FILTER_SIZE(numsrc) (sizeof(struct group_filter) - sizeof(struct __kernel_sockaddr_storage) + (numsrc) * sizeof(struct __kernel_sockaddr_storage)) 164 unsigned char __pad[__SOCK_SIZE__ - sizeof(short int) - 165 sizeof(unsigned short int) - sizeof(struct in_addr)];
|
/development/ndk/platforms/android-3/include/linux/ |
in.h | 125 #define IP_MSFILTER_SIZE(numsrc) (sizeof(struct ip_msfilter) - sizeof(__u32) + (numsrc) * sizeof(__u32)) 149 #define GROUP_FILTER_SIZE(numsrc) (sizeof(struct group_filter) - sizeof(struct __kernel_sockaddr_storage) + (numsrc) * sizeof(struct __kernel_sockaddr_storage)) 164 unsigned char __pad[__SOCK_SIZE__ - sizeof(short int) - 165 sizeof(unsigned short int) - sizeof(struct in_addr)];
|
/external/chromium/base/ |
sha2_unittest.cc | 23 base::SHA256HashString(input1, output1, sizeof(output1)); 28 base::SHA256HashString(input1, output_truncated1, sizeof(output_truncated1)); 29 for (size_t i = 0; i < sizeof(output_truncated1); i++) 47 base::SHA256HashString(input2, output2, sizeof(output2)); 52 base::SHA256HashString(input2, output_truncated2, sizeof(output_truncated2)); 53 for (size_t i = 0; i < sizeof(output_truncated2); i++) 70 base::SHA256HashString(input3, output3, sizeof(output3)); 75 base::SHA256HashString(input3, output_truncated3, sizeof(output_truncated3)); 76 for (size_t i = 0; i < sizeof(output_truncated3); i++)
|
/external/chromium/googleurl/base/ |
basictypes.h | 38 #define arraysize(array) (sizeof(ArraySizeHelper(array))) 59 // ARRAYSIZE(arr) works by inspecting sizeof(arr) (the # of bytes in 60 // the array) and sizeof(*(arr)) (the # of bytes in one array 68 // !(sizeof(a) & sizeof(*(a))) to size_t in order to ensure the final 79 ((sizeof(a) / sizeof(*(a))) / \ 80 static_cast<size_t>(!(sizeof(a) % sizeof(*(a)))))
|
/external/chromium/third_party/icu/source/common/ |
cpputils.h | 27 { uprv_memcpy(dst, src, (size_t)(count * sizeof(*src))); } 32 { uprv_memcpy(dst+dstStart, src+srcStart, (size_t)(count * sizeof(*src))); } 36 { uprv_memcpy(dst, src, (size_t)(count * sizeof(*src))); } 41 { uprv_memcpy(dst+dstStart, src+srcStart, (size_t)(count * sizeof(*src))); } 45 { uprv_memcpy(dst, src, (size_t)(count * sizeof(*src))); } 50 { uprv_memcpy(dst+dstStart, src+srcStart, (size_t)(count * sizeof(*src))); } 54 { uprv_memcpy(dst, src, (size_t)(count * sizeof(*src))); } 59 { uprv_memcpy(dst+dstStart, src+srcStart, (size_t)(count * sizeof(*src))); } 65 { uprv_memcpy(dst+dstStart, src+srcStart, (size_t)(count * sizeof(*src))); }
|
/external/dhcpcd/ |
signals.c | 54 if (write(signal_pipe[1], &sig, sizeof(sig)) != sizeof(sig)) 76 memset(buf, 0, sizeof(buf)); 77 bytes = read(signal_pipe[0], buf, sizeof(buf)); 78 if (bytes >= 0 && (size_t)bytes >= sizeof(sig)) 79 memcpy(&sig, buf, sizeof(sig)); 107 memset(&sa, 0, sizeof(sa)); 111 for (i = 0; i < sizeof(handle_sigs) / sizeof(handle_sigs[0]); i++)
|
/external/e2fsprogs/ext2ed/ |
inode_com.c | 42 group_offset=file_system_info.first_group_desc_offset+group_num*sizeof (struct ext2_group_desc); 44 low_read ((char *) &desc,sizeof (struct ext2_group_desc),group_offset); 46 entry_num=(device_offset-desc.bg_inode_table*file_system_info.block_size)/sizeof (struct ext2_inode); 52 device_offset-=sizeof (struct ext2_inode)*mult; 90 group_offset=file_system_info.first_group_desc_offset+group_num*sizeof (struct ext2_group_desc); 92 low_read ((char *) &desc,sizeof (struct ext2_group_desc),group_offset); 94 entry_num=(device_offset-desc.bg_inode_table*file_system_info.block_size)/sizeof (struct ext2_inode); 100 device_offset+=sizeof (struct ext2_inode)*mult; 132 group_offset=file_system_info.first_group_desc_offset+group_num*sizeof (struct ext2_group_desc); 134 low_read ((char *) &desc,sizeof (struct ext2_group_desc),group_offset) [all...] |
/external/expat/tests/ |
chardata.c | 44 int maxchars = sizeof(storage->data) / sizeof(storage->data[0]); 54 if (len + storage->count < sizeof(storage->data)) { 67 maxchars = sizeof(storage->data) / sizeof(storage->data[0]); 75 if (len + storage->count < sizeof(storage->data)) { 77 len * sizeof(storage->data[0])); 94 if (sizeof(XML_Char) == 1) 126 if (memcmp(expected, storage->data, len * sizeof(storage->data[0])) != 0) {
|
/external/icu4c/common/ |
cpputils.h | 27 { uprv_memcpy(dst, src, (size_t)(count * sizeof(*src))); } 32 { uprv_memcpy(dst+dstStart, src+srcStart, (size_t)(count * sizeof(*src))); } 36 { uprv_memcpy(dst, src, (size_t)(count * sizeof(*src))); } 41 { uprv_memcpy(dst+dstStart, src+srcStart, (size_t)(count * sizeof(*src))); } 45 { uprv_memcpy(dst, src, (size_t)(count * sizeof(*src))); } 50 { uprv_memcpy(dst+dstStart, src+srcStart, (size_t)(count * sizeof(*src))); } 54 { uprv_memcpy(dst, src, (size_t)(count * sizeof(*src))); } 59 { uprv_memcpy(dst+dstStart, src+srcStart, (size_t)(count * sizeof(*src))); } 65 { uprv_memcpy(dst+dstStart, src+srcStart, (size_t)(count * sizeof(*src))); }
|
/external/iproute2/ip/ |
ipntable.c | 77 memset(&req, 0, sizeof(req)); 79 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ndtmsg)); 87 memset(&parms_buf, 0, sizeof(parms_buf)); 102 addattr_l(&req.n, sizeof(req), NDTA_NAME, namep, len); 112 addattr32(&req.n, sizeof(req), NDTA_THRESH1, thresh1); 122 addattr32(&req.n, sizeof(req), NDTA_THRESH2, thresh2); 132 addattr32(&req.n, sizeof(req), NDTA_THRESH3, thresh3); 142 addattr_l(&req.n, sizeof(req), NDTA_GC_INTERVAL, 143 &gc_int, sizeof(gc_int)); 154 rta_addattr32(parms_rta, sizeof(parms_buf) [all...] |
/external/iproute2/tc/ |
f_tcindex.c | 58 addattr_l(n,4096,TCA_TCINDEX_HASH,&hash,sizeof(hash)); 69 addattr_l(n,4096,TCA_TCINDEX_MASK,&mask,sizeof(mask)); 81 sizeof(shift)); 87 sizeof(value)); 93 sizeof(value)); 139 if (RTA_PAYLOAD(tb[TCA_TCINDEX_HASH]) < sizeof(hash)) 147 if (RTA_PAYLOAD(tb[TCA_TCINDEX_MASK]) < sizeof(mask)) 155 if (RTA_PAYLOAD(tb[TCA_TCINDEX_SHIFT]) < sizeof(shift)) 164 sizeof(fall_through))
|
/external/skia/src/animator/ |
SkTypedArray.cpp | 68 fArray = (int32_t*)sk_malloc_throw(count * sizeof(int32_t)); 72 memcpy(fArray, src, sizeof(int32_t) * count); 88 memcpy(fArray, src.fArray, sizeof(int32_t) * src.fCount); 98 (a.fCount == 0 || !memcmp(a.fArray, b.fArray, a.fCount * sizeof(int32_t))); 121 memcpy(fArray + oldCount, src, sizeof(int32_t) * count); 148 int32_t* array = (int32_t*)sk_malloc_throw(size * sizeof(int32_t)); 149 memcpy(array, fArray, fCount * sizeof(int32_t)); 167 memmove(dst + count, dst, sizeof(int32_t) * (oldCount - index)); 169 memcpy(dst, src, sizeof(int32_t) * count);
|
/external/tcpdump/ |
print-rx.c | 441 if (snapend - bp < (int)sizeof (struct rx_header)) { 592 if (snapend - bp + 1 <= (int)(sizeof(struct rx_header) + sizeof(int32_t))) 605 rxent->opcode = EXTRACT_32BITS(bp + sizeof(struct rx_header)); 654 TCHECK2(bp[0], sizeof(int32_t) * 3); \ 656 bp += sizeof(int32_t); \ 658 bp += sizeof(int32_t); \ 660 bp += sizeof(int32_t); \ 665 TCHECK2(bp[0], sizeof(int32_t)); \ 669 bp += sizeof(int32_t); [all...] |
/external/webkit/WebCore/platform/ |
StaticConstructors.h | 70 void * name[(sizeof(type) + sizeof(void *) - 1) / sizeof(void *)]; 73 void * name[(sizeof(type) + sizeof(void *) - 1) / sizeof(void *)]; 76 void * name[(sizeof(type) + sizeof(void *) - 1) / sizeof(void *)];
|
/external/webkit/WebCore/platform/text/ |
TextStream.cpp | 44 snprintf(buffer, sizeof(buffer) - 1, "%d", i); 51 snprintf(buffer, sizeof(buffer) - 1, "%u", i); 58 snprintf(buffer, sizeof(buffer) - 1, "%ld", i); 65 snprintf(buffer, sizeof(buffer) - 1, "%lu", i); 72 snprintf(buffer, sizeof(buffer) - 1, "%.2f", f); 79 snprintf(buffer, sizeof(buffer) - 1, "%.2f", d); 96 snprintf(buffer, sizeof(buffer) - 1, "%p", p); 115 snprintf(buffer, sizeof(buffer) - 1, "%I64i", i); 121 snprintf(buffer, sizeof(buffer) - 1, "%I64u", i);
|
/prebuilt/ndk/android-ndk-r4/platforms/android-3/arch-arm/usr/include/linux/ |
in.h | 125 #define IP_MSFILTER_SIZE(numsrc) (sizeof(struct ip_msfilter) - sizeof(__u32) + (numsrc) * sizeof(__u32)) 149 #define GROUP_FILTER_SIZE(numsrc) (sizeof(struct group_filter) - sizeof(struct __kernel_sockaddr_storage) + (numsrc) * sizeof(struct __kernel_sockaddr_storage)) 164 unsigned char __pad[__SOCK_SIZE__ - sizeof(short int) - 165 sizeof(unsigned short int) - sizeof(struct in_addr)];
|
/prebuilt/ndk/android-ndk-r4/platforms/android-4/arch-arm/usr/include/linux/ |
in.h | 125 #define IP_MSFILTER_SIZE(numsrc) (sizeof(struct ip_msfilter) - sizeof(__u32) + (numsrc) * sizeof(__u32)) 149 #define GROUP_FILTER_SIZE(numsrc) (sizeof(struct group_filter) - sizeof(struct __kernel_sockaddr_storage) + (numsrc) * sizeof(struct __kernel_sockaddr_storage)) 164 unsigned char __pad[__SOCK_SIZE__ - sizeof(short int) - 165 sizeof(unsigned short int) - sizeof(struct in_addr)];
|
/prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-arm/usr/include/linux/ |
in.h | 125 #define IP_MSFILTER_SIZE(numsrc) (sizeof(struct ip_msfilter) - sizeof(__u32) + (numsrc) * sizeof(__u32)) 149 #define GROUP_FILTER_SIZE(numsrc) (sizeof(struct group_filter) - sizeof(struct __kernel_sockaddr_storage) + (numsrc) * sizeof(struct __kernel_sockaddr_storage)) 164 unsigned char __pad[__SOCK_SIZE__ - sizeof(short int) - 165 sizeof(unsigned short int) - sizeof(struct in_addr)];
|
/prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-x86/usr/include/linux/ |
in.h | 125 #define IP_MSFILTER_SIZE(numsrc) (sizeof(struct ip_msfilter) - sizeof(__u32) + (numsrc) * sizeof(__u32)) 149 #define GROUP_FILTER_SIZE(numsrc) (sizeof(struct group_filter) - sizeof(struct __kernel_sockaddr_storage) + (numsrc) * sizeof(struct __kernel_sockaddr_storage)) 164 unsigned char __pad[__SOCK_SIZE__ - sizeof(short int) - 165 sizeof(unsigned short int) - sizeof(struct in_addr)];
|
/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-arm/usr/include/linux/ |
in.h | 125 #define IP_MSFILTER_SIZE(numsrc) (sizeof(struct ip_msfilter) - sizeof(__u32) + (numsrc) * sizeof(__u32)) 149 #define GROUP_FILTER_SIZE(numsrc) (sizeof(struct group_filter) - sizeof(struct __kernel_sockaddr_storage) + (numsrc) * sizeof(struct __kernel_sockaddr_storage)) 164 unsigned char __pad[__SOCK_SIZE__ - sizeof(short int) - 165 sizeof(unsigned short int) - sizeof(struct in_addr)];
|