Lines Matching refs:length
24 /* Pass an infinite length. But note that *vasnprintf may fail if the buffer
26 Also note that glibc's iconv fails with E2BIG when we pass a length that
27 is so large that buf + length wraps around, i.e.
28 (uintptr_t) (buf + length) < (uintptr_t) buf. */
29 size_t length;
32 /* Set length = min (SIZE_MAX, INT_MAX, - (uintptr_t) buf - 1). */
33 length = (SIZE_MAX < INT_MAX ? SIZE_MAX : INT_MAX);
34 if (length > (~ (uintptr_t) buf) / sizeof (DCHAR_T))
35 length = (~ (uintptr_t) buf) / sizeof (DCHAR_T);
37 result = VASNPRINTF (buf, &length, format, args);
44 /* length is near SIZE_MAX. */
50 if (length > INT_MAX)
57 return length;