Searched defs:len (Results 176 - 200 of 5037) sorted by relevance

1234567891011>>

/external/curl/lib/
H A Dstrdup.c36 size_t len; local
42 len = strlen(str);
44 if(len >= ((size_t)-1) / sizeof(char))
47 newstr = malloc((len+1)*sizeof(char));
51 memcpy(newstr, str, (len+1)*sizeof(char));
/external/dtc/libfdt/
H A Dfdt_addresses.c62 int len; local
64 ac = fdt_getprop(fdt, nodeoffset, "#address-cells", &len);
68 if (len != sizeof(*ac))
82 int len; local
84 sc = fdt_getprop(fdt, nodeoffset, "#size-cells", &len);
88 if (len != sizeof(*sc))
/external/dtc/tests/
H A Dextra-terminating-null.c32 int len = strlen(str); local
33 char checkbuf[len+numnulls];
36 memcpy(checkbuf, TEST_STRING_1, len);
38 check_getprop(fdt, 0, prop, len+numnulls, checkbuf);
/external/e2fsprogs/lib/e2p/
H A Diod.c33 int max_len = -1, len, ret = 0; local
63 len = dep->d_reclen;
64 if (len > max_len)
65 len = max_len;
67 len = sizeof(struct dirent);
69 memcpy(de, dep, len);
/external/elfutils/libasm/
H A Dasm_align.c60 if (asmscn->pattern->len == 1)
66 for (size_t cnt = 0; cnt < asmscn->pattern->len; ++cnt)
92 size_t byteptr = asmscn->offset % asmscn->pattern->len;
99 asmscn->content->data[asmscn->content->len++]
102 if (byteptr == asmscn->pattern->len)
136 __libasm_ensure_section_space (AsmScn_t *asmscn, size_t len) argument
145 size = MAX (2 * len, 960);
158 if (asmscn->content->maxlen - asmscn->content->len >= len)
162 size = MAX (2 *len, MI
[all...]
/external/elfutils/libebl/
H A Deblcorenotetypename.c39 ebl_core_note_type_name (Ebl *ebl, uint32_t type, char *buf, size_t len) argument
41 const char *res = ebl->core_note_type_name (type, buf, len);
98 snprintf (buf, len, "%s: %" PRIu32, gettext ("<unknown>"), type);
H A Debldynamictagname.c40 ebl_dynamic_tag_name (Ebl *ebl, int64_t tag, char *buf, size_t len) argument
42 const char *res = ebl != NULL ? ebl->dynamic_tag_name (tag, buf, len) : NULL;
101 snprintf (buf, len, gettext ("<unknown>: %#" PRIx64), tag);
H A Deblmachineflagname.c40 ebl_machine_flag_name (Ebl *ebl, Elf64_Word flags, char *buf, size_t len) argument
57 if (cp + 1 >= buf + len)
66 snprintf (cp, buf + len - cp, "%#x", flags);
71 if ((size_t) (buf + len - cp) < machstrlen)
73 *((char *) mempcpy (cp, machstr, buf + len - cp - 1)) = '\0';
H A Deblobjnotetypename.c42 char *buf, size_t len)
44 const char *res = ebl->object_note_type_name (name, type, buf, len);
50 snprintf (buf, len, "Version: %" PRIu32, type);
69 snprintf (buf, len, "%s: %" PRIu32, gettext ("<unknown>"), type);
41 ebl_object_note_type_name(Ebl *ebl, const char *name, uint32_t type, char *buf, size_t len) argument
H A Deblsectionname.c39 ebl_section_name (Ebl *ebl, int section, int xsection, char *buf, size_t len, argument
43 buf, len) : NULL;
66 snprintf (buf, len, "%d", idx);
74 snprintf (buf, len, "%s: %d", "XINDEX", xsection);
76 snprintf (buf, len, "LOOS+%x", section - SHN_LOOS);
79 snprintf (buf, len, "LOPROC+%x", section - SHN_LOPROC);
81 snprintf (buf, len, "LORESERVE+%x", section - SHN_LORESERVE);
83 snprintf (buf, len, "%s: %d", gettext ("<unknown>"), section);
H A Deblsectiontypename.c39 ebl_section_type_name (Ebl *ebl, int section, char *buf, size_t len) argument
41 const char *res = ebl->section_type_name (section, buf, len);
107 snprintf (buf, len, "SHT_LOOS+%x", section - SHT_LOOS);
110 snprintf (buf, len, "SHT_LOPROC+%x", section - SHT_LOPROC);
113 snprintf (buf, len, "SHT_LOUSER+%x", section - SHT_LOUSER);
115 snprintf (buf, len, "%s: %d", gettext ("<unknown>"), section);
H A Deblsegmenttypename.c39 ebl_segment_type_name (Ebl *ebl, int segment, char *buf, size_t len) argument
43 res = ebl != NULL ? ebl->segment_type_name (segment, buf, len) : NULL;
75 snprintf (buf, len, "LOOS+%d", segment - PT_LOOS);
77 snprintf (buf, len, "LOPROC+%d", segment - PT_LOPROC);
79 snprintf (buf, len, "%s: %d", gettext ("<unknown>"), segment);
H A Deblsymbolbindingname.c39 ebl_symbol_binding_name (Ebl *ebl, int binding, char *buf, size_t len) argument
43 res = ebl != NULL ? ebl->symbol_type_name (binding, buf, len) : NULL;
59 snprintf (buf, len, "LOPROC+%d", binding - STB_LOPROC);
65 snprintf (buf, len, "LOOS+%d", binding - STB_LOOS);
67 snprintf (buf, len, gettext ("<unknown>: %d"), binding);
H A Deblsymboltypename.c39 ebl_symbol_type_name (Ebl *ebl, int symbol, char *buf, size_t len) argument
43 res = ebl != NULL ? ebl->symbol_type_name (symbol, buf, len) : NULL;
65 snprintf (buf, len, "LOPROC+%d", symbol - STT_LOPROC);
71 snprintf (buf, len, "LOOS+%d", symbol - STT_LOOS);
73 snprintf (buf, len, gettext ("<unknown>: %d"), symbol);
/external/elfutils/libelf/
H A Dgnuhash_xlate.h37 elf_cvt_gnuhash (void *dest, const void *src, size_t len, int encode) argument
47 if (len < 4)
50 len -= 4;
60 if (len < 8)
63 len -= 8;
69 while (len >= 4)
72 len -= 4;
H A Dnote_xlate.h30 elf_cvt_note (void *dest, const void *src, size_t len, int encode) argument
34 while (len >= sizeof (Elf32_Nhdr))
42 len -= sizeof *n;
46 if (namesz > len)
48 len -= namesz;
49 if (descsz > len)
51 len -= descsz;
62 if (unlikely (len > 0) && src != dest)
63 memcpy (dest, src, len);
/external/elfutils/tests/
H A Dbuildid.c58 ssize_t len = dwelf_elf_gnu_build_id (elf, &build_id); local
59 switch (len)
70 const unsigned char *end = p + len;
H A Ddwarf-getstring.c38 size_t len; local
56 const char *str = dwarf_getstring (NULL, offset, &len);
60 str = dwarf_getstring (dbg, ~0UL, &len);
66 str = dwarf_getstring (dbg, offset, &len);
70 offset += len + 1;
/external/fio/
H A Dfifo.c49 unsigned int fifo_put(struct fifo *fifo, void *buffer, unsigned int len) argument
53 len = min(len, fifo_room(fifo));
56 l = min(len, fifo->size - (fifo->in & (fifo->size - 1)));
60 memcpy(fifo->buffer, buffer + l, len - l);
67 fifo->in += len;
69 return len;
72 unsigned int fifo_get(struct fifo *fifo, void *buf, unsigned int len) argument
74 len = min(len, fif
[all...]
/external/flac/libFLAC/
H A Dcrc.c119 void FLAC__crc8_update_block(const FLAC__byte *data, unsigned len, FLAC__uint8 *crc) argument
121 while(len--)
125 FLAC__uint8 FLAC__crc8(const FLAC__byte *data, unsigned len) argument
129 while(len--)
135 unsigned FLAC__crc16(const FLAC__byte *data, unsigned len) argument
139 while(len--)
/external/google-breakpad/src/client/linux/minidump_writer/
H A Dline_reader_unittest.cc63 unsigned len; local
64 ASSERT_FALSE(reader.GetNextLine(&line, &len));
73 unsigned int len; local
74 ASSERT_TRUE(reader.GetNextLine(&line, &len));
75 ASSERT_EQ((unsigned int)1, len);
78 reader.PopLine(len);
80 ASSERT_FALSE(reader.GetNextLine(&line, &len));
89 unsigned len; local
90 ASSERT_TRUE(reader.GetNextLine(&line, &len));
91 ASSERT_EQ((unsigned)1, len);
105 unsigned len; local
127 unsigned len; local
151 unsigned len; local
153 ASSERT_EQ(sizeof(l), len); local
167 unsigned len; local
[all...]
/external/guava/guava/src/com/google/common/io/
H A DByteProcessor.java37 * from {@code buf[off]} through {@code buf[off + len - 1]}
42 * @param len the length of data to be processed
45 boolean processBytes(byte[] buf, int off, int len) throws IOException; argument
/external/icu/icu4c/source/test/intltest/
H A Dtestutil.cpp56 UnicodeString TestUtility::hex(const uint8_t* bytes, int32_t len) { argument
58 for (int32_t i = 0; i < len; ++i) {
/external/iproute2/lib/
H A Dinet_proto.c26 const char *inet_proto_n2a(int proto, char *buf, int len) argument
39 strncpy(buf, pe->p_name, len);
42 snprintf(buf, len, "ipproto-%d", proto);
H A Dlibgenl.c16 int len = nlh->nlmsg_len; local
25 len -= NLMSG_LENGTH(GENL_HDRLEN);
27 if (len < 0) {
28 fprintf(stderr, "wrong controller message len %d\n", len);
38 parse_rtattr(tb, CTRL_ATTR_MAX, attrs, len);

Completed in 371 milliseconds

1234567891011>>