/external/e2fsprogs/resize/ |
extent.c | 42 retval = ext2fs_get_mem(sizeof(struct _ext2_extent), &extent); 45 memset(extent, 0, sizeof(struct _ext2_extent)); 52 retval = ext2fs_get_array(sizeof(struct ext2_extent_entry), 59 sizeof(struct ext2_extent_entry) * extent->size); 89 retval = ext2fs_resize_mem(sizeof(struct ext2_extent_entry) * 91 sizeof(struct ext2_extent_entry) * 150 sizeof(struct ext2_extent_entry), extent_cmp);
|
/external/ipsec-tools/src/racoon/ |
logger.c | 70 p = (struct log *)racoon_malloc(sizeof(*p)); 73 memset(p, 0, sizeof(*p)); 75 p->buf = (char **)racoon_malloc(sizeof(char *) * siz); 80 memset(p->buf, 0, sizeof(char *) * siz); 82 p->tbuf = (time_t *)racoon_malloc(sizeof(time_t *) * siz); 88 memset(p->tbuf, 0, sizeof(time_t *) * siz); 198 strftime(ts, sizeof(ts), "%B %d %T", tm);
|
/external/iptables/extensions/ |
libip6t_owner.c | 120 if(strlen(optarg) > sizeof(ownerinfo->comm)) 121 exit_error(PARAMETER_PROBLEM, "OWNER CMD `%s' too long, max %d characters", optarg, sizeof(ownerinfo->comm)); 123 strncpy(ownerinfo->comm, optarg, sizeof(ownerinfo->comm)); 124 ownerinfo->comm[sizeof(ownerinfo->comm)-1] = '\0'; 182 printf("%.*s ", (int)sizeof(info->comm), info->comm); 235 .size = IP6T_ALIGN(sizeof(struct ip6t_owner_info)), 236 .userspacesize = IP6T_ALIGN(sizeof(struct ip6t_owner_info)),
|
libipt_owner.c | 121 if(strlen(optarg) > sizeof(ownerinfo->comm)) 122 exit_error(PARAMETER_PROBLEM, "OWNER CMD `%s' too long, max %u characters", optarg, (unsigned int)sizeof(ownerinfo->comm)); 124 strncpy(ownerinfo->comm, optarg, sizeof(ownerinfo->comm)); 125 ownerinfo->comm[sizeof(ownerinfo->comm)-1] = '\0'; 183 printf("%.*s ", (int)sizeof(info->comm), info->comm); 237 .size = IPT_ALIGN(sizeof(struct ipt_owner_info)), 238 .userspacesize = IPT_ALIGN(sizeof(struct ipt_owner_info)),
|
/external/qemu/distrib/sdl-1.2.12/src/audio/macosx/ |
SDL_coreaudio.c | 58 this = (SDL_AudioDevice *)SDL_malloc(sizeof(SDL_AudioDevice)); 60 SDL_memset(this, 0, (sizeof *this)); 62 SDL_malloc((sizeof *this->hidden)); 71 SDL_memset(this->hidden, 0, (sizeof *this->hidden)); 176 sizeof(callback)); 249 sizeof (requestedDesc)); 260 sizeof(callback));
|
/external/qemu/distrib/sdl-1.2.12/src/video/ |
SDL_gamma.c | 164 SDL_memcpy(&video->gamma[0*256], red, 256*sizeof(*video->gamma)); 167 SDL_memcpy(&video->gamma[1*256], green, 256*sizeof(*video->gamma)); 170 SDL_memcpy(&video->gamma[2*256], blue, 256*sizeof(*video->gamma)); 203 video->gamma = SDL_malloc(3*256*sizeof(*video->gamma)); 224 SDL_memcpy(red, &video->gamma[0*256], 256*sizeof(*red)); 227 SDL_memcpy(green, &video->gamma[1*256], 256*sizeof(*green)); 230 SDL_memcpy(blue, &video->gamma[2*256], 256*sizeof(*blue));
|
/external/qemu/distrib/sdl-1.2.12/src/video/photon/ |
SDL_ph_mouse.c | 58 if ((cursor = (WMcursor*)SDL_malloc(sizeof(WMcursor))) == NULL) 63 SDL_memset(cursor,0,sizeof(WMcursor)); 65 cursor->ph_cursor = (PhCursorDef_t *) SDL_malloc(sizeof(PhCursorDef_t) + 32*4*2); 73 SDL_memset(cursor->ph_cursor,0,(sizeof(PhCursorDef_t) + 32*4*2)); 107 cursor->ph_cursor->hdr.len =sizeof(PhCursorDef_t) + clen*2 - sizeof(PhRegionDataHdr_t); 148 PtSetArg(&args[2], Pt_ARG_BITMAP_CURSOR, cursor->ph_cursor, (cursor->ph_cursor->hdr.len + sizeof(PhRegionDataHdr_t)));
|
/external/qemu/slirp/ |
ip_input.c | 87 if (m->m_len < sizeof (struct ip)) { 100 if (hlen<sizeof(struct ip ) || hlen>m->m_len) {/* min header length */ 173 /* if (hlen > sizeof (struct ip) && ip_dooptions(m)) 259 #define iptofrag(P) ((struct ipasfrag *)(((char*)(P)) - sizeof(struct qlink))) 260 #define fragtoip(P) ((struct ip*)(((char*)(P)) + sizeof(struct qlink))) 515 cnt = (ip->ip_hl << 2) - sizeof (struct ip); 565 if (off > optlen - sizeof(struct in_addr)) { 576 sizeof(ipaddr.sin_addr)); 591 (caddr_t)(cp + off), sizeof(struct in_addr)); 592 cp[IPOPT_OFFSET] += sizeof(struct in_addr) [all...] |
bootp.c | 185 m->m_data += sizeof(struct udpiphdr); 186 memset(rbp, 0, sizeof(struct bootp_t)); 255 snprintf((char *)rbp->bp_file, sizeof(rbp->bp_file), "%s", 306 *q++ = sizeof(nak_msg) - 1; 307 memcpy(q, nak_msg, sizeof(nak_msg) - 1); 308 q += sizeof(nak_msg) - 1; 314 m->m_len = sizeof(struct bootp_t) - 315 sizeof(struct ip) - sizeof(struct udphdr);
|
/external/qemu/slirp-android/ |
ip_input.c | 87 if (m->m_len < sizeof (struct ip)) { 100 if (hlen<sizeof(struct ip ) || hlen>m->m_len) {/* min header length */ 173 /* if (hlen > sizeof (struct ip) && ip_dooptions(m)) 259 #define iptofrag(P) ((struct ipasfrag *)(((char*)(P)) - sizeof(struct qlink))) 260 #define fragtoip(P) ((struct ip*)(((char*)(P)) + sizeof(struct qlink))) 515 cnt = (ip->ip_hl << 2) - sizeof (struct ip); 565 if (off > optlen - sizeof(struct in_addr)) { 576 sizeof(ipaddr.sin_addr)); 591 (caddr_t)(cp + off), sizeof(struct in_addr)); 592 cp[IPOPT_OFFSET] += sizeof(struct in_addr) [all...] |
bootp.c | 190 m->m_data += sizeof(struct udpiphdr); 191 memset(rbp, 0, sizeof(struct bootp_t)); 259 snprintf((char *)rbp->bp_file, sizeof(rbp->bp_file), "%s", 310 *q++ = sizeof(nak_msg) - 1; 311 memcpy(q, nak_msg, sizeof(nak_msg) - 1); 312 q += sizeof(nak_msg) - 1; 318 m->m_len = sizeof(struct bootp_t) - 319 sizeof(struct ip) - sizeof(struct udphdr);
|
/external/skia/src/core/ |
SkDeque.cpp | 48 if (storageSize >= sizeof(Head) + elemSize) { 106 fFront = (Head*)sk_malloc_throw(sizeof(Head) + 108 fFront->init(sizeof(Head) + INIT_ELEM_COUNT * fElemSize); 123 size_t size = sizeof(Head) + INIT_ELEM_COUNT * fElemSize; 142 fBack = (Head*)sk_malloc_throw(sizeof(Head) + 144 fBack->init(sizeof(Head) + INIT_ELEM_COUNT * fElemSize); 159 size_t size = sizeof(Head) + INIT_ELEM_COUNT * fElemSize;
|
/external/strace/ |
ioctl.c | 50 const int nioctlents0 = sizeof ioctlent0 / sizeof ioctlent0[0]; 57 const int nioctlents1 = sizeof ioctlent1 / sizeof ioctlent1[0]; 65 const int nioctlents2 = sizeof ioctlent2 / sizeof ioctlent2[0]; 92 nioctlents, sizeof(struct ioctlent), compare);
|
/frameworks/base/libs/gui/ |
SensorEventQueue.cpp | 58 ssize_t size = mSensorChannel->write(events, numEvents * sizeof(events[0])); 60 if (size % sizeof(events[0])) { 65 size /= sizeof(events[0]); 72 ssize_t size = mSensorChannel->read(events, numEvents*sizeof(events[0])); 76 if (size % sizeof(events[0])) { 79 sizeof(events[0]), int(size)); 83 size /= sizeof(events[0]);
|
/frameworks/base/media/libeffects/testlibs/ |
AudioBiquadFilter.cpp | 46 memcpy(mCoefs, IDENTITY_COEFS, sizeof(mCoefs)); 52 memset(mDelays, 0, sizeof(mDelays)); 56 memcpy(mTargetCoefs, coefs, sizeof(mTargetCoefs)); 59 memcpy(mCoefs, coefs, sizeof(mCoefs)); 74 memcpy(mCoefs, mTargetCoefs, sizeof(mCoefs)); 83 memcpy(mCoefs, IDENTITY_COEFS, sizeof(mCoefs)); 146 memcpy(out, in, frameCount * mNumChannels * sizeof(audio_sample_t));
|
/external/bluetooth/glib/glib/ |
gbsearcharray.h | 124 #define G_BSEARCH_ARRAY_NODES(barray) (((guint8*) (barray)) + sizeof (GBSearchArray)) 133 size = sizeof (GBSearchArray) + bconfig->sizeof_node; 137 memset (barray, 0, sizeof (GBSearchArray)); 210 new_size = G_BSEARCH_UPPER_POWER2 (sizeof (GBSearchArray) + new_size); 211 old_size = G_BSEARCH_UPPER_POWER2 (sizeof (GBSearchArray) + old_size); 216 barray = (GBSearchArray *) g_realloc (barray, sizeof (GBSearchArray) + new_size); 282 new_size = G_BSEARCH_UPPER_POWER2 (sizeof (GBSearchArray) + new_size); 283 old_size = G_BSEARCH_UPPER_POWER2 (sizeof (GBSearchArray) + old_size); 288 barray = (GBSearchArray *) g_realloc (barray, sizeof (GBSearchArray) + new_size);
|
/external/dnsmasq/src/ |
netlink.c | 28 ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg)))) 42 socklen_t slen = sizeof(addr); 56 if (bind(daemon->netlinkfd, (struct sockaddr *)&addr, sizeof(addr)) == -1) 59 if (errno != EPERM || bind(daemon->netlinkfd, (struct sockaddr *)&addr, sizeof(addr)) == -1) 86 msg.msg_namelen = sizeof(nladdr); 144 req.nlh.nlmsg_len = sizeof(req); 152 while((len = sendto(daemon->netlinkfd, (void *)&req, sizeof(req), 0, 153 (struct sockaddr *)&addr, sizeof(addr))) == -1 && retry_send()); 190 unsigned int len1 = h->nlmsg_len - NLMSG_LENGTH(sizeof(*ifa));
|
/external/dropbear/libtomcrypt/src/hashes/chc/ |
chc.c | 104 if ((key = XMALLOC(sizeof(*key))) == NULL) { 121 zeromem(md->chc.buf, sizeof(md->chc.buf)); 138 if ((key = XMALLOC(sizeof(*key))) == NULL) { 152 zeromem(T, sizeof(T)); 153 zeromem(&key, sizeof(key)); 208 if (md->chc.curlen >= sizeof(md->chc.buf)) { 243 zeromem(md, sizeof(hash_state)); 279 for (x = 0; x < (int)(sizeof(tests)/sizeof(tests[0])); x++) {
|
/external/dropbear/libtomcrypt/testprof/ |
katja_test.c | 66 len = sizeof(out); 112 len = sizeof(out); 114 DO(katja_encrypt_key(in, kat_msgsize, out, &len, lparam, sizeof(lparam), &yarrow_prng, prng_idx, hash_idx, &key)); 117 DO(katja_decrypt_key(out, len, tmp, &len2, lparam, sizeof(lparam), hash_idx, &stat2, &key)); 126 DO(katja_decrypt_key(out, len, tmp, &len2, lparam, sizeof(lparam), hash_idx, &stat, &key)); 140 len = sizeof(out); 144 len2 = sizeof(tmp); 147 len2 = sizeof(tmp); 198 len = sizeof(out);
|
/external/kernel-headers/original/asm-generic/ |
siginfo.h | 17 #define __ARCH_SI_PREAMBLE_SIZE (3 * sizeof(int)) 22 #define SI_PAD_SIZE ((SI_MAX_SIZE - __ARCH_SI_PREAMBLE_SIZE) / sizeof(int)) 58 char _pad[sizeof( __ARCH_SI_UID_T) - sizeof(int)]; 244 #define __ARCH_SIGEV_PREAMBLE_SIZE (sizeof(int) * 2 + sizeof(sigval_t)) 249 / sizeof(int)) 282 memcpy(to, from, sizeof(*to)); 285 memcpy(to, from, __ARCH_SI_PREAMBLE_SIZE + sizeof(from->_sifields._sigchld));
|
/external/qemu/ |
elf_ops.h | 84 sym = bsearch(&key, syms, s->disas_num_syms, sizeof(*syms), glue(symfind, SZ)); 110 sizeof(struct elf_shdr) * ehdr->e_shnum); 127 nsyms = symtab->sh_size / sizeof(struct elf_sym); 150 syms = qemu_realloc(syms, nsyms * sizeof(*syms)); 152 qsort(syms, nsyms, sizeof(*syms), glue(symcmp, SZ)); 164 s = qemu_mallocz(sizeof(*s)); 191 if (read(fd, &ehdr, sizeof(ehdr)) != sizeof(ehdr)) 218 size = ehdr.e_phnum * sizeof(phdr[0]);
|
/external/webkit/JavaScriptCore/runtime/ |
UStringImpl.h | 120 if (length > ((std::numeric_limits<size_t>::max() - sizeof(UStringImpl)) / sizeof(UChar))) 122 UStringImpl* resultImpl = static_cast<UStringImpl*>(fastMalloc(sizeof(UChar) * length + sizeof(UStringImpl))); 134 if (length > ((std::numeric_limits<size_t>::max() - sizeof(UStringImpl)) / sizeof(UChar))) 137 if (!tryFastMalloc(sizeof(UChar) * length + sizeof(UStringImpl)).getValue(resultImpl)) 172 memcpy(destination, source, numCharacters * sizeof(UChar));
|
/external/wpa_supplicant_6/wpa_supplicant/src/wps/ |
wps_common.c | 39 len[0] = sizeof(i_buf); 45 len[3] = sizeof(key_bits); 101 wpa_hexdump_key(MSG_DEBUG, "WPS: DHKey", dhkey, sizeof(dhkey)); 111 hmac_sha256_vector(dhkey, sizeof(dhkey), 3, addr, len, kdk); 112 wpa_hexdump_key(MSG_DEBUG, "WPS: KDK", kdk, sizeof(kdk)); 115 keys, sizeof(keys)); 242 if (os_get_random((unsigned char *) &val, sizeof(val)) < 0) { 261 os_memset(&data, 0, sizeof(data)); 283 os_memset(&data, 0, sizeof(data));
|
/frameworks/base/tools/aidl/ |
aidl_language_y.y | 81 parcelable_type* b = (parcelable_type*)malloc(sizeof(parcelable_type)); 104 interface_type* c = (interface_type*)malloc(sizeof(interface_type)); 107 memset(&c->oneway_token, 0, sizeof(buffer_type)); 112 interface_type* c = (interface_type*)malloc(sizeof(interface_type)); 169 method_type *method = (method_type*)malloc(sizeof(method_type)); 174 memset(&method->oneway_token, 0, sizeof(buffer_type)); 184 method_type *method = (method_type*)malloc(sizeof(method_type)); 223 arg_type* arg = (arg_type*)malloc(sizeof(arg_type)); 224 memset(&arg->comma_token, 0, sizeof(buffer_type));
|
/hardware/libhardware_legacy/qemu/ |
qemu.c | 117 snprintf(channel->device, sizeof channel->device, 144 ret = snprintf(key, sizeof key, "ro.kernel.android.%s", name); 145 if (ret >= (int)sizeof key) 153 ret = snprintf(channel->device, sizeof channel->device, 155 if (ret >= (int)sizeof channel->device) { 244 snprintf(header, sizeof header, "%04x", len); 312 len = qemu_command_vformat( command, sizeof command, fmt, args ); 315 if (len < 0 || len >= (int)sizeof command) { 319 D("%s: too large %d > %d", __FUNCTION__, len, (int)(sizeof command));
|