Home
last modified time | relevance | path

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

1234567891011

/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/
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/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/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.c170 static int dopr(char *buffer, size_t maxlen, const char *format,
172 static int fmtstr(char *buffer, size_t *currlen, size_t maxlen,
174 static int fmtint(char *buffer, size_t *currlen, size_t maxlen,
176 static int fmtfp(char *buffer, size_t *currlen, size_t maxlen,
180 dopr(char *buffer, size_t maxlen, const char *format, va_list args_in) in dopr() argument
210 DOPR_OUTCH(buffer, currlen, maxlen, ch); in dopr()
321 if (fmtint(buffer, &currlen, maxlen, in dopr()
341 if (fmtint(buffer, &currlen, maxlen, value, in dopr()
361 if (fmtint(buffer, &currlen, maxlen, value, in dopr()
383 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/u-boot/lib/
Dmembuff.c21 static int membuff_putrawflex(struct membuff *mb, int maxlen, bool update, in membuff_putrawflex() argument
42 if (maxlen >= 0 && len > maxlen) in membuff_putrawflex()
43 len = maxlen; in membuff_putrawflex()
53 if ((maxlen < 0 || len < maxlen) && mb->tail != mb->start) { in membuff_putrawflex()
63 if (maxlen >= 0 && len > maxlen) in membuff_putrawflex()
64 len = maxlen; in membuff_putrawflex()
75 int membuff_putraw(struct membuff *mb, int maxlen, bool update, char **data) in membuff_putraw() argument
81 size = membuff_putrawflex(mb, maxlen, update, &datap, &offset); in membuff_putraw()
98 int membuff_getraw(struct membuff *mb, int maxlen, bool update, char **data) in membuff_getraw() argument
115 if (maxlen >= 0 && len > maxlen) in membuff_getraw()
[all …]
/external/iproute2/lib/
Dlibnetlink.c531 struct nlmsghdr *answer, size_t maxlen, in __rtnl_talk() argument
615 MIN(maxlen, h->nlmsg_len)); in __rtnl_talk()
629 MIN(maxlen, h->nlmsg_len)); in __rtnl_talk()
652 struct nlmsghdr *answer, size_t maxlen) in rtnl_talk() argument
654 return __rtnl_talk(rtnl, n, answer, maxlen, true, NULL); in rtnl_talk()
658 struct nlmsghdr *answer, size_t maxlen, in rtnl_talk_extack() argument
661 return __rtnl_talk(rtnl, n, answer, maxlen, true, errfn); in rtnl_talk_extack()
665 struct nlmsghdr *answer, size_t maxlen) in rtnl_talk_suppress_rtnl_errmsg() argument
667 return __rtnl_talk(rtnl, n, answer, maxlen, false, NULL); in rtnl_talk_suppress_rtnl_errmsg()
830 int addattr(struct nlmsghdr *n, int maxlen, int type) in addattr() argument
[all …]
/external/iproute2/include/
Dlibnetlink.h109 int addattr(struct nlmsghdr *n, int maxlen, int type);
110 int addattr8(struct nlmsghdr *n, int maxlen, int type, __u8 data);
111 int addattr16(struct nlmsghdr *n, int maxlen, int type, __u16 data);
112 int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data);
113 int addattr64(struct nlmsghdr *n, int maxlen, int type, __u64 data);
114 int addattrstrz(struct nlmsghdr *n, int maxlen, int type, const char *data);
116 int addattr_l(struct nlmsghdr *n, int maxlen, int type,
118 int addraw_l(struct nlmsghdr *n, int maxlen, const void *data, int len);
119 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type);
121 struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type,
[all …]
/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 …]
/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()
224 while (ptr<data+maxlen) in opus_repacketizer_out_range_impl()
230 …ketizer_out_range(OpusRepacketizer *rp, int begin, int end, unsigned char *data, opus_int32 maxlen) in opus_repacketizer_out_range() argument
[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/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/tensorflow/tensorflow/python/keras/preprocessing/
Dsequence_test.py35 b = keras.preprocessing.sequence.pad_sequences(a, maxlen=3, padding='pre')
37 b = keras.preprocessing.sequence.pad_sequences(a, maxlen=3, padding='post')
42 a, maxlen=2, truncating='pre')
45 a, maxlen=2, truncating='post')
49 b = keras.preprocessing.sequence.pad_sequences(a, maxlen=3, value=1)
56 b = keras.preprocessing.sequence.pad_sequences(a, maxlen=3, padding='pre')
59 b = keras.preprocessing.sequence.pad_sequences(a, maxlen=3, padding='post')
65 a, maxlen=2, truncating='pre')
70 a, maxlen=2, truncating='post')
75 b = keras.preprocessing.sequence.pad_sequences(a, maxlen=3, value=1)
[all …]
/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/python/cpython3/Lib/test/
Dtest_deque.py54 d = deque(it, maxlen=3)
67 d = deque(range(200), maxlen=10)
80 d = deque(range(10), maxlen=None)
94 deque(it, maxlen=0)
98 d = deque(maxlen=0)
103 d = deque(maxlen=0)
108 self.assertEqual(deque().maxlen, None)
109 self.assertEqual(deque('abc').maxlen, None)
110 self.assertEqual(deque('abc', maxlen=4).maxlen, 4)
111 self.assertEqual(deque('abc', maxlen=2).maxlen, 2)
[all …]
/external/u-boot/include/
Dmembuff.h67 int membuff_putraw(struct membuff *mb, int maxlen, bool update, char **data);
85 int membuff_getraw(struct membuff *mb, int maxlen, bool update, char **data);
125 int membuff_get(struct membuff *mb, char *buff, int maxlen);
198 int membuff_readline(struct membuff *mb, char *str, int maxlen, int minch);
/external/python/cpython3/Tools/scripts/
Dbyteyears.py38 maxlen = 1
40 maxlen = max(maxlen, len(filename))
55 print(filename.ljust(maxlen), end=' ')
/external/python/cpython2/Tools/scripts/
Dbyteyears.py38 maxlen = 1
40 maxlen = max(maxlen, len(filename))
55 print filename.ljust(maxlen),
/external/python/cpython3/Modules/
D_collectionsmodule.c84 Py_ssize_t maxlen; /* maxlen is -1 for unbounded deques */ member
172 deque->maxlen = -1; in deque_new()
265 #define NEEDS_TRIM(deque, maxlen) ((size_t)(maxlen) < (size_t)(Py_SIZE(deque))) argument
268 deque_append_internal(dequeobject *deque, PyObject *item, Py_ssize_t maxlen) in deque_append_internal() argument
284 if (NEEDS_TRIM(deque, maxlen)) { in deque_append_internal()
297 if (deque_append_internal(deque, item, deque->maxlen) < 0) in deque_append()
305 deque_appendleft_internal(dequeobject *deque, PyObject *item, Py_ssize_t maxlen) in deque_appendleft_internal() argument
321 if (NEEDS_TRIM(deque, deque->maxlen)) { in deque_appendleft_internal()
334 if (deque_appendleft_internal(deque, item, deque->maxlen) < 0) in deque_appendleft()
376 Py_ssize_t maxlen = deque->maxlen; in deque_extend() local
[all …]
/external/libnfnetlink/src/
Dlibnfnetlink.c875 int nfnl_addattr_l(struct nlmsghdr *n, int maxlen, int type, const void *data, in nfnl_addattr_l() argument
882 assert(maxlen > 0); in nfnl_addattr_l()
885 if ((NLMSG_ALIGN(n->nlmsg_len) + len) > maxlen) { in nfnl_addattr_l()
908 int nfnl_nfa_addattr_l(struct nfattr *nfa, int maxlen, int type, in nfnl_nfa_addattr_l() argument
915 assert(maxlen > 0); in nfnl_nfa_addattr_l()
918 if (NFA_ALIGN(nfa->nfa_len) + len > maxlen) { in nfnl_nfa_addattr_l()
940 int nfnl_addattr8(struct nlmsghdr *n, int maxlen, int type, u_int8_t data) in nfnl_addattr8() argument
943 assert(maxlen > 0); in nfnl_addattr8()
946 return nfnl_addattr_l(n, maxlen, type, &data, sizeof(data)); in nfnl_addattr8()
958 int nfnl_nfa_addattr16(struct nfattr *nfa, int maxlen, int type, in nfnl_nfa_addattr16() argument
[all …]
/external/python/cpython2/Lib/email/
Dheader.py420 maxlen = firstlen
425 if len(line) < maxlen:
427 maxlen = restlen
440 maxlen = restlen
463 elif curlen + partlen > maxlen:
469 if partlen > maxlen and ch != ' ':
470 subl = _split_ascii(part, maxlen, restlen,
477 maxlen = restlen
/external/python/cpython2/Modules/
D_collectionsmodule.c104 Py_ssize_t maxlen; member
118 if (d->maxlen != -1 && d->len > d->maxlen) { \
120 assert(rv != NULL && d->len <= d->maxlen); \
151 deque->maxlen = -1; in deque_new()
313 if (deque->maxlen == 0) in deque_extend()
365 if (deque->maxlen == 0) in deque_extendleft()
863 if (((dequeobject *)deque)->maxlen == -1) in deque_copy()
867 deque, ((dequeobject *)deque)->maxlen, NULL); in deque_copy()
894 if (deque->maxlen == -1) in deque_reduce()
897 result = Py_BuildValue("O(On)", Py_TYPE(deque), aslist, deque->maxlen); in deque_reduce()
[all …]

1234567891011