/system/core/mkbootimg/ |
mkbootimg.c | 116 memset(&hdr, 0, sizeof(hdr)); 223 SHA_update(&ctx, &hdr.kernel_size, sizeof(hdr.kernel_size)); 225 SHA_update(&ctx, &hdr.ramdisk_size, sizeof(hdr.ramdisk_size)); 227 SHA_update(&ctx, &hdr.second_size, sizeof(hdr.second_size)); 230 SHA_DIGEST_SIZE > sizeof(hdr.id) ? sizeof(hdr.id) : SHA_DIGEST_SIZE); 238 if(write(fd, &hdr, sizeof(hdr)) != sizeof(hdr)) goto fail; 239 if(write_padding(fd, pagesize, sizeof(hdr))) goto fail;
|
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/ |
driver_ndis.c | 394 UCHAR Data[sizeof(ULONG)]; 400 UCHAR Data[sizeof(ULONG)]; 420 size_t buflen = sizeof(*o) + len; 433 o, sizeof(NDISUIO_QUERY_OID), o, buflen, &written, 440 hdrlen = sizeof(NDISUIO_QUERY_OID) - sizeof(o->Data); 463 buf = os_zalloc(sizeof(*o) + len); 499 os_snprintf(txt, sizeof(txt), "NDIS: Set OID %08x", oid); 502 buflen = sizeof(*o) + len; 503 reallen = buflen - sizeof(o->Data) [all...] |
/external/chromium/third_party/icu/source/tools/tzcode/ |
zdump.c | 409 fakeargv = (char **) malloc((size_t) (argc + count) * sizeof *argv); 411 if ((fakeargv = (char **) malloc((size_t) (argc + count) * sizeof *argv)) == NULL) { 438 sizeof *fakeenv)); 507 (void) strncpy(buf, abbr(&tm), (sizeof buf) - 1); 529 (sizeof buf) - 1); 544 (sizeof buf) - 1); 602 if (sizeof (time_t) == sizeof (float)) { 605 } else if (sizeof (time_t) == sizeof (double)) [all...] |
/external/icu4c/tools/tzcode/ |
zdump.c | 409 fakeargv = (char **) malloc((size_t) (argc + count) * sizeof *argv); 411 if ((fakeargv = (char **) malloc((size_t) (argc + count) * sizeof *argv)) == NULL) { 438 sizeof *fakeenv)); 507 (void) strncpy(buf, abbr(&tm), (sizeof buf) - 1); 529 (sizeof buf) - 1); 544 (sizeof buf) - 1); 602 if (sizeof (time_t) == sizeof (float)) { 605 } else if (sizeof (time_t) == sizeof (double)) [all...] |
/libcore/luni/src/main/native/ |
org_apache_harmony_luni_util_FloatingPointParser.cpp | 104 #define allocateU64(x, n) if (!((x) = reinterpret_cast<uint64_t*>(malloc((n) * sizeof(uint64_t))))) goto OutOfMemory; 173 memcpy (fNoOverflow, f, sizeof (uint64_t) * index); 187 memcpy (f, fNoOverflow, sizeof (uint64_t) * index); 364 memset (x + length, 0, sizeof (uint64_t) * (xLength - length)); 365 memcpy (x, f, sizeof (uint64_t) * length); 370 memset (y + 1, 0, sizeof (uint64_t) * (yLength - 1)); 378 memset (x + length, 0, sizeof (uint64_t) * (xLength - length)); 379 memcpy (x, f, sizeof (uint64_t) * length); 394 memset (y + 1, 0, sizeof (uint64_t) * (yLength - 1)); 403 memset (x + length, 0, sizeof (uint64_t) * (xLength - length)) [all...] |
/bionic/libc/bionic/ |
utmp.c | 64 if (fread(&utmp, sizeof(utmp), 1, ut) == 1) 83 if (len >= sizeof(utfile)) 90 (void)strlcpy(utfile, fname, sizeof(utfile));
|
/dalvik/dvz/ |
dvz.c | 28 # define NELEM(x) ((int) (sizeof(x) / sizeof((x)[0]))) 70 memset(&sa, 0, sizeof(sa));
|
/development/host/windows/usb/api/ |
adb_interface.cpp | 79 CopyMemory(desc, usb_device_descriptor(), sizeof(USB_DEVICE_DESCRIPTOR));
97 sizeof(USB_CONFIGURATION_DESCRIPTOR));
114 CopyMemory(desc, usb_interface_descriptor(), sizeof(USB_INTERFACE_DESCRIPTOR));
|
/device/samsung/crespo/alsa-utils/m4/ |
size_max.m4 | 28 _AC_COMPUTE_INT([sizeof (size_t) * CHAR_BIT - 1], size_t_bits_minus_1, 31 _AC_COMPUTE_INT([sizeof (size_t) <= sizeof (unsigned int)], fits_in_uint,
|
/external/blktrace/btt/ |
unplug_hist.c | 30 int hist[NBKTS * sizeof(int)]; 39 hbp = malloc(sizeof(*hbp)); 41 memset(hbp->hist, 0, NBKTS * sizeof(int));
|
/external/bluetooth/bluez/input/ |
fakehid.c | 229 memset(buff, 0, sizeof(buff)); 231 if (g_io_channel_read(chan, buff, sizeof(buff), &size) != 244 memset(&event, 0, sizeof(event)); 249 if (write(fake->uinput, &event, sizeof(event)) != sizeof(event)) { 254 memset(&event, 0, sizeof(event)); 258 if (write(fake->uinput, &event, sizeof(event)) != sizeof(event)) { 292 memset(&dev, 0, sizeof(dev)); 293 snprintf(dev.name, sizeof(dev.name), "%s", "PS3 Remote Controller") [all...] |
/external/bluetooth/glib/tests/refcount/ |
objects.c | 41 sizeof (GTestClass), 47 sizeof (GTest), 128 test_threads = g_array_new (FALSE, FALSE, sizeof (GThread *));
|
/external/chromium/base/ |
registry.cc | 62 DWORD ncount = sizeof(name_)/sizeof(*name_); 63 value_size_ = sizeof(value_); 131 DWORD ncount = sizeof(name_)/sizeof(*name_); 254 DWORD bufsize = sizeof(buf)/sizeof(*buf); 284 DWORD type = REG_SZ, size = sizeof(raw_value); 309 DWORD type = REG_DWORD, size = sizeof(DWORD), result = 0; 312 && size == sizeof(DWORD)) [all...] |
sys_info_win.cc | 26 memory_info.dwLength = sizeof(memory_info); 74 info.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); 117 info.dwOSVersionInfoSize = sizeof(info);
|
/external/chromium/third_party/icu/source/common/ |
udataswp.c | 252 if( (length>=0 && length<sizeof(DataHeader)) || 265 if( headerSize<sizeof(DataHeader) || 266 infoSize<sizeof(UDataInfo) || 267 headerSize<(sizeof(pHeader->dataHeader)+infoSize) || 297 infoSize+=sizeof(pHeader->dataHeader); 326 swapper=uprv_malloc(sizeof(UDataSwapper)); 331 uprv_memset(swapper, 0, sizeof(UDataSwapper)); 372 (length>=0 && length<sizeof(DataHeader)) || 380 if( (length>=0 && length<sizeof(DataHeader)) || 400 if( headerSize<sizeof(DataHeader) | [all...] |
/external/chromium/third_party/icu/source/i18n/ |
ucsdet.cpp | 19 #define ARRAY_SIZE(array) (sizeof array / sizeof array[0]) 21 #define NEW_ARRAY(type,count) (type *) uprv_malloc((count) * sizeof(type))
|
/external/chromium/third_party/icu/source/test/cintltst/ |
cucdapi.c | 13 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof(array[0])) 97 if(num!=(sizeof(jaCode)/sizeof(UScriptCode))){ 99 num, (sizeof(jaCode)/sizeof(UScriptCode))); 101 for(j=0;j<sizeof(jaCode)/sizeof(UScriptCode);j++) { 132 while(i<sizeof(testAbbr)/sizeof(UScriptCode)) [all...] |
/external/dropbear/libtomcrypt/demos/ |
hashsum.c | 43 x = fread(hash_buffer, 1, sizeof(hash_buffer), stdin); 45 } while (x == sizeof(hash_buffer)); 53 w = sizeof(hash_buffer);
|
/external/dropbear/libtomcrypt/src/encauth/gcm/ |
gcm_init.c | 41 if (16 % sizeof(LTC_FAST_TYPE)) { 66 zeromem(gcm->buf, sizeof(gcm->buf)); 67 zeromem(gcm->X, sizeof(gcm->X));
|
/external/dropbear/libtomcrypt/src/mac/hmac/ |
hmac_file.c | 63 x = fread(buf, 1, sizeof(buf), in); 69 } while (x == sizeof(buf)); 82 zeromem(buf, sizeof(buf));
|
/external/dropbear/libtomcrypt/src/mac/omac/ |
omac_done.c | 39 if ((omac->buflen > (int)sizeof(omac->block)) || (omac->buflen < 0) || 40 (omac->blklen > (int)sizeof(omac->block)) || (omac->buflen > omac->blklen)) { 76 zeromem(omac, sizeof(*omac));
|
omac_process.c | 39 if ((omac->buflen > (int)sizeof(omac->block)) || (omac->buflen < 0) || 40 (omac->blklen > (int)sizeof(omac->block)) || (omac->buflen > omac->blklen)) { 48 for (y = 0; y < 16; y += sizeof(LTC_FAST_TYPE)) {
|
/external/dropbear/libtomcrypt/src/mac/xcbc/ |
xcbc_init.c | 41 if (cipher_descriptor[cipher].block_length % sizeof(LTC_FAST_TYPE)) { 47 skey = XCALLOC(1, sizeof(*skey)); 75 zeromem(skey, sizeof(*skey));
|
/external/dropbear/libtomcrypt/src/modes/cbc/ |
cbc_decrypt.c | 48 if (cbc->blocklen < 1 || cbc->blocklen > (int)sizeof(cbc->IV)) { 56 if (cbc->blocklen % sizeof(LTC_FAST_TYPE)) { 72 for (x = 0; x < cbc->blocklen; x += sizeof(LTC_FAST_TYPE)) {
|
/external/elfutils/libelf/ |
gelf_getrel.c | 63 if (unlikely ((ndx + 1) * sizeof (Elf32_Rel) > data_scn->d.d_size)) 83 if (unlikely ((ndx + 1) * sizeof (Elf64_Rel) > data_scn->d.d_size)) 90 sizeof (Elf64_Rel));
|