Home
last modified time | relevance | path

Searched refs:maxlen (Results 1 – 25 of 145) sorted by relevance

123456

/external/libexif/libexif/olympus/
Dmnote-olympus-entry.c33 #define CF(format,target,v,maxlen) \ argument
36 snprintf (v, maxlen, \
45 #define CF2(format,target1,target2,v,maxlen) \ argument
48 snprintf (v, maxlen, \
58 #define CC(number,target,v,maxlen) \ argument
61 snprintf (v, maxlen, \
68 #define CC2(number,t1,t2,v,maxlen) \ argument
71 snprintf (v, maxlen, \
273 mnote_olympus_entry_get_value (MnoteOlympusEntry *entry, char *v, unsigned int maxlen) in mnote_olympus_entry_get_value() argument
287 memset (v, 0, maxlen); in mnote_olympus_entry_get_value()
[all …]
/external/libexif/libexif/canon/
Dmnote-canon-entry.c36 #define CF(format,target,v,maxlen) \ argument
39 snprintf (v, maxlen, \
48 #define CC(number,target,v,maxlen) \ argument
51 snprintf (v, maxlen, \
57 #define CC2(number,t1,t2,v,maxlen) \ argument
60 snprintf (v, maxlen, \
443 unsigned int t, ExifShort vs, char *val, unsigned int maxlen) in canon_search_table_value() argument
456 strncpy (val, _(table[j].name), maxlen); in canon_search_table_value()
459 snprintf (val, maxlen, "0x%04x", vs); in canon_search_table_value()
465 unsigned int t, ExifShort vs, char *val, unsigned int maxlen) in canon_search_table_bitfield() argument
[all …]
/external/libexif/libexif/pentax/
Dmnote-pentax-entry.c35 #define CF(format,target,v,maxlen) \ argument
38 snprintf (v, maxlen, \
47 #define CC(number,target,v,maxlen) \ argument
50 snprintf (v, maxlen, \
57 #define CC2(number,t1,t2,v,maxlen) \ argument
60 snprintf (v, maxlen, \
309 char *val, unsigned int maxlen) in mnote_pentax_entry_get_value() argument
317 memset (val, 0, maxlen); in mnote_pentax_entry_get_value()
318 maxlen--; in mnote_pentax_entry_get_value()
341 CF (entry->format, EXIF_FORMAT_SHORT, val, maxlen); in mnote_pentax_entry_get_value()
[all …]
/external/libexif/libexif/
Dexif-entry.c444 exif_entry_format_value(ExifEntry *e, char *val, size_t maxlen) in exif_entry_format_value() argument
457 if (!e->size || !maxlen) in exif_entry_format_value()
459 ++maxlen; /* include the terminating NUL */ in exif_entry_format_value()
462 snprintf (val, maxlen, _("%i bytes undefined data"), e->size); in exif_entry_format_value()
467 snprintf (val, maxlen, "0x%02x", v_byte); in exif_entry_format_value()
471 snprintf (val+len, maxlen-len, ", 0x%02x", v_byte); in exif_entry_format_value()
473 if (len >= maxlen-1) break; in exif_entry_format_value()
478 snprintf (val, maxlen, "%u", v_short); in exif_entry_format_value()
483 snprintf (val+len, maxlen-len, ", %u", v_short); in exif_entry_format_value()
485 if (len >= maxlen-1) break; in exif_entry_format_value()
[all …]
Dexif-utils.c220 exif_convert_utf16_to_utf8 (char *out, const unsigned short *in, int maxlen) in exif_convert_utf16_to_utf8() argument
222 if (maxlen <= 0) { in exif_convert_utf16_to_utf8()
227 if (maxlen > 1) { in exif_convert_utf16_to_utf8()
229 maxlen--; in exif_convert_utf16_to_utf8()
234 if (maxlen > 2) { in exif_convert_utf16_to_utf8()
237 maxlen -= 2; in exif_convert_utf16_to_utf8()
242 if (maxlen > 3) { in exif_convert_utf16_to_utf8()
246 maxlen -= 3; in exif_convert_utf16_to_utf8()
/external/libexif/libexif/fuji/
Dmnote-fuji-entry.c31 #define CF(format,target,v,maxlen) \ argument
34 snprintf (v, maxlen, \
43 #define CC(number,target,v,maxlen) \ argument
46 snprintf (v, maxlen, \
191 char *val, unsigned int maxlen) in mnote_fuji_entry_get_value() argument
202 memset (val, 0, maxlen); in mnote_fuji_entry_get_value()
203 maxlen--; in mnote_fuji_entry_get_value()
207 CF (entry->format, EXIF_FORMAT_UNDEFINED, val, maxlen); in mnote_fuji_entry_get_value()
208 CC (entry->components, 4, val, maxlen); in mnote_fuji_entry_get_value()
209 memcpy (val, entry->data, MIN(maxlen, entry->size)); in mnote_fuji_entry_get_value()
[all …]
/external/openssh/openbsd-compat/
Dbsd-snprintf.c182 static int dopr(char *buffer, size_t maxlen, const char *format,
184 static int fmtstr(char *buffer, size_t *currlen, size_t maxlen,
186 static int fmtint(char *buffer, size_t *currlen, size_t maxlen,
188 static int fmtfp(char *buffer, size_t *currlen, size_t maxlen,
192 dopr(char *buffer, size_t maxlen, const char *format, va_list args_in) in dopr() argument
222 DOPR_OUTCH(buffer, currlen, maxlen, ch); in dopr()
333 if (fmtint(buffer, &currlen, maxlen, in dopr()
353 if (fmtint(buffer, &currlen, maxlen, value, in dopr()
373 if (fmtint(buffer, &currlen, maxlen, value, in dopr()
395 if (fmtint(buffer, &currlen, maxlen, value, in dopr()
[all …]
Dstrnlen.c28 strnlen(const char *str, size_t maxlen) in strnlen() argument
32 for (cp = str; maxlen != 0 && *cp != '\0'; cp++, maxlen--) in strnlen()
/external/iproute2/include/
Dlibnetlink.h47 extern int addattr(struct nlmsghdr *n, int maxlen, int type);
48 extern int addattr8(struct nlmsghdr *n, int maxlen, int type, __u8 data);
49 extern int addattr16(struct nlmsghdr *n, int maxlen, int type, __u16 data);
50 extern int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data);
51 extern int addattr64(struct nlmsghdr *n, int maxlen, int type, __u64 data);
52 extern int addattrstrz(struct nlmsghdr *n, int maxlen, int type, const char *data);
54 extern int addattr_l(struct nlmsghdr *n, int maxlen, int type, const void *data, int alen);
55 extern int addraw_l(struct nlmsghdr *n, int maxlen, const void *data, int len);
56 extern struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type);
58 extern struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type, const void *dat…
[all …]
/external/iproute2/lib/
Dlibnetlink.c523 int addattr(struct nlmsghdr *n, int maxlen, int type) in addattr() argument
525 return addattr_l(n, maxlen, type, NULL, 0); in addattr()
528 int addattr8(struct nlmsghdr *n, int maxlen, int type, __u8 data) in addattr8() argument
530 return addattr_l(n, maxlen, type, &data, sizeof(__u8)); in addattr8()
533 int addattr16(struct nlmsghdr *n, int maxlen, int type, __u16 data) in addattr16() argument
535 return addattr_l(n, maxlen, type, &data, sizeof(__u16)); in addattr16()
538 int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data) in addattr32() argument
540 return addattr_l(n, maxlen, type, &data, sizeof(__u32)); in addattr32()
543 int addattr64(struct nlmsghdr *n, int maxlen, int type, __u64 data) in addattr64() argument
545 return addattr_l(n, maxlen, type, &data, sizeof(__u64)); in addattr64()
[all …]
/external/toybox/toys/pending/
Dfold.c34 int bufsz, len = 0, maxlen; local
36 if (toys.optflags & FLAG_w) maxlen = TT.width;
37 else if (toys.optflags & FLAG_u) maxlen = 0;
38 else maxlen = 80;
79 if (maxlen > 0 && len >= maxlen && buf[pos+1] != '\n' && buf[pos+1] != '\b') {
/external/chromium-trace/trace-viewer/third_party/Paste/paste/auth/
Dcookie.py128 def __init__(self, secret = None, timeout = None, maxlen = None): argument
134 self.maxlen = maxlen or 4096
153 if len(cookie) > self.maxlen:
255 signer=None, secret=None, timeout=None, maxlen=None): argument
257 signer = self.signer_class(secret, timeout, maxlen)
328 maxlen=4096): argument
392 maxlen = int(maxlen)
395 % maxlen)
398 secret=secret, timeout=timeout, maxlen=maxlen)
/external/libopus/src/
Drepacketizer.c103 unsigned char *data, opus_int32 maxlen, int self_delimited, int pad) in opus_repacketizer_out_range_impl() argument
130 if (tot_size > maxlen) in opus_repacketizer_out_range_impl()
139 if (tot_size > maxlen) in opus_repacketizer_out_range_impl()
145 if (tot_size > maxlen) in opus_repacketizer_out_range_impl()
151 if (count > 2 || (pad && tot_size < maxlen)) in opus_repacketizer_out_range_impl()
179 if (tot_size > maxlen) in opus_repacketizer_out_range_impl()
185 if (tot_size > maxlen) in opus_repacketizer_out_range_impl()
190 pad_amount = pad ? (maxlen-tot_size) : 0; in opus_repacketizer_out_range_impl()
222 for (i=ptr-data;i<maxlen;i++) in opus_repacketizer_out_range_impl()
228 …ketizer_out_range(OpusRepacketizer *rp, int begin, int end, unsigned char *data, opus_int32 maxlen) in opus_repacketizer_out_range() argument
[all …]
/external/clang/test/Sema/
Denable_if.c22 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}}
27 inline size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}} in strnlen() argument
32 return __strnlen_chk(s, maxlen, __builtin_object_size(s, 0)); in strnlen()
35 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate disabled: chosen when 'ma…
39 __attribute__((enable_if(maxlen <= __builtin_object_size(s, 0),
43 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function has been explici…
47 __attribute__((enable_if(maxlen > __builtin_object_size(s, 0),
/external/vboot_reference/futility/
Dmisc.c84 uint32_t maxlen = gbb->header_size; in futil_valid_gbb_header() local
85 maxlen = max(maxlen, in futil_valid_gbb_header()
87 maxlen = max(maxlen, in futil_valid_gbb_header()
89 maxlen = max(maxlen, in futil_valid_gbb_header()
91 maxlen = max(maxlen, in futil_valid_gbb_header()
93 *maxlen_ptr = maxlen; in futil_valid_gbb_header()
/external/bison/lib/
Dstrnlen.c26 strnlen (const char *string, size_t maxlen) in strnlen() argument
28 const char *end = memchr (string, '\0', maxlen); in strnlen()
29 return end ? (size_t) (end - string) : maxlen; in strnlen()
Dstrnlen1.c28 strnlen1 (const char *string, size_t maxlen) in strnlen1() argument
30 const char *end = (const char *) memchr (string, '\0', maxlen); in strnlen1()
34 return maxlen; in strnlen1()
/external/liblzf/
Dlzf_c.c164 unsigned int maxlen = in_end - ip - len; in lzf_compress() local
165 maxlen = maxlen > MAX_REF ? MAX_REF : maxlen; in lzf_compress()
176 if (expect_true (maxlen > 16)) in lzf_compress()
201 while (len < maxlen && ref[len] == ip[len]); in lzf_compress()
/external/liblzf/src/org/liblzf/
DCLZF.java192 int maxlen = in_len - iidx - len; in lzf_compress() local
193 maxlen = maxlen > MAX_REF ? MAX_REF : maxlen; in lzf_compress()
200 while (len < maxlen && in_data[reference+len] == in_data[iidx+len]); in lzf_compress()
/external/linux-tools-perf/src/tools/perf/util/
Dquote.c42 void sq_quote_argv(struct strbuf *dst, const char** argv, size_t maxlen) in sq_quote_argv() argument
51 if (maxlen && dst->len > maxlen) in sq_quote_argv()
/external/liblzf/cs/
DCLZF.cs192 UInt32 maxlen = (UInt32)in_len - iidx - len; in lzf_compress()
193 maxlen = maxlen > MAX_REF ? MAX_REF : maxlen; in lzf_compress()
200 while (len < maxlen && in_data[reference+len] == in_data[iidx+len]); in lzf_compress()
/external/boringssl/src/ssl/
Dt1_reneg.c121 int maxlen) { in ssl_add_clienthello_renegotiate_ext() argument
123 if (s->s3->previous_client_finished_len + 1 > maxlen) { in ssl_add_clienthello_renegotiate_ext()
170 int maxlen) { in ssl_add_serverhello_renegotiate_ext() argument
173 s->s3->previous_server_finished_len + 1 > maxlen) { in ssl_add_serverhello_renegotiate_ext()
/external/fio/lib/
Dnum2str.c12 char *num2str(uint64_t num, int maxlen, int base, int pow2, int unit_base) in num2str() argument
40 if (strlen(tmp) <= maxlen) in num2str()
60 decimals = maxlen - strlen(tmp); in num2str()
/external/netperf/
Dnettest_xti.c220 opt_req->opt.maxlen, in create_xti_endpoint()
239 opt_ret->opt.maxlen, in create_xti_endpoint()
823 server_call.addr.maxlen = sizeof(struct sockaddr_in); in send_xti_tcp_stream()
1379 bind_req.addr.maxlen = sizeof(struct sockaddr_in); in recv_xti_tcp_stream()
1384 bind_resp.addr.maxlen = sizeof(struct sockaddr_in); in recv_xti_tcp_stream()
1480 call_req.addr.maxlen = sizeof(struct sockaddr_in); in recv_xti_tcp_stream()
1483 call_req.opt.maxlen = 0; in recv_xti_tcp_stream()
1486 call_req.udata.maxlen= 0; in recv_xti_tcp_stream()
2008 server_call.addr.maxlen = sizeof(struct sockaddr_in); in send_xti_tcp_rr()
2701 unitdata.addr.maxlen = sizeof(struct sockaddr_in); in send_xti_udp_stream()
[all …]
/external/elfutils/src/src/
Dsize.c410 int maxlen = 10; in show_sysv() local
432 maxlen = MAX (maxlen, (int) strlen (name)); in show_sysv()
439 maxlen, sgettext ("sysv|section"), in show_sysv()
458 maxlen, elf_strptr (elf, shstrndx, shdr->sh_name), in show_sysv()
467 printf ("%-*s %*" PRIx64 "\n\n\n", maxlen, sgettext ("sysv|Total"), in show_sysv()
470 printf ("%-*s %*" PRId64 "\n\n\n", maxlen, sgettext ("sysv|Total"), in show_sysv()
473 printf ("%-*s %*" PRIo64 "\n\n\n", maxlen, sgettext ("sysv|Total"), in show_sysv()

123456