/external/ipsec-tools/src/racoon/ |
D | plog.c | 103 int reslen, len; local 106 reslen = sizeof(buf); 114 len = strftime(p, reslen, "%Y-%m-%d %T: ", tm); 116 reslen -= len; 120 len = snprintf(p, reslen, "%s: ", ptab[pri].name); 121 if (len >= 0 && len < reslen) { 123 reslen -= len; 129 snprintf(p, reslen, "%s: %s", func, fmt); 131 snprintf(p, reslen, "%s", fmt);
|
/external/dtc/tests/ |
D | integer-expressions.c | 61 int reslen; in main() local 84 res = fdt_getprop(fdt, 0, "expressions", &reslen); in main() 88 fdt_strerror(reslen)); in main() 90 if (reslen != (ARRAY_SIZE(expr_table) * sizeof(uint32_t))) in main() 92 reslen, ARRAY_SIZE(expr_table) * sizeof(uint32_t)); in main()
|
/external/icu/icu4c/source/common/ |
D | uloc_tag.cpp | 1885 int32_t reslen = 0; in _appendPrivateuseToLanguageTag() local 1939 if (reslen < capacity) { in _appendPrivateuseToLanguageTag() 1940 tmpAppend[reslen++] = SEP; in _appendPrivateuseToLanguageTag() 1944 if (reslen < capacity) { in _appendPrivateuseToLanguageTag() 1945 tmpAppend[reslen++] = *PRIVATEUSE_KEY; in _appendPrivateuseToLanguageTag() 1948 if (reslen < capacity) { in _appendPrivateuseToLanguageTag() 1949 tmpAppend[reslen++] = SEP; in _appendPrivateuseToLanguageTag() 1953 if (reslen < capacity) { in _appendPrivateuseToLanguageTag() 1954 … uprv_memcpy(tmpAppend + reslen, PRIVUSE_VARIANT_PREFIX, uprv_min(len, capacity - reslen)); in _appendPrivateuseToLanguageTag() 1956 reslen += len; in _appendPrivateuseToLanguageTag() [all …]
|
D | uloc.cpp | 738 int32_t reslen = sink.NumberOfBytesAppended(); in uloc_getKeywordValue() local 741 return reslen; in uloc_getKeywordValue() 747 u_terminateChars(buffer, bufferCapacity, reslen, status); in uloc_getKeywordValue() 750 return reslen; in uloc_getKeywordValue() 1882 int32_t reslen = sink.NumberOfBytesAppended(); in uloc_getName() local 1885 return reslen; in uloc_getName() 1891 u_terminateChars(name, nameCapacity, reslen, err); in uloc_getName() 1894 return reslen; in uloc_getName() 1918 int32_t reslen = sink.NumberOfBytesAppended(); in uloc_getBaseName() local 1921 return reslen; in uloc_getBaseName() [all …]
|
D | loclikely.cpp | 1222 int32_t reslen = sink.NumberOfBytesAppended(); in uloc_addLikelySubtags() local 1225 return sink.Overflowed() ? reslen : -1; in uloc_addLikelySubtags() 1232 maximizedLocaleID, maximizedLocaleIDCapacity, reslen, status); in uloc_addLikelySubtags() 1235 return reslen; in uloc_addLikelySubtags() 1275 int32_t reslen = sink.NumberOfBytesAppended(); in uloc_minimizeSubtags() local 1278 return sink.Overflowed() ? reslen : -1; in uloc_minimizeSubtags() 1285 minimizedLocaleID, minimizedLocaleIDCapacity, reslen, status); in uloc_minimizeSubtags() 1288 return reslen; in uloc_minimizeSubtags()
|
/external/cronet/third_party/icu/source/common/ |
D | uloc_tag.cpp | 1885 int32_t reslen = 0; in _appendPrivateuseToLanguageTag() local 1939 if (reslen < capacity) { in _appendPrivateuseToLanguageTag() 1940 tmpAppend[reslen++] = SEP; in _appendPrivateuseToLanguageTag() 1944 if (reslen < capacity) { in _appendPrivateuseToLanguageTag() 1945 tmpAppend[reslen++] = *PRIVATEUSE_KEY; in _appendPrivateuseToLanguageTag() 1948 if (reslen < capacity) { in _appendPrivateuseToLanguageTag() 1949 tmpAppend[reslen++] = SEP; in _appendPrivateuseToLanguageTag() 1953 if (reslen < capacity) { in _appendPrivateuseToLanguageTag() 1954 … uprv_memcpy(tmpAppend + reslen, PRIVUSE_VARIANT_PREFIX, uprv_min(len, capacity - reslen)); in _appendPrivateuseToLanguageTag() 1956 reslen += len; in _appendPrivateuseToLanguageTag() [all …]
|
D | uloc.cpp | 738 int32_t reslen = sink.NumberOfBytesAppended(); in uloc_getKeywordValue() local 741 return reslen; in uloc_getKeywordValue() 747 u_terminateChars(buffer, bufferCapacity, reslen, status); in uloc_getKeywordValue() 750 return reslen; in uloc_getKeywordValue() 1882 int32_t reslen = sink.NumberOfBytesAppended(); in uloc_getName() local 1885 return reslen; in uloc_getName() 1891 u_terminateChars(name, nameCapacity, reslen, err); in uloc_getName() 1894 return reslen; in uloc_getName() 1918 int32_t reslen = sink.NumberOfBytesAppended(); in uloc_getBaseName() local 1921 return reslen; in uloc_getBaseName() [all …]
|
D | loclikely.cpp | 1222 int32_t reslen = sink.NumberOfBytesAppended(); in uloc_addLikelySubtags() local 1225 return sink.Overflowed() ? reslen : -1; in uloc_addLikelySubtags() 1232 maximizedLocaleID, maximizedLocaleIDCapacity, reslen, status); in uloc_addLikelySubtags() 1235 return reslen; in uloc_addLikelySubtags() 1275 int32_t reslen = sink.NumberOfBytesAppended(); in uloc_minimizeSubtags() local 1278 return sink.Overflowed() ? reslen : -1; in uloc_minimizeSubtags() 1285 minimizedLocaleID, minimizedLocaleIDCapacity, reslen, status); in uloc_minimizeSubtags() 1288 return reslen; in uloc_minimizeSubtags()
|
/external/wpa_supplicant_8/src/utils/ |
D | common.c | 894 size_t reslen, alen, i, max_size; in int_array_concat() local 897 reslen = int_array_len(*res); in int_array_concat() 900 if (alen >= max_size - reslen) { in int_array_concat() 909 n = os_realloc_array(*res, reslen + alen + 1, sizeof(int)); in int_array_concat() 916 n[reslen + i] = a[i]; in int_array_concat() 961 size_t reslen, max_size; in int_array_add_unique() local 964 for (reslen = 0; *res && (*res)[reslen]; reslen++) { in int_array_add_unique() 965 if ((*res)[reslen] == a) in int_array_add_unique() 970 if (reslen > max_size - 2) { in int_array_add_unique() 979 n = os_realloc_array(*res, reslen + 2, sizeof(int)); in int_array_add_unique() [all …]
|
/external/python/cpython2/Modules/ |
D | stropmodule.c | 172 Py_ssize_t i, reslen = 0, slen = 0, sz = 100; in strop_joinfields() local 219 if (slen > PY_SSIZE_T_MAX - reslen || in strop_joinfields() 220 seplen > PY_SSIZE_T_MAX - reslen - seplen) { in strop_joinfields() 226 while (reslen + slen + seplen >= sz) { in strop_joinfields() 230 p = PyString_AsString(res) + reslen; in strop_joinfields() 235 reslen += seplen; in strop_joinfields() 239 reslen += slen; in strop_joinfields() 241 _PyString_Resize(&res, reslen); in strop_joinfields() 263 if (slen > PY_SSIZE_T_MAX - reslen || in strop_joinfields() 264 seplen > PY_SSIZE_T_MAX - reslen - seplen) { in strop_joinfields() [all …]
|
/external/cronet/third_party/icu/source/test/intltest/ |
D | loctest.cpp | 6223 int32_t reslen; in TestUndCAPI() local 6228 reslen = uloc_getName(empty, tmp, sizeof tmp, status); in TestUndCAPI() 6230 assertTrue("reslen >= 0", reslen >= 0); in TestUndCAPI() 6234 reslen = uloc_getName(root, tmp, sizeof tmp, status); in TestUndCAPI() 6236 assertTrue("reslen >= 0", reslen >= 0); in TestUndCAPI() 6240 reslen = uloc_getName(und, tmp, sizeof tmp, status); in TestUndCAPI() 6242 assertTrue("reslen >= 0", reslen >= 0); in TestUndCAPI() 6246 reslen = uloc_getName(empty_script, tmp, sizeof tmp, status); in TestUndCAPI() 6248 assertTrue("reslen >= 0", reslen >= 0); in TestUndCAPI() 6252 reslen = uloc_getName(empty_region, tmp, sizeof tmp, status); in TestUndCAPI() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | loctest.cpp | 6224 int32_t reslen; in TestUndCAPI() local 6229 reslen = uloc_getName(empty, tmp, sizeof tmp, status); in TestUndCAPI() 6231 assertTrue("reslen >= 0", reslen >= 0); in TestUndCAPI() 6235 reslen = uloc_getName(root, tmp, sizeof tmp, status); in TestUndCAPI() 6237 assertTrue("reslen >= 0", reslen >= 0); in TestUndCAPI() 6241 reslen = uloc_getName(und, tmp, sizeof tmp, status); in TestUndCAPI() 6243 assertTrue("reslen >= 0", reslen >= 0); in TestUndCAPI() 6247 reslen = uloc_getName(empty_script, tmp, sizeof tmp, status); in TestUndCAPI() 6249 assertTrue("reslen >= 0", reslen >= 0); in TestUndCAPI() 6253 reslen = uloc_getName(empty_region, tmp, sizeof tmp, status); in TestUndCAPI() [all …]
|
/external/kernel-headers/original/uapi/linux/ |
D | i2o-dev.h | 62 unsigned int __user *reslen; /* Buffer length in bytes */ member 71 unsigned int __user *reslen; /* Result List buffer length in bytes */ member 90 unsigned int __user *reslen; /* Length in bytes of reply buffer */ member
|
/external/python/cpython2/Python/ |
D | bltinmodule.c | 2888 Py_ssize_t reslen; in filterstring() local 2895 reslen = PyString_GET_SIZE(item); in filterstring() 2896 if (reslen == 1) { in filterstring() 2904 if (need > PY_SSIZE_T_MAX - reslen) { in filterstring() 2909 need += reslen; in filterstring() 2947 reslen in filterstring() 2949 j += reslen; in filterstring() 3016 Py_ssize_t reslen; in filterunicode() local 3024 reslen = PyUnicode_GET_SIZE(item); in filterunicode() 3025 if (reslen == 1) in filterunicode() [all …]
|
/external/lua/src/ |
D | loslib.c | 332 size_t reslen; in os_date() local 336 reslen = strftime(buff, SIZETIMEFMT, cc, stm); in os_date() 337 luaL_addsize(&b, reslen); in os_date()
|
/external/cronet/third_party/icu/source/i18n/ |
D | ucal.cpp | 603 int32_t reslen = 0; in ucal_getCanonicalTimeZoneID() local 611 reslen = canonical.extract(result, resultCapacity, *status); in ucal_getCanonicalTimeZoneID() 613 return reslen; in ucal_getCanonicalTimeZoneID()
|
/external/icu/icu4c/source/i18n/ |
D | ucal.cpp | 603 int32_t reslen = 0; in ucal_getCanonicalTimeZoneID() local 611 reslen = canonical.extract(result, resultCapacity, *status); in ucal_getCanonicalTimeZoneID() 613 return reslen; in ucal_getCanonicalTimeZoneID()
|
/external/python/cpython2/Objects/ |
D | stringobject.c | 4247 Py_ssize_t reslen, rescnt, fmtcnt; in PyString_Format() local 4261 reslen = rescnt = fmtcnt + 100; in PyString_Format() 4262 result = PyString_FromStringAndSize((char *)NULL, reslen); in PyString_Format() 4281 reslen += rescnt; in PyString_Format() 4282 if (_PyString_Resize(&result, reslen)) in PyString_Format() 4285 + reslen - rescnt; in PyString_Format() 4608 reslen -= rescnt; in PyString_Format() 4610 reslen += rescnt; in PyString_Format() 4611 if (reslen < 0) { in PyString_Format() 4616 if (_PyString_Resize(&result, reslen)) { in PyString_Format() [all …]
|
D | unicodeobject.c | 8357 Py_ssize_t fmtcnt, rescnt, reslen, arglen, argidx; in PyUnicode_Format() local 8373 reslen = rescnt = fmtcnt + 100; in PyUnicode_Format() 8374 result = _PyUnicode_New(reslen); in PyUnicode_Format() 8395 reslen += rescnt; in PyUnicode_Format() 8396 if (_PyUnicode_Resize(&result, reslen) < 0) in PyUnicode_Format() 8398 res = PyUnicode_AS_UNICODE(result) + reslen - rescnt; in PyUnicode_Format() 8726 reslen -= rescnt; in PyUnicode_Format() 8728 reslen += rescnt; in PyUnicode_Format() 8729 if (reslen < 0) { in PyUnicode_Format() 8734 if (_PyUnicode_Resize(&result, reslen) < 0) { in PyUnicode_Format() [all …]
|
/external/wpa_supplicant_8/src/radius/ |
D | radius.c | 1105 const u8 *secret, size_t secret_len, size_t *reslen) in decrypt_ms_key() argument 1174 if (reslen) in decrypt_ms_key() 1175 *reslen = plain[0]; in decrypt_ms_key()
|
/external/cronet/third_party/icu/source/test/cintltst/ |
D | cloctst.c | 2479 int32_t reslen = uloc_canonicalize(name, buffer, (int32_t)len, &status); in TestCanonicalizationBuffer() local 2487 if (reslen != len) { in TestCanonicalizationBuffer() 2489 name, reslen, len); in TestCanonicalizationBuffer() 2495 name, reslen, buffer, name); in TestCanonicalizationBuffer()
|
/external/icu/icu4c/source/test/cintltst/ |
D | cloctst.c | 2485 int32_t reslen = uloc_canonicalize(name, buffer, (int32_t)len, &status); in TestCanonicalizationBuffer() local 2493 if (reslen != len) { in TestCanonicalizationBuffer() 2495 name, reslen, len); in TestCanonicalizationBuffer() 2501 name, reslen, buffer, name); in TestCanonicalizationBuffer()
|