Home
last modified time | relevance | path

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

12345678910>>...13

/third_party/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
288 memset (v, 0, maxlen); in mnote_olympus_entry_get_value()
[all …]
/third_party/libexif/libexif/canon/
Dmnote-canon-entry.c34 #define CF(format,target,v,maxlen) \ argument
37 snprintf (v, maxlen, \
46 #define CC(number,target,v,maxlen) \ argument
49 snprintf (v, maxlen, \
55 #define CC2(number,t1,t2,v,maxlen) \ argument
58 snprintf (v, maxlen, \
441 unsigned int t, ExifShort vs, char *val, unsigned int maxlen) in canon_search_table_value() argument
454 strncpy (val, _(table[j].name), maxlen); in canon_search_table_value()
457 snprintf (val, maxlen, "0x%04x", vs); in canon_search_table_value()
463 unsigned int t, ExifShort vs, char *val, unsigned int maxlen) in canon_search_table_bitfield() argument
[all …]
/third_party/node/deps/openssl/openssl/crypto/bio/
Dbio_print.c41 size_t *maxlen, size_t *retlen, int *truncated,
89 size_t *maxlen, in _dopr() argument
111 if (ch == '\0' || (buffer == NULL && currlen >= *maxlen)) in _dopr()
119 if (!doapr_outch(sbuffer, buffer, &currlen, maxlen, ch)) in _dopr()
234 if (!fmtint(sbuffer, buffer, &currlen, maxlen, value, 10, min, in _dopr()
262 if (!fmtint(sbuffer, buffer, &currlen, maxlen, value, in _dopr()
273 if (!fmtfp(sbuffer, buffer, &currlen, maxlen, fvalue, min, max, in _dopr()
285 if (!fmtfp(sbuffer, buffer, &currlen, maxlen, fvalue, min, max, in _dopr()
297 if (!fmtfp(sbuffer, buffer, &currlen, maxlen, fvalue, min, max, in _dopr()
312 if (!doapr_outch(sbuffer, buffer, &currlen, maxlen, in _dopr()
[all …]
/third_party/openssl/crypto/bio/
Dbio_print.c41 size_t *maxlen, size_t *retlen, int *truncated,
89 size_t *maxlen, in _dopr() argument
111 if (ch == '\0' || (buffer == NULL && currlen >= *maxlen)) in _dopr()
119 if (!doapr_outch(sbuffer, buffer, &currlen, maxlen, ch)) in _dopr()
234 if (!fmtint(sbuffer, buffer, &currlen, maxlen, value, 10, min, in _dopr()
262 if (!fmtint(sbuffer, buffer, &currlen, maxlen, value, in _dopr()
273 if (!fmtfp(sbuffer, buffer, &currlen, maxlen, fvalue, min, max, in _dopr()
285 if (!fmtfp(sbuffer, buffer, &currlen, maxlen, fvalue, min, max, in _dopr()
297 if (!fmtfp(sbuffer, buffer, &currlen, maxlen, fvalue, min, max, in _dopr()
312 if (!doapr_outch(sbuffer, buffer, &currlen, maxlen, in _dopr()
[all …]
/third_party/libexif/libexif/
Dexif-entry.c450 exif_entry_format_value(ExifEntry *e, char *val, size_t maxlen) in exif_entry_format_value() argument
463 if (!e->size || !maxlen) in exif_entry_format_value()
467 snprintf (val, maxlen, _("%i bytes undefined data"), e->size); in exif_entry_format_value()
472 snprintf (val, maxlen, "0x%02x", v_byte); in exif_entry_format_value()
476 snprintf (val+len, maxlen-len, ", 0x%02x", v_byte); in exif_entry_format_value()
478 if (len >= maxlen-1) break; in exif_entry_format_value()
483 snprintf (val, maxlen, "%u", v_short); in exif_entry_format_value()
488 snprintf (val+len, maxlen-len, ", %u", v_short); in exif_entry_format_value()
490 if (len >= maxlen-1) break; in exif_entry_format_value()
495 snprintf (val, maxlen, "%i", v_sshort); in exif_entry_format_value()
[all …]
Dexif-utils.c220 exif_convert_utf16_to_utf8 (char *out, const unsigned char *in, int maxlen) in exif_convert_utf16_to_utf8() argument
222 if (maxlen <= 0) { in exif_convert_utf16_to_utf8()
230 if (maxlen > 1) { in exif_convert_utf16_to_utf8()
232 maxlen--; in exif_convert_utf16_to_utf8()
237 if (maxlen > 2) { in exif_convert_utf16_to_utf8()
240 maxlen -= 2; in exif_convert_utf16_to_utf8()
245 if (maxlen > 3) { in exif_convert_utf16_to_utf8()
249 maxlen -= 3; in exif_convert_utf16_to_utf8()
/third_party/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
319 memset (val, 0, maxlen); in mnote_pentax_entry_get_value()
320 maxlen--; in mnote_pentax_entry_get_value()
343 CF (entry->format, EXIF_FORMAT_SHORT, val, maxlen); in mnote_pentax_entry_get_value()
[all …]
/third_party/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
203 memset (val, 0, maxlen); in mnote_fuji_entry_get_value()
204 maxlen--; in mnote_fuji_entry_get_value()
208 CF (entry->format, EXIF_FORMAT_UNDEFINED, val, maxlen); in mnote_fuji_entry_get_value()
209 CC (entry->components, 4, val, maxlen); in mnote_fuji_entry_get_value()
210 memcpy (val, entry->data, MIN(maxlen, entry->size)); in mnote_fuji_entry_get_value()
[all …]
/third_party/libexif/libexif/apple/
Dmnote-apple-entry.c34 mnote_apple_entry_get_value(MnoteAppleEntry *entry, char *v, unsigned int maxlen) { in mnote_apple_entry_get_value() argument
47 memset(v, 0, maxlen); in mnote_apple_entry_get_value()
48 maxlen--; in mnote_apple_entry_get_value()
59 snprintf(v, maxlen, "%d", vsl); in mnote_apple_entry_get_value()
65 strncpy (v, (char *) data, MIN (maxlen-1, size)); in mnote_apple_entry_get_value()
66 v[MIN (maxlen-1, size)] = 0; in mnote_apple_entry_get_value()
71 strncpy (v, (char *)data, MIN(maxlen, size)); in mnote_apple_entry_get_value()
79 if (len > maxlen) in mnote_apple_entry_get_value()
82 snprintf (v+len, maxlen-len, "%hu ", vs); in mnote_apple_entry_get_value()
94 if (len > maxlen) in mnote_apple_entry_get_value()
[all …]
/third_party/littlefs/scripts/
Dtailpipe.py33 def __init__(self, maxlen=None): argument
34 self.maxlen = maxlen
35 self.lines = co.deque(maxlen=maxlen)
39 if maxlen == 0:
56 def resize(self, maxlen): argument
57 self.maxlen = maxlen
58 if maxlen == 0:
59 maxlen = shutil.get_terminal_size((80, 5))[1]
60 if maxlen != self.lines.maxlen:
61 self.lines = co.deque(self.lines, maxlen=maxlen)
[all …]
Dwatch.py69 def __init__(self, maxlen=None): argument
70 self.maxlen = maxlen
71 self.lines = co.deque(maxlen=maxlen)
75 if maxlen == 0:
92 def resize(self, maxlen): argument
93 self.maxlen = maxlen
94 if maxlen == 0:
95 maxlen = shutil.get_terminal_size((80, 5))[1]
96 if maxlen != self.lines.maxlen:
97 self.lines = co.deque(self.lines, maxlen=maxlen)
[all …]
/third_party/optimized-routines/string/test/
Dstrnlen.c53 test (const struct fun *fun, int align, size_t maxlen, size_t len) in test() argument
58 size_t e = maxlen < len ? maxlen : len; in test()
75 size_t mte_len = maxlen < len + 1 ? maxlen : len + 1; in test()
77 r = fun->fun (s, maxlen); in test()
83 fun->name, s, maxlen, len, r, e); in test()
99 for (int maxlen = 0; maxlen < LEN; maxlen++) in main() local
100 test (funtab + i, a, maxlen, n); in main()
Dmemrchr.c51 size_t maxlen) in test() argument
55 char *f = seekpos < maxlen ? s + seekpos : NULL; in test()
71 s[((len ^ align) & 1) && seekpos < maxlen ? seekpos - 1 : len] = seekchar; in test()
73 s = tag_buffer (s, maxlen, fun->test_mte); in test()
74 p = fun->fun (s, seekchar, maxlen); in test()
75 untag_buffer (s, maxlen, fun->test_mte); in test()
81 seekchar, maxlen, p, f); in test()
Dstrncmp.c50 test (const struct fun *fun, int s1align, int s2align, int maxlen, int diffpos, in test() argument
76 size_t mte_len = maxlen < len + 1 ? maxlen : len + 1; in test()
79 r = fun->fun (s1, s2, maxlen); in test()
83 if (diffpos >= maxlen) in test()
92 fun->name, s1align, s2align, maxlen, len, diffpos, r); in test()
Dmemchr.c53 size_t maxlen) in test() argument
57 char *f = seekpos < maxlen ? s + seekpos : NULL; in test()
75 int mte_len = seekpos != -1 ? seekpos + 1 : maxlen; in test()
77 p = fun->fun (s, seekchar, maxlen); in test()
84 seekchar, maxlen, p, f); in test()
/third_party/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') {
/third_party/skia/third_party/externals/angle2/third_party/logdog/logdog/
Dstreamname.py24 def validate_stream_name(v, maxlen=None): argument
34 maxlen = maxlen or _MAX_STREAM_NAME_LENGTH
35 if len(v) > maxlen:
36 raise ValueError('Maximum length exceeded (%d > %d)' % (len(v), maxlen))
51 validate_stream_name(key, maxlen=_MAX_TAG_KEY_LENGTH)
52 validate_stream_name(value, maxlen=_MAX_TAG_VALUE_LENGTH)
/third_party/python/Lib/test/
Dtest_deque.py54 d = deque(it, maxlen=3)
67 d = deque(range(200), maxlen=10)
70 d = deque(range(10), maxlen=None)
75 deque(it, maxlen=0)
79 d = deque(maxlen=0)
84 d = deque(maxlen=0)
89 self.assertEqual(deque().maxlen, None)
90 self.assertEqual(deque('abc').maxlen, None)
91 self.assertEqual(deque('abc', maxlen=4).maxlen, 4)
92 self.assertEqual(deque('abc', maxlen=2).maxlen, 2)
[all …]
/third_party/libcoap/src/
Dcoap_option.c292 coap_opt_setheader(coap_opt_t *opt, size_t maxlen, in coap_opt_setheader() argument
298 if (maxlen == 0) /* need at least one byte */ in coap_opt_setheader()
304 if (maxlen < 2) { in coap_opt_setheader()
313 if (maxlen < 3) { in coap_opt_setheader()
327 if (maxlen < skip + 2) { in coap_opt_setheader()
336 if (maxlen < skip + 3) { in coap_opt_setheader()
372 coap_opt_encode(coap_opt_t *opt, size_t maxlen, uint16_t delta, in coap_opt_encode() argument
376 l = coap_opt_setheader(opt, maxlen, delta, length); in coap_opt_encode()
377 assert(l <= maxlen); in coap_opt_encode()
384 maxlen -= l; in coap_opt_encode()
[all …]
/third_party/node/deps/openssl/openssl/apps/lib/
Dcolumns.c17 int len, maxlen = 0; in calculate_columns() local
21 if ((len = strlen(f->name)) > maxlen) in calculate_columns()
22 maxlen = len; in calculate_columns()
24 dc->width = maxlen + 2; in calculate_columns()
/third_party/openssl/apps/lib/
Dcolumns.c17 int len, maxlen = 0; in calculate_columns() local
21 if ((len = strlen(f->name)) > maxlen) in calculate_columns()
22 maxlen = len; in calculate_columns()
24 dc->width = maxlen + 2; in calculate_columns()
/third_party/python/Modules/
D_collectionsmodule.c94 Py_ssize_t maxlen; /* maxlen is -1 for unbounded deques */ member
182 deque->maxlen = -1; in deque_new()
275 #define NEEDS_TRIM(deque, maxlen) ((size_t)(maxlen) < (size_t)(Py_SIZE(deque))) argument
278 deque_append_internal(dequeobject *deque, PyObject *item, Py_ssize_t maxlen) in deque_append_internal() argument
294 if (NEEDS_TRIM(deque, maxlen)) { in deque_append_internal()
307 if (deque_append_internal(deque, item, deque->maxlen) < 0) in deque_append()
315 deque_appendleft_internal(dequeobject *deque, PyObject *item, Py_ssize_t maxlen) in deque_appendleft_internal() argument
331 if (NEEDS_TRIM(deque, deque->maxlen)) { in deque_appendleft_internal()
344 if (deque_appendleft_internal(deque, item, deque->maxlen) < 0) in deque_appendleft()
386 Py_ssize_t maxlen = deque->maxlen; in deque_extend() local
[all …]
/third_party/python/Tools/scripts/
Dbyteyears.py38 maxlen = 1
40 maxlen = max(maxlen, len(filename))
55 print(filename.ljust(maxlen), end=' ')
/third_party/node/deps/openssl/openssl/crypto/
Do_str.c35 size_t maxlen; in CRYPTO_strndup() local
41 maxlen = OPENSSL_strnlen(str, s); in CRYPTO_strndup()
43 ret = CRYPTO_malloc(maxlen + 1, file, line); in CRYPTO_strndup()
45 memcpy(ret, str, maxlen); in CRYPTO_strndup()
46 ret[maxlen] = CH_ZERO; in CRYPTO_strndup()
66 size_t OPENSSL_strnlen(const char *str, size_t maxlen) in OPENSSL_strnlen() argument
70 for (p = str; maxlen-- != 0 && *p != CH_ZERO; ++p) ; in OPENSSL_strnlen()
/third_party/openssl/crypto/
Do_str.c35 size_t maxlen; in CRYPTO_strndup() local
41 maxlen = OPENSSL_strnlen(str, s); in CRYPTO_strndup()
43 ret = CRYPTO_malloc(maxlen + 1, file, line); in CRYPTO_strndup()
45 memcpy(ret, str, maxlen); in CRYPTO_strndup()
46 ret[maxlen] = CH_ZERO; in CRYPTO_strndup()
66 size_t OPENSSL_strnlen(const char *str, size_t maxlen) in OPENSSL_strnlen() argument
70 for (p = str; maxlen-- != 0 && *p != CH_ZERO; ++p) ; in OPENSSL_strnlen()

12345678910>>...13