/external/bluetooth/bluez/compat/ |
dun.c | 68 dl = malloc(sizeof(*dl) + RFCOMM_MAX_DEV * sizeof(*di)); 107 int len = readlink(de->d_name, link, sizeof(link)); 198 alen = sizeof(sa); 203 alen = sizeof(sa); 223 memset(&req, 0, sizeof(req)); 312 if (dun_create_tty(sk, tty, sizeof(tty) - 1) < 0) {
|
/external/bluetooth/bluez/sbc/ |
sbcenc.c | 56 if (sizeof(au_hdr) != 24) { 58 fprintf(stderr, "FIXME: sizeof(au_hdr) != 24\n"); 72 len = read(fd, &au_hdr, sizeof(au_hdr)); 73 if (len < (ssize_t) sizeof(au_hdr)) { 84 BE_INT(au_hdr.hdr_size) < sizeof(au_hdr) || 153 nframes = sizeof(input) / codesize; 172 outp, sizeof(output) - (outp - output),
|
/external/bluetooth/bluez/tools/ |
l2ping.c | 83 memset(&sa, 0, sizeof(sa)); 102 memset(&addr, 0, sizeof(addr)); 106 if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 112 memset(&addr, 0, sizeof(addr)); 116 if (connect(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 122 memset(&addr, 0, sizeof(addr)); 123 optlen = sizeof(addr);
|
/external/bluetooth/glib/gobject/ |
gvaluearray.c | 91 (value_array->n_prealloced - i) * sizeof (value_array->values[0])); 250 (i - index) * sizeof (value_array->values[0])); 251 memset (value_array->values + index, 0, sizeof (value_array->values[0])); 281 (value_array->n_values - index) * sizeof (value_array->values[0])); 284 memset (value_array->values + value_array->n_values, 0, sizeof (value_array->values[0])); 310 sizeof (value_array->values[0]), 339 sizeof (value_array->values[0]),
|
/external/bluetooth/glib/tests/ |
spawn-test.c | 235 if ((k = read (pipeup[0], &n, sizeof (n))) != sizeof (n)) 241 sizeof (n), k); 256 if (write (pipedown[1], &n, sizeof (n)) == -1 || 263 if ((k = read (pipeup[0], &n, sizeof (n))) != sizeof (n)) 269 sizeof (n), k);
|
/external/chromium/third_party/icu/source/i18n/ |
csdetect.cpp | 30 #define ARRAY_SIZE(array) (sizeof array / sizeof array[0]) 32 #define NEW_ARRAY(type,count) (type *) uprv_malloc((count) * sizeof(type)) 186 resultArray = (CharsetMatch **)uprv_malloc(sizeof(CharsetMatch *)*fCSRecognizers_size); 291 uprv_sortArray(resultArray, resultCount, sizeof resultArray[0], charsetMatchComparator, NULL, TRUE, &status); 406 memcpy(en, &gCSDetEnumeration, sizeof(UEnumeration)); 408 uprv_memset(en->context, 0, sizeof(Context));
|
uspoof_impl.cpp | 357 int32_t numScripts = uscript_getCode(locale, scripts, sizeof(scripts)/sizeof(UScriptCode), &status); 500 if ((size_t)length < sizeof(SpoofDataHeader)) { 527 uint32_t initialSize = (sizeof(SpoofDataHeader) + 15) & ~15; 528 U_ASSERT(initialSize == sizeof(SpoofDataHeader)); 672 for (uint32_t i=0; i<sizeof(bits)/sizeof(uint32_t); i++) { 681 for (uint32_t i=0; i<sizeof(bits)/sizeof(uint32_t); i++) { 692 U_ASSERT(index < sizeof(bits)*4) [all...] |
/external/chromium/third_party/icu/source/tools/gentest/ |
gentest.c | 38 sizeof(UDataInfo), 43 sizeof(UChar), 69 argc=u_parseArgs(argc, argv, sizeof(options)/sizeof(options[0]), options); 121 udata_writeString(pData, stringValue, sizeof(stringValue)); 129 size=sizeof(stringValue) + sizeof(intValue);
|
/external/dbus/ |
config.h.in | 240 /* The size of a `char', as computed by sizeof. */ 243 /* The size of a `int', as computed by sizeof. */ 246 /* The size of a `long', as computed by sizeof. */ 249 /* The size of a `long long', as computed by sizeof. */ 252 /* The size of a `short', as computed by sizeof. */ 255 /* The size of a `void *', as computed by sizeof. */ 258 /* The size of a `__int64', as computed by sizeof. */
|
/external/e2fsprogs/util/ |
subst.c | 41 ent = (struct subst_entry *) malloc(sizeof(struct subst_entry)); 90 if (len > sizeof(replace_name)-2) 217 memset(line, 0, sizeof(line)); 218 if (fgets(line, sizeof(line), f) == NULL) 288 oldcp = fgets(oldbuf, sizeof(oldbuf), old_f); 289 newcp = fgets(newbuf, sizeof(newbuf), new_f); 370 if (fgets(line, sizeof(line), in) == NULL)
|
/external/grub/stage2/ |
serial.c | 149 for (i = 0; i < sizeof (divisor_tab) / sizeof (divisor_tab[0]); i++) 238 i < sizeof (three_code_table) / sizeof (three_code_table[0]); 255 i < sizeof (four_code_table) / sizeof (four_code_table[0]); 272 for (i = 0; i < 10000 && npending < sizeof (input_buf); i++)
|
/external/icu4c/i18n/ |
csdetect.cpp | 30 #define ARRAY_SIZE(array) (sizeof array / sizeof array[0]) 32 #define NEW_ARRAY(type,count) (type *) uprv_malloc((count) * sizeof(type)) 186 resultArray = (CharsetMatch **)uprv_malloc(sizeof(CharsetMatch *)*fCSRecognizers_size); 291 uprv_sortArray(resultArray, resultCount, sizeof resultArray[0], charsetMatchComparator, NULL, TRUE, &status); 406 memcpy(en, &gCSDetEnumeration, sizeof(UEnumeration)); 408 uprv_memset(en->context, 0, sizeof(Context));
|
uspoof_impl.cpp | 357 int32_t numScripts = uscript_getCode(locale, scripts, sizeof(scripts)/sizeof(UScriptCode), &status); 500 if ((size_t)length < sizeof(SpoofDataHeader)) { 527 uint32_t initialSize = (sizeof(SpoofDataHeader) + 15) & ~15; 528 U_ASSERT(initialSize == sizeof(SpoofDataHeader)); 672 for (uint32_t i=0; i<sizeof(bits)/sizeof(uint32_t); i++) { 681 for (uint32_t i=0; i<sizeof(bits)/sizeof(uint32_t); i++) { 692 U_ASSERT(index < sizeof(bits)*4) [all...] |
/external/icu4c/samples/layout/ |
layout.cpp | 26 #define ARRAY_LENGTH(array) (sizeof array / sizeof array[0]) 61 si.cbSize = sizeof si; 81 wndclass.cbWndExtra = sizeof(LONG); 173 si.cbSize = sizeof si; 236 si.cbSize = sizeof si; 268 ofn.lStructSize = sizeof (OPENFILENAMEA);
|
/external/icu4c/tools/gentest/ |
gentest.c | 38 sizeof(UDataInfo), 43 sizeof(UChar), 69 argc=u_parseArgs(argc, argv, sizeof(options)/sizeof(options[0]), options); 121 udata_writeString(pData, stringValue, sizeof(stringValue)); 129 size=sizeof(stringValue) + sizeof(intValue);
|
/external/iproute2/ip/ |
link_gre.c | 67 memset(&req, 0, sizeof(req)); 69 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); 83 len -= NLMSG_LENGTH(sizeof(*ifi)); 285 remote = format_host(AF_INET, 4, &addr, s1, sizeof(s1)); 294 local = format_host(AF_INET, 4, &addr, s1, sizeof(s1)); 336 inet_ntop(AF_INET, RTA_DATA(tb[IFLA_GRE_IKEY]), s2, sizeof(s2)); 342 inet_ntop(AF_INET, RTA_DATA(tb[IFLA_GRE_OKEY]), s2, sizeof(s2));
|
/external/ipsec-tools/src/racoon/ |
localconf.c | 73 lcconf = racoon_calloc(1, sizeof(*lcconf)); 139 id = racoon_calloc(1, 1 + id0->l - sizeof(struct ipsecdoi_id_b)); 145 memcpy(id, id0->v + sizeof(struct ipsecdoi_id_b), 146 id0->l - sizeof(struct ipsecdoi_id_b)); 147 id[id0->l - sizeof(struct ipsecdoi_id_b)] = '\0'; 149 key = privsep_getpsk(id, id0->l - sizeof(struct ipsecdoi_id_b)); 197 while (fgets(buf, sizeof(buf), fp) != NULL) {
|
/external/iptables/extensions/ |
libipt_dccp.c | 34 memset(einfo, 0, sizeof(struct ipt_dccp_info)); 109 for (i = 0; i < sizeof(dccp_pkt_types)/sizeof(char *); i++) { 115 if (i == sizeof(dccp_pkt_types)/sizeof(char *)) 359 .size = IPT_ALIGN(sizeof(struct ipt_dccp_info)), 360 .userspacesize = IPT_ALIGN(sizeof(struct ipt_dccp_info)),
|
/external/netperf/ |
netcpu_pstat.c | 68 psp = (struct pst_processor *)malloc(lib_num_loc_cpus * sizeof(*psp)); 70 printf("malloc(%d) failed!\n", lib_num_loc_cpus * sizeof(*psp)); 73 if (pstat_getprocessor(psp, sizeof(*psp), lib_num_loc_cpus, 0) != -1) { 132 psp = (struct pst_processor *)malloc(lib_num_loc_cpus * sizeof(*psp)); 134 printf("malloc(%d) failed!\n", lib_num_loc_cpus * sizeof(*psp)); 141 if (pstat_getprocessor(psp, sizeof(*psp), lib_num_loc_cpus, 0) != -1) { 177 if (pstat_getprocessor(psp, sizeof(*psp), lib_num_loc_cpus, 0) != -1) {
|
/external/neven/Embedded/common/src/b_BasicEm/ |
Basic.h | 112 /** device independent macro definitions for sizeof: 118 #define bbs_SIZEOF8( typeA ) ( sizeof( typeA ) << 1 ) 119 #define bbs_SIZEOF16( typeA ) ( sizeof( typeA ) ) 120 #define bbs_SIZEOF32( typeA ) ( sizeof( typeA ) >> 1 ) 122 #define bbs_SIZEOF8( typeA ) ( sizeof( typeA ) ) 123 #define bbs_SIZEOF16( typeA ) ( sizeof( typeA ) >> 1 ) 124 #define bbs_SIZEOF32( typeA ) ( sizeof( typeA ) >> 2 )
|
/external/openssl/crypto/evp/ |
evp_pbe.c | 130 for (i = 0; i < sizeof(builtin_pbe)/sizeof(EVP_PBE_CTL); i++) 163 if (!pbe_obj) BUF_strlcpy (obj_tmp, "NULL", sizeof obj_tmp); 164 else i2t_ASN1_OBJECT(obj_tmp, sizeof obj_tmp, pbe_obj); 236 if (!(pbe_tmp = (EVP_PBE_CTL*) OPENSSL_malloc (sizeof(EVP_PBE_CTL)))) 289 sizeof(builtin_pbe)/sizeof(EVP_PBE_CTL));
|
/external/srec/srec/clib/ |
jacobi.c | 64 b = (double *) CALLOC(dim, sizeof(double), "clib.jacobi.b"); 65 d = (double *) CALLOC(dim, sizeof(double), "clib.jacobi.d"); 66 z = (double *) CALLOC(dim, sizeof(double), "clib.jacobi.z"); 67 a = (double **) CALLOC(dim, sizeof(double *), "clib.jacobi.input_jacobi"); 68 v = (double **) CALLOC(dim, sizeof(double *), "clib.jacobi.input_jacobi"); 71 a[i] = (double *) CALLOC(dim, sizeof(double), "clib.jacobi.input_jacobi[]"); 72 v[i] = (double *) CALLOC(dim, sizeof(double), "clib.jacobi.input_jacobi[]");
|
/external/tcpdump/missing/ |
getnameinfo.c | 77 {PF_INET6, sizeof(struct in6_addr), sizeof(struct sockaddr_in6), 80 {PF_INET, sizeof(struct in_addr), sizeof(struct sockaddr_in), 162 snprintf(numserv, sizeof(numserv), "%d", ntohs(port)); 216 if (inet_ntop(afd->a_af, addr, numaddr, sizeof(numaddr)) 272 if (inet_ntop(afd->a_af, addr, numaddr, sizeof(numaddr))
|
/external/tremolo/Tremolo/ |
res012.c | 52 memset(info,0,sizeof(*info)); 62 memset(info,0,sizeof(*info)); 73 info->stagemasks=_ogg_malloc(info->partitions*sizeof(*info->stagemasks)); 74 info->stagebooks=_ogg_malloc(info->partitions*8*sizeof(*info->stagebooks)); 129 char **partword=(char **)alloca(ch*sizeof(*partword)); 132 sizeof(*partword[j])); 195 (char *)alloca(partwords*partitions_per_word*sizeof(*partword));
|
/external/wpa_supplicant/ |
l2_packet_freebsd.c | 59 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); 66 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); 86 if (packet == NULL || hdr.caplen < sizeof(*ethhdr)) 95 len = hdr.caplen - sizeof(*ethhdr); 121 os_snprintf(pcap_filter, sizeof(pcap_filter), 207 l2 = os_zalloc(sizeof(struct l2_packet_data)); 210 os_strncpy(l2->ifname, ifname, sizeof(l2->ifname));
|