Home
last modified time | relevance | path

Searched refs:reslen (Results 1 – 13 of 13) sorted by relevance

/external/icu/icu4c/source/common/
Duloc_tag.c643 int32_t reslen = 0; in _appendLanguageToLanguageTag() local
661 if (reslen < capacity) { in _appendLanguageToLanguageTag()
662 uprv_memcpy(appendAt + reslen, LANG_UND, uprv_min(LANG_UND_LEN, capacity - reslen)); in _appendLanguageToLanguageTag()
664 reslen += LANG_UND_LEN; in _appendLanguageToLanguageTag()
671 if (reslen < capacity) { in _appendLanguageToLanguageTag()
672 uprv_memcpy(appendAt + reslen, LANG_UND, uprv_min(LANG_UND_LEN, capacity - reslen)); in _appendLanguageToLanguageTag()
674 reslen += LANG_UND_LEN; in _appendLanguageToLanguageTag()
684 if (reslen < capacity) { in _appendLanguageToLanguageTag()
685 uprv_memcpy(appendAt + reslen, buf, uprv_min(len, capacity - reslen)); in _appendLanguageToLanguageTag()
687 reslen += len; in _appendLanguageToLanguageTag()
[all …]
/external/ipsec-tools/src/racoon/
Dplog.c103 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/
Dinteger-expressions.c74 int reslen; in main() local
97 res = fdt_getprop(fdt, 0, "expressions", &reslen); in main()
101 fdt_strerror(reslen)); in main()
103 if (reslen != (ARRAY_SIZE(expr_table) * sizeof(uint32_t))) in main()
105 reslen, ARRAY_SIZE(expr_table) * sizeof(uint32_t)); in main()
/external/python/cpython2/Modules/
Dstropmodule.c172 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/wpa_supplicant_8/src/utils/
Dcommon.c878 int reslen, alen, i; in int_array_concat() local
881 reslen = int_array_len(*res); in int_array_concat()
884 n = os_realloc_array(*res, reslen + alen + 1, sizeof(int)); in int_array_concat()
891 n[reslen + i] = a[i]; in int_array_concat()
937 int reslen; in int_array_add_unique() local
940 for (reslen = 0; *res && (*res)[reslen]; reslen++) { in int_array_add_unique()
941 if ((*res)[reslen] == a) in int_array_add_unique()
945 n = os_realloc_array(*res, reslen + 2, sizeof(int)); in int_array_add_unique()
952 n[reslen] = a; in int_array_add_unique()
953 n[reslen + 1] = 0; in int_array_add_unique()
/external/kernel-headers/original/uapi/linux/
Di2o-dev.h61 unsigned int __user *reslen; /* Buffer length in bytes */ member
70 unsigned int __user *reslen; /* Result List buffer length in bytes */ member
89 unsigned int __user *reslen; /* Length in bytes of reply buffer */ member
/external/skia/third_party/lua/src/
Dloslib.c228 size_t reslen; in os_date() local
231 reslen = strftime(buff, sizeof(buff), cc, stm); in os_date()
232 luaL_addlstring(&b, buff, reslen); in os_date()
/external/syslinux/com32/lua/src/
Dloslib.c233 size_t reslen; in os_date() local
236 reslen = strftime(buff, sizeof(buff), cc, stm); in os_date()
237 luaL_addlstring(&b, buff, reslen); in os_date()
/external/python/cpython2/Python/
Dbltinmodule.c2877 Py_ssize_t reslen; in filterstring() local
2884 reslen = PyString_GET_SIZE(item); in filterstring()
2885 if (reslen == 1) { in filterstring()
2893 if (need > PY_SSIZE_T_MAX - reslen) { in filterstring()
2898 need += reslen; in filterstring()
2936 reslen in filterstring()
2938 j += reslen; in filterstring()
3005 Py_ssize_t reslen; in filterunicode() local
3013 reslen = PyUnicode_GET_SIZE(item); in filterunicode()
3014 if (reslen == 1) in filterunicode()
[all …]
/external/icu/icu4c/source/i18n/
Ducal.cpp579 int32_t reslen = 0; in ucal_getCanonicalTimeZoneID() local
587 reslen = canonical.extract(result, resultCapacity, *status); in ucal_getCanonicalTimeZoneID()
589 return reslen; in ucal_getCanonicalTimeZoneID()
/external/python/cpython2/Objects/
Dstringobject.c4250 Py_ssize_t reslen, rescnt, fmtcnt; in PyString_Format() local
4264 reslen = rescnt = fmtcnt + 100; in PyString_Format()
4265 result = PyString_FromStringAndSize((char *)NULL, reslen); in PyString_Format()
4284 reslen += rescnt; in PyString_Format()
4285 if (_PyString_Resize(&result, reslen)) in PyString_Format()
4288 + reslen - rescnt; in PyString_Format()
4611 reslen -= rescnt; in PyString_Format()
4613 reslen += rescnt; in PyString_Format()
4614 if (reslen < 0) { in PyString_Format()
4619 if (_PyString_Resize(&result, reslen)) { in PyString_Format()
[all …]
Dunicodeobject.c8361 Py_ssize_t fmtcnt, rescnt, reslen, arglen, argidx; in PyUnicode_Format() local
8377 reslen = rescnt = fmtcnt + 100; in PyUnicode_Format()
8378 result = _PyUnicode_New(reslen); in PyUnicode_Format()
8399 reslen += rescnt; in PyUnicode_Format()
8400 if (_PyUnicode_Resize(&result, reslen) < 0) in PyUnicode_Format()
8402 res = PyUnicode_AS_UNICODE(result) + reslen - rescnt; in PyUnicode_Format()
8730 reslen -= rescnt; in PyUnicode_Format()
8732 reslen += rescnt; in PyUnicode_Format()
8733 if (reslen < 0) { in PyUnicode_Format()
8738 if (_PyUnicode_Resize(&result, reslen) < 0) { in PyUnicode_Format()
[all …]
/external/wpa_supplicant_8/src/radius/
Dradius.c979 const u8 *secret, size_t secret_len, size_t *reslen) in decrypt_ms_key() argument
1049 if (reslen) in decrypt_ms_key()
1050 *reslen = plain[0]; in decrypt_ms_key()