/external/chromium/base/third_party/xdg_mime/ |
xdgmimeicon.c | 66 list = malloc (sizeof (XdgIconList)); 110 sizeof (XdgIcon), icon_entry_cmp); 134 list->icons = realloc (list->icons, alloc * sizeof (XdgIcon)); 150 alloc * sizeof (XdgIcon)); 157 list->n_icons * sizeof (XdgIcon)); 163 sizeof (XdgIcon), icon_entry_cmp);
|
/external/chromium/net/base/ |
address_list.cc | 22 memcpy(copy, info, sizeof(addrinfo)); 66 DCHECK_EQ(sizeof(sockaddr_in), info->ai_addrlen); 71 DCHECK_EQ(sizeof(sockaddr_in6), info->ai_addrlen); 128 memset(ai, 0, sizeof(addrinfo)); 132 ai->ai_addrlen = sizeof(struct sockaddr_in6); 136 memset(addr6, 0, sizeof(struct sockaddr_in6));
|
/external/e2fsprogs/lib/ext2fs/ |
brel_ma.c | 59 retval = ext2fs_get_mem(sizeof(struct ext2_block_relocation_table), 63 memset(brel, 0, sizeof(struct ext2_block_relocation_table)); 70 retval = ext2fs_get_mem(sizeof(struct brel_ma), &ma); 73 memset(ma, 0, sizeof(struct brel_ma)); 76 size = (size_t) (sizeof(struct ext2_block_relocate_entry) * 79 sizeof(struct ext2_block_relocate_entry), &ma->entries);
|
/external/grub/stage2/ |
fsys_xfs.c | 197 return (tmp - sizeof(xfs_bmdr_block_t) - offsetof(xfs_dinode_t, di_u)) / 198 (sizeof (xfs_bmbt_key_t) + sizeof (xfs_bmbt_ptr_t)); 219 (inode->di_u.di_c + sizeof(xfs_bmdr_block_t) 220 + btroot_maxrecs ()*sizeof(xfs_bmbt_key_t)); 241 sizeof(xfs_btree_lblock_t), (char *)&h); 245 xfs.fpos = sizeof(xfs_btree_block_t); 249 sizeof(xfs_bmbt_ptr_t), (char *)&ptr0); 270 devread (xfs.daddr, 0, sizeof(xfs_btree_lblock_t), (char *)&h); 273 xfs.fpos = sizeof(xfs_btree_block_t) [all...] |
/external/iproute2/tc/ |
em_nbyte.c | 49 memset(&nb, 0, sizeof(nb)); 99 addraw_l(n, MAX_MSG, hdr, sizeof(*hdr)); 100 addraw_l(n, MAX_MSG, &nb, sizeof(nb)); 114 if (data_len < sizeof(*nb)) { 119 if (data_len < sizeof(*nb) + nb->len) { 124 needle = data + sizeof(*nb);
|
/external/jpeg/ |
jinclude.h | 74 * type returned by sizeof(). However, it seems there are some irrational 75 * implementations out there, in which sizeof() returns an int even though 77 * we always use this SIZEOF() macro in place of using sizeof() directly. 80 #define SIZEOF(object) ((size_t) sizeof(object))
|
/external/libffi/testsuite/libffi.call/ |
pyobjc-tc.c | 47 point_type.size = 0; /*sizeof(Point);*/ 50 point_type.elements = malloc(3 * sizeof(ffi_type*)); 55 size_type.size = 0;/* sizeof(Size);*/ 58 size_type.elements = malloc(3 * sizeof(ffi_type*)); 63 rect_type.size = 0;/*sizeof(Rect);*/ 66 rect_type.elements = malloc(3 * sizeof(ffi_type*));
|
/external/openssl/crypto/rc4/ |
rc4_enc.c | 94 * on sizeof(RC4_INT)). 123 if ( ( ((size_t)indata & (sizeof(RC4_CHUNK)-1)) | 124 ((size_t)outdata & (sizeof(RC4_CHUNK)-1)) ) == 0 ) 145 * by "if (sizeof(RC4_CHUNK)==8)" or the condition 149 * sizeof(RC4_CHUNK)!=8 be (were also #ifdefed 151 * - in case you wonder "&(sizeof(RC4_CHUNK)*8-1)" in 153 * warnings when sizeof(RC4_CHUNK)!=8 159 # define BESHFT(c) (((sizeof(RC4_CHUNK)-(c)-1)*8)&(sizeof(RC4_CHUNK)*8-1)) 160 for (;len&(0-sizeof(RC4_CHUNK));len-=sizeof(RC4_CHUNK) [all...] |
/external/ppp/pppd/ |
sys-solaris.c | 317 req_size = num_ifs * sizeof(struct lifreq); 345 for (i = lifc.lifc_len / sizeof(struct lifreq); i > 0; i--, plifreq++) { 350 memset(&lifr, 0, sizeof(lifr)); 351 strncpy(lifr.lifr_name, plifreq->lifr_name, sizeof(lifr.lifr_name)); 371 strncpy(first_ether_name, lifr.lifr_name, sizeof(first_ether_name)); 405 req_size = num_ifs * sizeof(struct ifreq); 431 for (i = ifc.ifc_len / sizeof(struct ifreq); i > 0; i--, pifreq++) { 436 memset(&ifr, 0, sizeof(ifr)); 437 strncpy(ifr.ifr_name, pifreq->ifr_name, sizeof(ifr.ifr_name)); 457 strncpy(first_ether_name, ifr.ifr_name, sizeof(first_ether_name)) [all...] |
/external/qemu/ |
net-android.c | 291 if (get_str_sep(buf, sizeof(buf), &p, ':') < 0) 324 memset(uaddr, 0, sizeof(*uaddr)); 335 snprintf(vc->info_str, sizeof(vc->info_str), 356 snprintf(buf, sizeof(buf), "%s.%d", model, id); 371 vc = qemu_mallocz(sizeof(VLANClientState)); 500 packet = qemu_malloc(sizeof(VLANPacket) + size); 555 len = MIN(sizeof(buffer) - offset, iov[i].iov_len); 617 packet = qemu_malloc(sizeof(VLANPacket) + max_len); 920 get_str_sep(buf, sizeof(buf), &p, ':'); 951 if (get_str_sep(buf, sizeof(buf), &p, ':') < 0) [all...] |
/external/stlport/test/unit/ |
copy_test.cpp | 52 const size_t size = sizeof(a) / sizeof(a[0]); 62 const size_t size = sizeof(a) / sizeof(a[0]); 74 const size_t size = sizeof(a) / sizeof(a[0]);
|
/external/tcpdump/ |
print-sunrpc.c | 84 snprintf(srcid, sizeof(srcid), "0x%x", 86 strlcpy(dstid, "sunrpc", sizeof(dstid)); 88 snprintf(srcid, sizeof(srcid), "0x%x", 90 snprintf(dstid, sizeof(dstid), "0x%x", SUNRPC_PMAPPORT); 151 (void) snprintf(buf, sizeof(buf), "#%u", prog); 154 strlcpy(buf, rp->r_name, sizeof(buf));
|
/external/webkit/WebCore/html/canvas/ |
WebGLByteArray.cpp | 38 RefPtr<WebGLArrayBuffer> buffer = WebGLArrayBuffer::create(length * sizeof(signed char)); 55 if ((byteOffset + (length * sizeof(signed char))) > buffer->byteLength()) 73 return m_size * sizeof(signed char); 79 unsigned startByte = m_byteOffset + offset * sizeof(signed char); 80 unsigned limitByte = startByte + length * sizeof(signed char); 88 setImpl(array, offset * sizeof(signed char), ec);
|
WebGLUnsignedByteArray.cpp | 38 RefPtr<WebGLArrayBuffer> buffer = WebGLArrayBuffer::create(length * sizeof(unsigned char)); 57 if ((byteOffset + (length * sizeof(unsigned char))) > buffer->byteLength()) 75 return m_size * sizeof(unsigned char); 81 unsigned startByte = m_byteOffset + offset * sizeof(unsigned char); 82 unsigned limitByte = startByte + length * sizeof(unsigned char); 90 setImpl(array, offset * sizeof(unsigned char), ec);
|
/external/wpa_supplicant/ |
driver_ndis.c | 388 UCHAR Data[sizeof(ULONG)]; 394 UCHAR Data[sizeof(ULONG)]; 414 size_t buflen = sizeof(*o) + len; 427 o, sizeof(NDISUIO_QUERY_OID), o, buflen, &written, 434 hdrlen = sizeof(NDISUIO_QUERY_OID) - sizeof(o->Data); 457 buf = os_zalloc(sizeof(*o) + len); 493 os_snprintf(txt, sizeof(txt), "NDIS: Set OID %08x", oid); 496 buflen = sizeof(*o) + len; 497 reallen = buflen - sizeof(o->Data) [all...] |
win_if_list.c | 83 size_t blen = sizeof(*b) + 1024; 98 b, sizeof(NDISUIO_QUERY_BINDING), b, 110 if (len >= sizeof(name)) 111 len = sizeof(name) - 1; 118 if (len >= sizeof(desc)) 119 len = sizeof(desc) - 1;
|
/external/wpa_supplicant_6/wpa_supplicant/ |
win_if_list.c | 83 size_t blen = sizeof(*b) + 1024; 98 b, sizeof(NDISUIO_QUERY_BINDING), b, 110 if (len >= sizeof(name)) 111 len = sizeof(name) - 1; 118 if (len >= sizeof(desc)) 119 len = sizeof(desc) - 1;
|
/frameworks/base/cmds/dumpstate/ |
utils.c | 61 memset(cmdline, 0, sizeof(cmdline)); 65 read(fd, cmdline, sizeof(cmdline)); 79 memset(buffer, 0, sizeof(buffer)); 87 if (read(fd, buffer, sizeof(buffer)) < 0) { 118 strftime(stamp, sizeof(stamp), "%Y-%m-%d %H:%M:%S", localtime(&mtime)); 126 int ret = read(fd, buffer, sizeof(buffer)); 160 for (arg = 1; arg < sizeof(args) / sizeof(args[0]); ++arg) { 203 if (num_props < sizeof(props) / sizeof(props[0])) [all...] |
/frameworks/base/core/jni/ |
android_server_Watchdog.cpp | 33 snprintf(buf, sizeof(buf), "/proc/%d/stack", tid); 37 strncat(buf, ":\n", sizeof(buf) - strlen(buf) - 1); 42 while ((nBytes = read(stackFd, buf, sizeof(buf))) > 0) { 72 snprintf(buf, sizeof(buf), "\n----- begin pid %d kernel stacks -----\n", getpid()); 76 snprintf(buf, sizeof(buf), "/proc/%d/task", getpid()); 90 snprintf(buf, sizeof(buf), "----- end pid %d kernel stacks -----\n", getpid());
|
/hardware/ril/rild/ |
radiooptions.c | 98 int ret = send(fd, (const void *)&num_socket_args, sizeof(int), 0); 99 if(ret != sizeof(int)) { 108 ret = send(fd, &len, sizeof(int), 0); 109 if (ret != sizeof(int)) { 114 ret = send(fd, argv[1 + i], sizeof(char) * len, 0); 115 if (ret != len * sizeof(char)) {
|
/ndk/sources/android/stlport/test/unit/ |
copy_test.cpp | 52 const size_t size = sizeof(a) / sizeof(a[0]); 62 const size_t size = sizeof(a) / sizeof(a[0]); 74 const size_t size = sizeof(a) / sizeof(a[0]);
|
/external/ipsec-tools/src/racoon/ |
ipsec_doi.c | 229 sizeof(struct isakmp_pl_p) + s->prop->spi_size; 250 prophlen = sizeof(struct isakmp_pl_p) 356 memset(tsap, 0, sizeof(*tsap)); 485 memset(&sa, 0, sizeof(sa)); 562 tlen = ntohs(trns->h.len) - sizeof(*trns); 570 sa->dhgrp = racoon_calloc(1, sizeof(struct dhgroup)); 851 tlen -= sizeof(*d); 852 d = (struct isakmp_data *)((char *)d + sizeof(*d)); 854 tlen -= (sizeof(*d) + ntohs(d->lorv)); 855 d = (struct isakmp_data *)((char *)d + sizeof(*d) + ntohs(d->lorv)) [all...] |
/external/bluetooth/bluez/audio/ |
unix.c | 54 #define check_nul(str) (str[sizeof(str) - 1] == '\0') 123 char cmsg_b[CMSG_SPACE(sizeof(int))], m = 'm'; 125 struct iovec iov = { &m, sizeof(m) }; 128 memset(&msgh, 0, sizeof(msgh)); 132 msgh.msg_controllen = CMSG_LEN(sizeof(int)); 137 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); 139 memcpy(CMSG_DATA(cmsg), &fd, sizeof(int)); 164 memset(buf, 0, sizeof(buf)); 167 rsp->h.length = sizeof(*rsp); 238 codec->length = sizeof(*pcm) [all...] |
/external/chromium/third_party/icu/source/test/cintltst/ |
cnormtst.c | 37 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof ((array)[0])) 158 result=(UChar*)malloc(sizeof(UChar*) * resLen); 187 result=(UChar*)malloc(sizeof(UChar*) * resLen); 216 result=(UChar*)malloc(sizeof(UChar*) * resLen); 245 result=(UChar*)malloc(sizeof(UChar*) * resLen); [all...] |
/development/samples/BrowserPlugin/jni/ |
jni-bridge.cpp | 32 event.inSize = sizeof(ANPEvent); 42 event.inSize = sizeof(ANPEvent); 54 event.inSize = sizeof(ANPEvent);
|