Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
Dns_addr.c59 …id cvtbase (long oldbase, int newbase, int input[], int inlen, unsigned char result[], int reslen);
221 int reslen in cvtbase() argument
228 while (e > 0 && reslen > 0) { in cvtbase()
237 result[--reslen] = (u_char)sum; /* accumulate remainder */ in cvtbase()
239 for (d=0; d < reslen; d++) in cvtbase()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/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 …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/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 …]
/device/linaro/bootloader/edk2/AppPkg/Applications/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()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dbltinmodule.c2852 Py_ssize_t reslen; in filterstring() local
2859 reslen = PyString_GET_SIZE(item); in filterstring()
2860 if (reslen == 1) { in filterstring()
2868 if (need > PY_SSIZE_T_MAX - reslen) { in filterstring()
2873 need += reslen; in filterstring()
2911 reslen in filterstring()
2913 j += reslen; in filterstring()
2978 Py_ssize_t reslen; in filterunicode() local
2986 reslen = PyUnicode_GET_SIZE(item); in filterunicode()
2987 if (reslen == 1) in filterunicode()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dbltinmodule.c2866 Py_ssize_t reslen; in filterstring() local
2873 reslen = PyString_GET_SIZE(item); in filterstring()
2874 if (reslen == 1) { in filterstring()
2882 if (need > PY_SSIZE_T_MAX - reslen) { in filterstring()
2887 need += reslen; in filterstring()
2925 reslen in filterstring()
2927 j += reslen; in filterstring()
2994 Py_ssize_t reslen; in filterunicode() local
3002 reslen = PyUnicode_GET_SIZE(item); in filterunicode()
3003 if (reslen == 1) in filterunicode()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dstringobject.c4235 Py_ssize_t reslen, rescnt, fmtcnt; in PyString_Format() local
4249 reslen = rescnt = fmtcnt + 100; in PyString_Format()
4250 result = PyString_FromStringAndSize((char *)NULL, reslen); in PyString_Format()
4269 reslen += rescnt; in PyString_Format()
4270 if (_PyString_Resize(&result, reslen)) in PyString_Format()
4273 + reslen - rescnt; in PyString_Format()
4596 reslen -= rescnt; in PyString_Format()
4598 reslen += rescnt; in PyString_Format()
4599 if (reslen < 0) { in PyString_Format()
4604 if (_PyString_Resize(&result, reslen)) { in PyString_Format()
[all …]
Dunicodeobject.c8348 Py_ssize_t fmtcnt, rescnt, reslen, arglen, argidx; in PyUnicode_Format() local
8364 reslen = rescnt = fmtcnt + 100; in PyUnicode_Format()
8365 result = _PyUnicode_New(reslen); in PyUnicode_Format()
8386 reslen += rescnt; in PyUnicode_Format()
8387 if (_PyUnicode_Resize(&result, reslen) < 0) in PyUnicode_Format()
8389 res = PyUnicode_AS_UNICODE(result) + reslen - rescnt; in PyUnicode_Format()
8714 reslen -= rescnt; in PyUnicode_Format()
8716 reslen += rescnt; in PyUnicode_Format()
8717 if (reslen < 0) { in PyUnicode_Format()
8722 if (_PyUnicode_Resize(&result, reslen) < 0) { in PyUnicode_Format()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dstringobject.c4215 Py_ssize_t reslen, rescnt, fmtcnt; in PyString_Format() local
4229 reslen = rescnt = fmtcnt + 100; in PyString_Format()
4230 result = PyString_FromStringAndSize((char *)NULL, reslen); in PyString_Format()
4249 reslen += rescnt; in PyString_Format()
4250 if (_PyString_Resize(&result, reslen)) in PyString_Format()
4253 + reslen - rescnt; in PyString_Format()
4569 reslen -= rescnt; in PyString_Format()
4571 reslen += rescnt; in PyString_Format()
4572 if (reslen < 0) { in PyString_Format()
4577 if (_PyString_Resize(&result, reslen)) { in PyString_Format()
[all …]
Dunicodeobject.c8244 Py_ssize_t fmtcnt, rescnt, reslen, arglen, argidx; in PyUnicode_Format() local
8260 reslen = rescnt = fmtcnt + 100; in PyUnicode_Format()
8261 result = _PyUnicode_New(reslen); in PyUnicode_Format()
8282 reslen += rescnt; in PyUnicode_Format()
8283 if (_PyUnicode_Resize(&result, reslen) < 0) in PyUnicode_Format()
8285 res = PyUnicode_AS_UNICODE(result) + reslen - rescnt; in PyUnicode_Format()
8606 reslen -= rescnt; in PyUnicode_Format()
8608 reslen += rescnt; in PyUnicode_Format()
8609 if (reslen < 0) { in PyUnicode_Format()
8614 if (_PyUnicode_Resize(&result, reslen) < 0) { in PyUnicode_Format()
[all …]