/external/vboot_reference/host/lib/ |
H A D | file_keys.c | 21 uint8_t* BufferFromFile(const char* input_file, uint64_t* len) { argument 35 *len = stat_fd.st_size; 37 buf = (uint8_t*)malloc(*len); 39 VbExError("Couldn't allocate %ld bytes for file %s\n", *len, input_file); 43 if (*len != read(fd, buf, *len)) { 53 uint64_t len; local 55 uint8_t* buf = BufferFromFile(input_file, &len); 57 key = RSAPublicKeyFromBuf(buf, len); 63 int input_fd, len; local [all...] |
/external/pdfium/third_party/bigint/ |
H A D | NumberlikeArray.hh | 39 Index len; member in class:NumberlikeArray 40 // Heap-allocated array of the blocks (can be NULL if len == 0) 44 NumberlikeArray(Index c) : cap(c), len(0) { 52 NumberlikeArray() : cap(0), len(0) { 80 Index getLength() const { return len; } 82 bool isEmpty() const { return len == 0; } 122 for (i = 0; i < len; i++) 131 : len(x.len) { 133 cap = len; [all...] |
/external/speex/libspeex/ |
H A D | buffer.c | 68 EXPORT int speex_buffer_write(SpeexBuffer *st, void *_data, int len) argument 73 if (len > st->size) 75 data += len-st->size; 76 len = st->size; 78 end = st->write_ptr + len; 88 st->available += len; 94 st->write_ptr += len; 97 return len; 100 EXPORT int speex_buffer_writezeros(SpeexBuffer *st, int len) argument 106 if (len > s 132 speex_buffer_read(SpeexBuffer *st, void *_data, int len) argument 164 speex_buffer_resize(SpeexBuffer *st, int len) argument [all...] |
/external/tcpdump/ |
H A D | print-bootp.c | 370 register u_int len; local 404 len = 0; 408 len = *bp++; 411 printf("\n\t %s Option %u, length %u%s", cp, tag, len, 412 len > 0 ? ": " : ""); 424 if (!TTEST2(*bp, len)) { 425 printf("[|rfc1048 %u]", len); 429 if (tag == TAG_DHCP_MESSAGE && len == 1) { 437 while (len-- > 0) { 452 while (len > [all...] |
/external/harfbuzz_ng/src/ |
H A D | hb-icu.cc | 190 unsigned int len; local 194 len = 0; 196 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), a, err); 198 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), b, err); 202 len = unorm_normalize (utf16, len, UNORM_NFC, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); 205 if (u_countChar32 (normalized, len) == 1) { 225 int len; local 227 len = unorm2_getRawDecomposition (normalizer, ab, decomposed, 229 if (U_FAILURE (icu_err) || len < 249 unsigned int len; local 319 unsigned int len; local [all...] |
H A D | test-would-substitute.cc | 60 unsigned int len; local 68 len = g_mapped_file_get_length (mf); 75 len = ftell (f); 77 font_data = (const char *) malloc (len); 78 if (!font_data) len = 0; 79 len = fread ((char *) font_data, 1, len, f); 86 blob = hb_blob_create (font_data, len, mm, user_data, destroy); 99 unsigned int len = argc - 3; local 105 return !hb_ot_layout_lookup_would_substitute (face, strtol (argv[2], NULL, 0), glyphs, len, fals [all...] |
/external/kernel-headers/original/uapi/linux/netfilter/ |
H A D | nfnetlink_compat.h | 37 #define NFA_ALIGN(len) (((len) + NFA_ALIGNTO - 1) & ~(NFA_ALIGNTO - 1)) 38 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) \ 39 && (nfa)->nfa_len <= (len)) 42 #define NFA_LENGTH(len) (NFA_ALIGN(sizeof(struct nfattr)) + (len)) 43 #define NFA_SPACE(len) NFA_ALIGN(NFA_LENGTH(len)) 52 (skb)->len; }) [all...] |
/external/linux-tools-perf/src/tools/perf/util/ |
H A D | strbuf.h | 17 * 2. the ->buf member is a byte array that has at least ->len + 1 bytes 29 * strbuf_setlen(sb, sb->len + SOME_OTHER_SIZE); 46 size_t len; member in struct:strbuf 59 return sb->alloc ? sb->alloc - sb->len - 1 : 0; 64 static inline void strbuf_setlen(struct strbuf *sb, size_t len) { argument 67 assert(len < sb->alloc); 68 sb->len = len; 69 sb->buf[len] = '\0'; 75 sb->buf[sb->len [all...] |
/external/wpa_supplicant_8/hostapd/src/eap_common/ |
H A D | eap_peap_common.c | 25 size_t len[5]; local 28 len[0] = 0; 30 len[1] = label_len; 32 len[2] = seed_len; 47 len[3] = 1; 49 len[4] = 2; 63 len[3] = 1; 65 len[4] = 1; 72 if (hmac_sha1_vector(key, key_len, 5, addr, len, hash) < 0) 81 len[ [all...] |
/external/wpa_supplicant_8/src/eap_common/ |
H A D | eap_peap_common.c | 25 size_t len[5]; local 28 len[0] = 0; 30 len[1] = label_len; 32 len[2] = seed_len; 47 len[3] = 1; 49 len[4] = 2; 63 len[3] = 1; 65 len[4] = 1; 72 if (hmac_sha1_vector(key, key_len, 5, addr, len, hash) < 0) 81 len[ [all...] |
/external/wpa_supplicant_8/wpa_supplicant/src/eap_common/ |
H A D | eap_peap_common.c | 25 size_t len[5]; local 28 len[0] = 0; 30 len[1] = label_len; 32 len[2] = seed_len; 47 len[3] = 1; 49 len[4] = 2; 63 len[3] = 1; 65 len[4] = 1; 72 if (hmac_sha1_vector(key, key_len, 5, addr, len, hash) < 0) 81 len[ [all...] |
/external/openssh/ |
H A D | sshbuf-getput-basic.c | 30 sshbuf_get(struct sshbuf *buf, void *v, size_t len) argument 35 if ((r = sshbuf_consume(buf, len)) < 0) 37 if (v != NULL && len != 0) 38 memcpy(v, p, len); 98 size_t len; local 105 if ((r = sshbuf_get_string_direct(buf, &val, &len)) < 0) 108 if ((*valp = malloc(len + 1)) == NULL) { 112 if (len != 0) 113 memcpy(*valp, val, len); 114 (*valp)[len] 124 size_t len; local 151 u_int32_t len; local 181 size_t len; local 216 u_int32_t len; local 234 sshbuf_put(struct sshbuf *buf, const void *v, size_t len) argument 268 int r, len; local 346 sshbuf_put_string(struct sshbuf *buf, const void *v, size_t len) argument 379 size_t len; local 400 sshbuf_put_bignum2_bytes(struct sshbuf *buf, const void *v, size_t len) argument 433 size_t len, olen; local [all...] |
/external/pdfium/core/src/fxcodec/fx_zlib/zlib_v128/ |
H A D | fx_zlib_inftrees.c | 40 unsigned len; /* a code's length in bits */ local 107 for (len = 0; len <= MAXBITS; len++) 108 count[len] = 0; 132 for (len = 1; len <= MAXBITS; len++) { 134 left -= count[len]; 142 for (len [all...] |
/external/zlib/src/ |
H A D | inftrees.c | 40 unsigned len; /* a code's length in bits */ local 107 for (len = 0; len <= MAXBITS; len++) 108 count[len] = 0; 132 for (len = 1; len <= MAXBITS; len++) { 134 left -= count[len]; 142 for (len [all...] |
/external/google-breakpad/src/common/linux/ |
H A D | linux_libc_support.cc | 41 size_t len = 0; local 42 while (*s++) len++; 43 return len; 59 int my_strncmp(const char* a, const char* b, size_t len) { argument 60 for (size_t i = 0; i < len; ++i) { 103 int len = 0; local 105 len++; 109 return len; 192 void my_memset(void* ip, char c, size_t len) { argument 194 while (len 198 my_strlcpy(char* s1, const char* s2, size_t len) argument 215 my_strlcat(char* s1, const char* s2, size_t len) argument [all...] |
/external/libnfc-nci/halimpl/pn54x/log/ |
H A D | phNxpLog.c | 57 int len = property_get (PROP_NAME_NXPLOG_GLOBAL_LOGLEVEL, valueStr, ""); local 58 if (len > 0) 80 int len; local 88 len = property_get (PROP_NAME_NXPLOG_HAL_LOGLEVEL, valueStr, ""); 89 if (len > 0) 109 int len; local 116 len = property_get (PROP_NAME_NXPLOG_EXTNS_LOGLEVEL, valueStr, ""); 117 if (len > 0) 137 int len; local 144 len 165 int len; local 193 int len; local [all...] |
/external/pdfium/core/src/fxge/agg/agg23/ |
H A D | agg_scanline_u.h | 37 coord_type len; member in struct:agg::scanline_u::span 74 m_cur_span->len++; 78 m_cur_span->len = 1; 83 void add_cells(int x, unsigned len, const CoverT* covers) argument 86 FXSYS_memcpy(m_covers + x, covers, len * sizeof(CoverT)); 88 m_cur_span->len += (coord_type)len; 92 m_cur_span->len = (coord_type)len; 95 m_last_x = x + len 97 add_span(int x, unsigned len, unsigned cover) argument [all...] |
/external/ppp/pppd/ |
H A D | cbcp.c | 67 static void cbcp_input __P((int unit, u_char *pkt, int len)); 69 static int cbcp_printpkt __P((u_char *pkt, int len, 97 static void cbcp_recvreq __P((cbcp_state *us, u_char *pckt, int len)); 100 static void cbcp_recvack __P((cbcp_state *us, u_char *pckt, int len)); 101 static void cbcp_send __P((cbcp_state *us, int code, u_char *buf, int len)); 161 u_short len; local 175 GETSHORT(len, inp); 177 if (len > pktlen || len < CBCP_MINLEN) { 179 dbglog("CBCP packet: invalid length %d", len); 233 int code, opt, id, len, olen, delay; local 312 int len = pcktlen; local 370 int len = 0; local [all...] |
/external/bison/lib/ |
H A D | fprintf.c | 40 size_t len; local 46 len = lenbuf; 55 if (fwrite (output, 1, len, fp) < len) 69 if (len > INT_MAX) 76 return len;
|
H A D | snprintf.c | 40 size_t len; local 46 len = lenbuf; 56 size_t pruned_len = (len < size ? len : size - 1); 64 if (INT_MAX < len) 70 return len;
|
H A D | vfprintf.c | 40 size_t len; local 44 len = lenbuf; 52 if (fwrite (output, 1, len, fp) < len) 66 if (len > INT_MAX) 73 return len;
|
H A D | vsnprintf.c | 42 size_t len; local 46 len = lenbuf; 55 size_t pruned_len = (len < size ? len : size - 1); 63 if (len > INT_MAX) 69 return len;
|
/external/e2fsprogs/lib/e2p/ |
H A D | iod.c | 32 int max_len = -1, len, ret = 0; local 62 len = dep->d_reclen; 63 if (len > max_len) 64 len = max_len; 66 len = sizeof(struct dirent); 68 memcpy(de, dep, len);
|
/external/elfutils/src/libebl/ |
H A D | eblmachineflagname.c | 40 ebl_machine_flag_name (ebl, flags, buf, len) 44 size_t len; 61 if (cp + 1 >= buf + len) 70 snprintf (cp, buf + len - cp, "%#x", flags); 75 if ((size_t) (buf + len - cp) < machstrlen) 77 *((char *) mempcpy (cp, machstr, buf + len - cp - 1)) = '\0';
|
H A D | eblsymbolbindingname.c | 39 ebl_symbol_binding_name (ebl, binding, buf, len) 43 size_t len; 47 res = ebl != NULL ? ebl->symbol_type_name (binding, buf, len) : NULL; 63 snprintf (buf, len, "LOPROC+%d", binding - STB_LOPROC); 69 snprintf (buf, len, "LOOS+%d", binding - STB_LOOS); 71 snprintf (buf, len, gettext ("<unknown>: %d"), binding);
|