/external/dropbear/libtomcrypt/demos/ |
encrypt.c | 159 fgets((char *)tmpkey,sizeof(tmpkey), stdin); 160 outlen = sizeof(key); 180 y = fread(inbuf,1,sizeof(inbuf),fdin); 191 } while (y == sizeof(inbuf)); 221 y = fread(inbuf,1,sizeof(inbuf),fdin); 232 } while (y == sizeof(inbuf));
|
/external/dropbear/libtomcrypt/src/mac/pmac/ |
pmac_init.c | 61 for (poly = 0; poly < (int)(sizeof(polys)/sizeof(polys[0])); poly++) { 71 if (pmac->block_len % sizeof(LTC_FAST_TYPE)) { 129 zeromem(pmac->block, sizeof(pmac->block)); 130 zeromem(pmac->Li, sizeof(pmac->Li)); 131 zeromem(pmac->checksum, sizeof(pmac->checksum));
|
/external/icu4c/io/ |
ufmt_cmn.c | 110 for (i = 0; i < (int32_t)sizeof(void *); i++) 112 for (i = (int32_t)sizeof(void *)-1; i >= 0 ; i--) 170 uint8_t bytes[sizeof(void*)]; 191 if (count - offset > (int32_t)(sizeof(void*)*NIBBLE_PER_BYTE)) { 192 offset = count - (int32_t)(sizeof(void*)*NIBBLE_PER_BYTE); 198 resultIdx = (int32_t)(sizeof(void*) - 1);
|
/external/iproute2/tc/ |
m_gact.c | 106 memset(&p, 0, sizeof (p)); 192 addattr_l(n, MAX_MSG, TCA_GACT_PARMS, &p, sizeof (p)); 195 addattr_l(n, MAX_MSG, TCA_GACT_PROB, &pp, sizeof (pp)); 228 fprintf(f, "gact action %s", action_n2a(p->action, b1, sizeof (b1))); 234 memset(&pp_dummy, 0, sizeof (pp_dummy)); 237 fprintf(f, "\n\t random type %s %s val %d",prob_n2a(pp->ptype), action_n2a(pp->paction, b2, sizeof (b2)), pp->pval);
|
/external/ipsec-tools/src/racoon/ |
kmpstat.c | 103 memset(&name, 0, sizeof(name)); 105 snprintf(name.sun_path, sizeof(name.sun_path), 112 if (connect(so, (struct sockaddr *)&name, sizeof(name)) < 0) { 149 if ((len = recv(so, &h, sizeof(h), MSG_PEEK)) == -1) 153 if (len < sizeof(h)) 215 memset(&hint, 0, sizeof(hint));
|
/external/openssl/crypto/asn1/ |
a_enum.c | 73 unsigned char buf[sizeof(long)+1]; 77 if (a->length < (int)(sizeof(long)+1)) 81 if ((a->data=(unsigned char *)OPENSSL_malloc(sizeof(long)+1)) != NULL) 82 memset((char *)a->data,0,sizeof(long)+1); 96 for (i=0; i<sizeof(long); i++) 121 if (a->length > (int)sizeof(long))
|
/external/openssl/crypto/bn/ |
bn_lib.c | 96 if (mult > (int)(sizeof(int)*8)-1) 97 mult=sizeof(int)*8-1; 103 if (high > (int)(sizeof(int)*8)-1) 104 high=sizeof(int)*8-1; 110 if (low > (int)(sizeof(int)*8)-1) 111 low=sizeof(int)*8-1; 117 if (mont > (int)(sizeof(int)*8)-1) 118 mont=sizeof(int)*8-1; 151 BIO_snprintf(data,sizeof data,"bn(%d,%d)", 152 (int)sizeof(BN_ULLONG)*8,(int)sizeof(BN_ULONG)*8) [all...] |
/external/openssl/crypto/ |
cversion.c | 72 static char buf[sizeof(DATE)+11]; 74 BIO_snprintf(buf,sizeof buf,"built on: %s",DATE); 83 static char buf[sizeof(CFLAGS)+11]; 85 BIO_snprintf(buf,sizeof buf,"compiler: %s",CFLAGS); 94 static char buf[sizeof(PLATFORM)+11]; 96 BIO_snprintf(buf,sizeof buf,"platform: %s", PLATFORM);
|
/external/openssl/crypto/sha/ |
sha256t.c | 65 if (memcmp(md,app_b1,sizeof(app_b1))) 75 if (memcmp(md,app_b2,sizeof(app_b2))) 95 if (memcmp(md,app_b3,sizeof(app_b3))) 108 if (memcmp(md,addenum_1,sizeof(addenum_1))) 118 if (memcmp(md,addenum_2,sizeof(addenum_2))) 135 if (memcmp(md,addenum_3,sizeof(addenum_3)))
|
/external/oprofile/libpopt/ |
poptconfig.c | 20 poptItem item = alloca(sizeof(*item)); 28 memset(item, 0, sizeof(*item)); 62 if (!strncmp(item->argv[i], "--POPTdesc=", sizeof("--POPTdesc=")-1)) { 63 f = item->argv[i] + sizeof("--POPTdesc="); 69 if (!strncmp(item->argv[i], "--POPTargs=", sizeof("--POPTargs=")-1)) { 70 f = item->argv[i] + sizeof("--POPTargs=");
|
/external/qemu/block/ |
qcow2-cluster.c | 49 new_l1_size2 = sizeof(uint64_t) * new_l1_size; 51 memcpy(new_l1_table, s->l1_table, s->l1_size * sizeof(uint64_t)); 68 sizeof(data)) != sizeof(data)) 71 qcow2_free_clusters(bs, s->l1_table_offset, s->l1_size * sizeof(uint64_t)); 85 memset(s->l2_cache, 0, s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t)); 86 memset(s->l2_cache_offsets, 0, L2_CACHE_SIZE * sizeof(uint64_t)); 87 memset(s->l2_cache_counts, 0, L2_CACHE_SIZE * sizeof(uint32_t)); 164 if (bdrv_pread(s->hd, l2_offset, l2_table, s->l2_size * sizeof(uint64_t)) != 165 s->l2_size * sizeof(uint64_t) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/audio/mme/ |
SDL_mmeaudio.c | 65 this = SDL_malloc(sizeof(SDL_AudioDevice)); 67 SDL_memset(this, 0, (sizeof *this)); 68 this->hidden = SDL_malloc((sizeof *this->hidden)); 77 SDL_memset(this->hidden, 0, (sizeof *this->hidden)); 126 shm = mmeAllocMem(sizeof(*shm)); 218 waveOutWrite(shm->sound, &(shm->wHdr[next_buffer]), sizeof(WAVEHDR));
|
/external/qemu/distrib/sdl-1.2.12/src/joystick/beos/ |
SDL_bejoystick.cc | 68 SDL_memset(SDL_joyport, 0, (sizeof SDL_joyport)); 69 SDL_memset(SDL_joyname, 0, (sizeof SDL_joyname)); 103 SDL_malloc(sizeof(*joystick->hwdata)); 108 SDL_memset(joystick->hwdata, 0, sizeof(*joystick->hwdata)); 128 SDL_malloc(joystick->naxes*sizeof(int16)); 130 SDL_malloc(joystick->nhats*sizeof(uint8));
|
/external/qemu/hw/ |
bt-sdp.c | 107 #define CONTINUATION_PARAM_SIZE (1 + sizeof(int)) 168 if (len <= sizeof(int)) 170 len -= sizeof(int); 171 memcpy(&start, req + 1, sizeof(int)); 200 rsp[len ++] = sizeof(int); 201 memcpy(rsp + len, &end, sizeof(int)); 289 if (len <= sizeof(int)) 291 len -= sizeof(int); 292 memcpy(&start, req + 1, sizeof(int)); 324 lst[end ++] = sizeof(int) [all...] |
/external/qemu/ |
migration-tcp.c | 57 socklen_t valsize = sizeof(val); 90 s = qemu_mallocz(sizeof(*s)); 114 ret = connect(s->fd, (struct sockaddr *)&addr, sizeof(addr)); 136 socklen_t addrlen = sizeof(addr); 195 setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (const char *)&val, sizeof(val)); 197 if (bind(s, (struct sockaddr *)&addr, sizeof(addr)) == -1)
|
/external/skia/src/gl/ |
SkGLTextCache.cpp | 51 glyph.fID, sizeof(strike->fGlyphIDArray[0])); 104 int index = SkTSearch(idArray, glyphCount, glyph.fID, sizeof(idArray[0])); 107 make_a_whole(idArray, index, glyphCount, sizeof(idArray)); 108 make_a_whole(offsetArray, index, glyphCount, sizeof(offsetArray[0])); 130 sk_bzero(fStrikeList, sizeof(fStrikeList)); 149 sk_bzero(fStrikeList, sizeof(fStrikeList));
|
/external/skia/src/ports/ |
SkFontHost_tables.cpp | 41 if (stream->read(&shared, sizeof(shared)) != sizeof(shared)) { 60 if (stream->read(&shared, sizeof(shared)) != sizeof(shared)) { 67 *offsetToDir = offset + sizeof(SkSFNTHeader); 96 size_t size = fCount * sizeof(SkSFNTDirEntry);
|
/external/skia/src/utils/ |
SkColorMatrix.cpp | 10 memset(fMat, 0, sizeof(fMat)); 17 memset(fMat, 0, sizeof(fMat)); 99 memcpy(fMat, result, sizeof(fMat)); 117 memset(fMat, 0, sizeof(fMat)); 143 memset(fMat, 0, sizeof(fMat)); 158 memset(fMat, 0, sizeof(fMat));
|
/external/stlport/test/unit/ |
sort_test.cpp | 131 int count = sizeof(numbers) / sizeof(numbers[0]); 200 sort(numbers, numbers + sizeof(numbers) / sizeof(numbers[0]), less_equal<int>()); 209 stable_sort(numbers, numbers + sizeof(numbers) / sizeof(numbers[0]), less_equal<int>());
|
/external/tcpdump/ |
print-ascii.c | 86 nshorts = length / sizeof(u_short); 92 (void)snprintf(hsp, sizeof(hexstuff) - (hsp - hexstuff), 109 (void)snprintf(hsp, sizeof(hexstuff) - (hsp - hexstuff), 140 nshorts = (u_int) length / sizeof(u_short); 177 hex_print_with_offset("\n\t", TMSG, sizeof(TMSG) - 1, 0x100); 179 hex_and_ascii_print_with_offset("\n\t", TMSG, sizeof(TMSG) - 1, 0x100);
|
/external/webkit/WebCore/platform/win/ |
ContextMenuItemWin.cpp | 43 m_platformDescription = (LPMENUITEMINFO)malloc(sizeof(MENUITEMINFO)); 47 memset(m_platformDescription, 0, sizeof(MENUITEMINFO)); 48 m_platformDescription->cbSize = sizeof(MENUITEMINFO); 59 m_platformDescription = (LPMENUITEMINFO)malloc(sizeof(MENUITEMINFO)); 63 memset(m_platformDescription, 0, sizeof(MENUITEMINFO)); 64 m_platformDescription->cbSize = sizeof(MENUITEMINFO);
|
/external/webkit/WebKit/android/wds/client/ |
AdbConnection.cpp | 65 if (::connect(m_fd, (sockaddr*) &adb, sizeof(adb)) < 0) { 96 snprintf(payloadLen, sizeof(payloadLen), PAYLOAD_FORMAT, res); 117 int payloadLen = recv(fd, lenStr, sizeof(lenStr) - 1, 0); 151 int res = recv(m_fd, buf, sizeof(buf), 0); 193 int res = recv(m_fd, lenStr, sizeof(lenStr) - 1, 0); 225 if (strncmp(serial, emulator, sizeof(emulator) - 1) == 0)
|
/frameworks/base/opengl/tests/tritex/ |
tritex.cpp | 249 GLushort* indices = (GLushort*)malloc(quads*sizeof(quadIndices)); 251 memcpy(indices+(sizeof(quadIndices)/sizeof(indices[0]))*i, quadIndices, sizeof(quadIndices)); 269 int nelem = sizeof(quadIndices)/sizeof(quadIndices[0]);
|
/ndk/sources/android/stlport/test/unit/ |
sort_test.cpp | 131 int count = sizeof(numbers) / sizeof(numbers[0]); 200 sort(numbers, numbers + sizeof(numbers) / sizeof(numbers[0]), less_equal<int>()); 209 stable_sort(numbers, numbers + sizeof(numbers) / sizeof(numbers[0]), less_equal<int>());
|
/sdk/sdklauncher/ |
sdklauncher.c | 96 ZeroMemory(&sattr, sizeof(sattr)); 97 sattr.nLength = sizeof(SECURITY_ATTRIBUTES); 193 ZeroMemory(&pinfo, sizeof(pinfo)); 200 ZeroMemory(&startup, sizeof(startup)); 201 startup.cb = sizeof(startup); 208 ret = GetModuleFileName(NULL, program_dir, sizeof(program_dir));
|