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/lib/
Dlibnetlink.c335 struct nlmsghdr *answer, size_t maxlen) in rtnl_talk() argument
418 MIN(maxlen, h->nlmsg_len)); in rtnl_talk()
432 MIN(maxlen, h->nlmsg_len)); in rtnl_talk()
620 int addattr(struct nlmsghdr *n, int maxlen, int type) in addattr() argument
622 return addattr_l(n, maxlen, type, NULL, 0); in addattr()
625 int addattr8(struct nlmsghdr *n, int maxlen, int type, __u8 data) in addattr8() argument
627 return addattr_l(n, maxlen, type, &data, sizeof(__u8)); in addattr8()
630 int addattr16(struct nlmsghdr *n, int maxlen, int type, __u16 data) in addattr16() argument
632 return addattr_l(n, maxlen, type, &data, sizeof(__u16)); in addattr16()
635 int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data) in addattr32() argument
[all …]
/external/iproute2/include/
Dlibnetlink.h81 int addattr(struct nlmsghdr *n, int maxlen, int type);
82 int addattr8(struct nlmsghdr *n, int maxlen, int type, __u8 data);
83 int addattr16(struct nlmsghdr *n, int maxlen, int type, __u16 data);
84 int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data);
85 int addattr64(struct nlmsghdr *n, int maxlen, int type, __u64 data);
86 int addattrstrz(struct nlmsghdr *n, int maxlen, int type, const char *data);
88 int addattr_l(struct nlmsghdr *n, int maxlen, int type,
90 int addraw_l(struct nlmsghdr *n, int maxlen, const void *data, int len);
91 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type);
93 struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type,
[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/compiler-rt/lib/sanitizer_common/
Dsanitizer_libc.cc178 uptr internal_strlcat(char *dst, const char *src, uptr maxlen) { in internal_strlcat() argument
180 const uptr dstlen = internal_strnlen(dst, maxlen); in internal_strlcat()
181 if (dstlen == maxlen) return maxlen + srclen; in internal_strlcat()
182 if (srclen < maxlen - dstlen) { in internal_strlcat()
185 internal_memmove(dst + dstlen, src, maxlen - dstlen - 1); in internal_strlcat()
186 dst[maxlen - 1] = '\0'; in internal_strlcat()
200 uptr internal_strlcpy(char *dst, const char *src, uptr maxlen) { in internal_strlcpy() argument
202 if (srclen < maxlen) { in internal_strlcpy()
204 } else if (maxlen != 0) { in internal_strlcpy()
205 internal_memmove(dst, src, maxlen - 1); in internal_strlcpy()
[all …]
Dsanitizer_libc.h46 uptr internal_strlcat(char *dst, const char *src, uptr maxlen);
49 uptr internal_strlcpy(char *dst, const char *src, uptr maxlen);
51 uptr internal_strnlen(const char *s, uptr maxlen);
/external/chromium-trace/catapult/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/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/clang/test/Sema/
Denable_if.c24 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}}
29 inline size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}} in strnlen() argument
34 return __strnlen_chk(s, maxlen, __builtin_object_size(s, 0)); in strnlen()
37 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate disabled: chosen when 'ma…
41 __attribute__((enable_if(maxlen <= __builtin_object_size(s, 0),
45 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function has been explici…
49 __attribute__((enable_if(maxlen > __builtin_object_size(s, 0),
/external/bison/lib/
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()
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()
/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/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/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/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/src/
Dnettest_xti.c219 opt_req->opt.maxlen, in create_xti_endpoint()
238 opt_ret->opt.maxlen, in create_xti_endpoint()
822 server_call.addr.maxlen = sizeof(struct sockaddr_in); in send_xti_tcp_stream()
1378 bind_req.addr.maxlen = sizeof(struct sockaddr_in); in recv_xti_tcp_stream()
1383 bind_resp.addr.maxlen = sizeof(struct sockaddr_in); in recv_xti_tcp_stream()
1479 call_req.addr.maxlen = sizeof(struct sockaddr_in); in recv_xti_tcp_stream()
1482 call_req.opt.maxlen = 0; in recv_xti_tcp_stream()
1485 call_req.udata.maxlen= 0; in recv_xti_tcp_stream()
2007 server_call.addr.maxlen = sizeof(struct sockaddr_in); in send_xti_tcp_rr()
2700 unitdata.addr.maxlen = sizeof(struct sockaddr_in); in send_xti_udp_stream()
[all …]
/external/skia/bin/
Dcompare57 maxlen = max(map(len, common)) variable
65 print '%*s\t%6s(%6s) -> %6s(%6s)\t%s' % (maxlen, key, humanize(am), humanize(asem),
68 print '%*s\t%6s -> %6s\t%s' % (maxlen, key, humanize(am), humanize(bm), str_ratio)

123456