Home
last modified time | relevance | path

Searched refs:buflen (Results 1 – 25 of 44) sorted by relevance

12

/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
Dns_print.c79 char **buf, size_t *buflen);
82 char **buf, size_t *buflen);
83 static void addlen(size_t len, char **buf, size_t *buflen);
85 char **buf, size_t *buflen);
87 char **buf, size_t *buflen);
109 char *buf, size_t buflen) in ns_sprintrr() argument
116 name_ctx, origin, buf, buflen); in ns_sprintrr()
133 char *buf, size_t buflen) in ns_sprintrrf() argument
151 T(addstr("\t\t\t", 3, &buf, &buflen)); in ns_sprintrrf()
155 T(addstr("@\t\t\t", 4, &buf, &buflen)); in ns_sprintrrf()
[all …]
Dres_mkquery.c112 int buflen /* size of buffer */ in res_mkquery() argument
132 if ((buf == NULL) || (buflen < HFIXEDSZ)) in res_mkquery()
141 buflen -= HFIXEDSZ; in res_mkquery()
152 if ((buflen -= QFIXEDSZ) < 0) in res_mkquery()
154 if ((n = dn_comp(dname, cp, buflen, dnptrs, lastdnptr)) < 0) in res_mkquery()
157 buflen -= n; in res_mkquery()
168 buflen -= RRFIXEDSZ; in res_mkquery()
169 n = dn_comp((char *)data, cp, buflen, dnptrs, lastdnptr); in res_mkquery()
173 buflen -= n; in res_mkquery()
189 if (buflen < 1 + RRFIXEDSZ + datalen) in res_mkquery()
Dgethostbydns.c205 int type, class, buflen, ancount, qdcount; in gethostanswer() local
234 buflen = sizeof hostbuf; in gethostanswer()
241 n = dn_expand(answer->buf, eom, cp, bp, buflen); in gethostanswer()
259 buflen -= n; in gethostanswer()
273 n = dn_expand(answer->buf, eom, cp, bp, buflen); in gethostanswer()
317 buflen -= n; in gethostanswer()
320 if (n > buflen || n >= MAXHOSTNAMELEN) { in gethostanswer()
327 buflen -= n; in gethostanswer()
343 if (n > buflen || n >= MAXHOSTNAMELEN) { in gethostanswer()
350 buflen -= n; in gethostanswer()
[all …]
Dres_mkupdate.c95 #define ShrinkBuffer(x) if ((buflen -= x) < 0) return (-2);
110 res_mkupdate(ns_updrec *rrecp_in, u_char *buf, int buflen) { in res_mkupdate() argument
131 if ((buf == NULL) || (buflen < HFIXEDSZ)) in res_mkupdate()
139 buflen -= HFIXEDSZ; in res_mkupdate()
212 if ((n = dn_comp(rrecp->r_dname, cp, buflen, dnptrs, in res_mkupdate()
257 n = dn_comp(buf2, cp, buflen, dnptrs, lastdnptr); in res_mkupdate()
270 n = dn_comp(buf2, cp, buflen, in res_mkupdate()
311 n = dn_comp(buf2, cp, buflen, dnptrs, lastdnptr); in res_mkupdate()
327 n = dn_comp(buf2, cp, buflen, dnptrs, in res_mkupdate()
Dns_ttl.c71 static int fmt1(int t, char s, char **buf, size_t *buflen);
176 fmt1(int t, char s, char **buf, size_t *buflen) { in fmt1() argument
181 if (len + 1 > *buflen) in fmt1()
185 *buflen -= len; in fmt1()
Dres_send.c333 int buflen, in res_send() argument
353 (stdout, ";; res_send()\n"), buf, buflen); in res_send()
354 v_circuit = (_res.options & RES_USEVC) || buflen > PACKETSZ; in res_send()
378 act = (*Qhook)(&nsap, &buf, &buflen, in res_send()
444 putshort((u_short)buflen, (u_char*)&len); in res_send()
448 iov[1].iov_len = buflen; in res_send()
449 if (writev(s, iov, 2) != (INT16SZ + buflen)) { in res_send()
617 if (send(s, (char*)buf, buflen, 0) != buflen) { in res_send()
652 if (sendto(s, (char*)buf, buflen, 0, in res_send()
655 != buflen) { in res_send()
[all …]
Dgetnetbydns.c125 int type, class, buflen, ancount, qdcount, haveanswer, i, nchar; in getnetanswer() local
151 buflen = sizeof(netbuf); in getnetanswer()
167 n = dn_expand(answer->buf, eom, cp, bp, buflen); in getnetanswer()
179 n = dn_expand(answer->buf, eom, cp, bp, buflen); in getnetanswer()
/device/linaro/bootloader/edk2/StdLib/LibC/String/
DMisc.c41 strerror_r(int errnum, char *buf, size_t buflen) in strerror_r() argument
53 for( i = buflen; i > 0; --i) { in strerror_r()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dssl.py226 def recv(self, buflen=1024, flags=0): argument
232 return self.read(buflen)
234 return self._sock.recv(buflen, flags)
253 def recvfrom(self, buflen=1024, flags=0): argument
258 return self._sock.recvfrom(buflen, flags)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Ducnhash.h22 int (*getname)(PyObject *self, Py_UCS4 code, char* buffer, int buflen);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Ducnhash.h22 int (*getname)(PyObject *self, Py_UCS4 code, char* buffer, int buflen);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dimport.c741 make_compiled_pathname(char *pathname, char *buf, size_t buflen) in make_compiled_pathname() argument
744 if (len+2 > buflen) in make_compiled_pathname()
1297 size_t buflen, FILE **p_fp, PyObject **p_loader) in find_module() argument
1368 if (PyString_Size(path) + 1 + strlen(name) >= (size_t)buflen) { in find_module()
1399 fp = PyWin_FindRegisteredModule(name, &fdp, buf, buflen); in find_module()
1449 if (len + 2 + namelen + MAXSUFFIXSIZE >= buflen) { in find_module()
1607 size_t buflen, FILE **p_fp, PyObject **p_loader) in _PyImport_FindModule() argument
1610 buf, buflen, p_fp, p_loader); in _PyImport_FindModule()
2197 char *buf, Py_ssize_t buflen, int recursive);
2207 Py_ssize_t buflen = 0; in import_module_level() local
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dimport.c709 make_compiled_pathname(char *pathname, char *buf, size_t buflen) in make_compiled_pathname() argument
712 if (len+2 > buflen) in make_compiled_pathname()
1202 size_t buflen, FILE **p_fp, PyObject **p_loader) in find_module() argument
1270 if (PyString_Size(path) + 1 + strlen(name) >= (size_t)buflen) { in find_module()
1298 fp = PyWin_FindRegisteredModule(name, &fdp, buf, buflen); in find_module()
1347 if (len + 2 + namelen + MAXSUFFIXSIZE >= buflen) { in find_module()
1522 size_t buflen, FILE **p_fp, PyObject **p_loader) in find_module()
1525 buf, buflen, p_fp, p_loader); in find_module()
2112 char *buf, Py_ssize_t buflen, int recursive); in find_module()
2122 Py_ssize_t buflen = 0; in find_module() local
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Python/
Dimport.c709 make_compiled_pathname(char *pathname, char *buf, size_t buflen) in make_compiled_pathname() argument
712 if (len+2 > buflen) in make_compiled_pathname()
1202 size_t buflen, FILE **p_fp, PyObject **p_loader) in find_module() argument
1270 if (PyString_Size(path) + 1 + strlen(name) >= (size_t)buflen) { in find_module()
1298 fp = PyWin_FindRegisteredModule(name, &fdp, buf, buflen); in find_module()
1347 if (len + 2 + namelen + MAXSUFFIXSIZE >= buflen) { in find_module()
1522 size_t buflen, FILE **p_fp, PyObject **p_loader) in find_module()
1525 buf, buflen, p_fp, p_loader); in find_module()
2112 char *buf, Py_ssize_t buflen, int recursive); in find_module()
2122 Py_ssize_t buflen = 0; in find_module() local
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dtimemodule.c398 size_t fmtlen, buflen; in time_strftime() local
508 buflen = strftime(outbuf, i, fmt, &buf); in time_strftime()
509 if (buflen > 0 || i >= 256 * fmtlen) { in time_strftime()
516 ret = PyString_FromStringAndSize(outbuf, buflen); in time_strftime()
523 if (buflen == 0 && errno == EINVAL) { in time_strftime()
Dunicodedata.c890 _getucname(PyObject *self, Py_UCS4 code, char* buffer, int buflen) in _getucname() argument
915 if (buflen < 27) in _getucname()
931 if (buflen < 28) in _getucname()
956 if (i > buflen) in _getucname()
965 if (i >= buflen) in _getucname()
969 if (i >= buflen) in _getucname()
Dsocketmodule.c1886 int buflen; in sock_setsockopt() local
1892 buflen = sizeof flag; in sock_setsockopt()
1897 &level, &optname, &buf, &buflen)) in sock_setsockopt()
1900 res = setsockopt(s->sock_fd, level, optname, (void *)buf, buflen); in sock_setsockopt()
1926 socklen_t buflen = 0; local
1935 &level, &optname, &buflen))
1938 if (buflen == 0) {
1950 if (buflen > 1024) {
1952 if (buflen <= 0 || buflen > 1024) {
1958 buf = PyString_FromStringAndSize((char *)NULL, buflen);
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dtimemodule.c398 size_t fmtlen, buflen; in time_strftime() local
508 buflen = strftime(outbuf, i, fmt, &buf); in time_strftime()
509 if (buflen > 0 || i >= 256 * fmtlen) { in time_strftime()
516 ret = PyString_FromStringAndSize(outbuf, buflen); in time_strftime()
523 if (buflen == 0 && errno == EINVAL) { in time_strftime()
Dunicodedata.c883 _getucname(PyObject *self, Py_UCS4 code, char* buffer, int buflen) in _getucname() argument
908 if (buflen < 27) in _getucname()
924 if (buflen < 28) in _getucname()
949 if (i > buflen) in _getucname()
958 if (i >= buflen) in _getucname()
962 if (i >= buflen) in _getucname()
Dsocketmodule.c1827 int buflen; in sock_setsockopt() local
1833 buflen = sizeof flag; in sock_setsockopt()
1838 &level, &optname, &buf, &buflen)) in sock_setsockopt()
1841 res = setsockopt(s->sock_fd, level, optname, (void *)buf, buflen); in sock_setsockopt()
1867 socklen_t buflen = 0; local
1876 &level, &optname, &buflen))
1879 if (buflen == 0) {
1891 if (buflen > 1024) {
1893 if (buflen <= 0 || buflen > 1024) {
1899 buf = PyString_FromStringAndSize((char *)NULL, buflen);
[all …]
D_ssl.c536 int buflen; in _create_tuple_for_attribute() local
542 buflen = OBJ_obj2txt(namebuf, sizeof(namebuf), name, 0); in _create_tuple_for_attribute()
543 if (buflen < 0) { in _create_tuple_for_attribute()
547 name_obj = PyString_FromStringAndSize(namebuf, buflen); in _create_tuple_for_attribute()
551 buflen = ASN1_STRING_to_UTF8(&valuebuf, value); in _create_tuple_for_attribute()
552 if (buflen < 0) { in _create_tuple_for_attribute()
558 buflen, "strict"); in _create_tuple_for_attribute()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_sqlite/
Dstatement.c108 Py_ssize_t buflen; in pysqlite_statement_bind_parameter() local
179 if (PyObject_AsCharBuffer(parameter, &buffer, &buflen) == 0) { in pysqlite_statement_bind_parameter()
180 rc = sqlite3_bind_blob(self->st, pos, buffer, buflen, SQLITE_TRANSIENT); in pysqlite_statement_bind_parameter()
Dconnection.c545 Py_ssize_t buflen; in _pysqlite_set_result() local
558 if (PyObject_AsCharBuffer(py_val, &buffer, &buflen) != 0) { in _pysqlite_set_result()
561 sqlite3_result_blob(context, buffer, buflen, SQLITE_TRANSIENT); in _pysqlite_set_result()
584 Py_ssize_t buflen; in _pysqlite_build_py_params() local
613 buflen = sqlite3_value_bytes(cur_value); in _pysqlite_build_py_params()
614 cur_py_value = PyBuffer_New(buflen); in _pysqlite_build_py_params()
618 if (PyObject_AsWriteBuffer(cur_py_value, &raw_buffer, &buflen)) { in _pysqlite_build_py_params()
623 memcpy(raw_buffer, sqlite3_value_blob(cur_value), buflen); in _pysqlite_build_py_params()
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/FdtLib/
Dfdt_ro.c358 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen) in fdt_get_path() argument
366 if (buflen < 2) in fdt_get_path()
383 if ((p + namelen + 1) <= buflen) { in fdt_get_path()
/device/google/marlin/dataservices/rmnetctl/src/
Dlibrmnetctl.c830 uint32_t buflen) in rmnet_get_vnd_name() argument
836 if ((!hndl) || (!error_code) || (!buf) || (0 == buflen)) { in rmnet_get_vnd_name()
861 buflen); in rmnet_get_vnd_name()
862 if (str_len >= buflen) { in rmnet_get_vnd_name()

12