Home
last modified time | relevance | path

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

/bionic/libc/dns/nameser/
Dns_print.c59 char **buf, size_t *buflen);
62 char **buf, size_t *buflen);
63 static void addlen(size_t len, char **buf, size_t *buflen);
65 char **buf, size_t *buflen);
67 char **buf, size_t *buflen);
90 char *buf, size_t buflen) in ns_sprintrr() argument
97 name_ctx, origin, buf, buflen); in ns_sprintrr()
112 char *buf, size_t buflen) in ns_sprintrrf() argument
126 T(addstr("\t\t\t", (size_t)3, &buf, &buflen)); in ns_sprintrrf()
132 T(addstr("@\t\t\t", (size_t)4, &buf, &buflen)); in ns_sprintrrf()
[all …]
Dns_ttl.c41 static int fmt1(int t, char s, char **buf, size_t *buflen);
150 fmt1(int t, char s, char **buf, size_t *buflen) { in fmt1() argument
155 if ((int)len < 0 || len + 1 > *buflen) in fmt1()
159 *buflen -= len; in fmt1()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dgetdelim.c46 getdelim(char **__restrict buf, size_t *__restrict buflen, in getdelim() argument
55 if (buf == NULL || buflen == NULL) { in getdelim()
62 *buflen = 0; in getdelim()
88 if (newlen > *buflen) { in getdelim()
106 newb = recallocarray(*buf, *buflen, newlen, 1); in getdelim()
110 *buflen = newlen; in getdelim()
/bionic/libc/dns/resolv/
Dres_mkquery.c124 int buflen) /* size of buffer */ in res_nmkquery() argument
141 if ((buf == NULL) || (buflen < HFIXEDSZ)) in res_nmkquery()
151 ep = buf + buflen; in res_nmkquery()
234 int buflen, /* size of buffer */ in res_nopt() argument
248 ep = buf + buflen; in res_nopt()
277 if (minlen > buflen) { in res_nopt()
280 padlen = MIN(padlen, buflen - minlen); in res_nopt()
Dres_send.c352 const u_char *buf, int buflen, u_char *ans, int anssiz) in res_nsend() argument
363 (stdout, ";; res_send()\n"), buf, buflen); in res_nsend()
364 v_circuit = (statp->options & RES_USEVC) || buflen > PACKETSZ; in res_nsend()
370 statp->netid, buf, buflen, in res_nsend()
384 _resolv_cache_query_failed(statp->netid, buf, buflen); in res_nsend()
507 act = (*statp->qhook)(&nsap, &buf, &buflen, in res_nsend()
518 _resolv_cache_add(statp->netid, buf, buflen, in res_nsend()
546 n = send_vc(statp, &params, buf, buflen, ans, anssiz, &terrno, in res_nsend()
577 n = send_dg(statp, &params, buf, buflen, ans, anssiz, &terrno, in res_nsend()
616 _resolv_cache_add(statp->netid, buf, buflen, in res_nsend()
[all …]
Dres_data.cpp104 int datalen, const u_char* newrr_in, u_char* buf, int buflen) { in res_mkquery() argument
106 return res_nmkquery(gsa.get(), op, dname, klass, type, data, datalen, newrr_in, buf, buflen); in res_mkquery()
129 int res_send(const u_char* buf, int buflen, u_char* ans, int anssiz) { in res_send() argument
131 return res_nsend(gsa.get(), buf, buflen, ans, anssiz); in res_send()
Dres_debug.c172 int buflen = 2048; in do_section() local
184 buf = malloc((size_t)buflen); in do_section()
264 buf, (u_int)buflen); in do_section()
269 if (buflen < 131072) in do_section()
270 buf = malloc((size_t)(buflen += 1024)); in do_section()
/bionic/libc/dns/net/
Dgethnamaddr.c217 res_state res, struct hostent *hent, char *buf, size_t buflen, int *he) in getanswer() argument
262 ep = buf + buflen; in getanswer()
526 gethostbyname_r(const char *name, struct hostent *hp, char *buf, size_t buflen, in gethostbyname_r() argument
539 *result = gethostbyname_internal(name, AF_INET6, res, hp, buf, buflen, errorp, in gethostbyname_r()
546 *result = gethostbyname_internal(name, AF_INET, res, hp, buf, buflen, errorp, in gethostbyname_r()
554 size_t buflen, struct hostent **result, int *errorp) in gethostbyname2_r() argument
562 *result = gethostbyname_internal(name, af, res, hp, buf, buflen, errorp, in gethostbyname2_r()
675 size_t buflen, int *he) in gethostbyname_internal_real() argument
702 if (buflen < size) in gethostbyname_internal_real()
756 info.buflen = buflen; in gethostbyname_internal_real()
[all …]
Dsethostent.c158 if ((ptr = buf = malloc(len = info->buflen)) == NULL) { in _hf_gethtbyname2()
172 hp = netbsd_gethostent_r(hf, info->hp, info->buf, info->buflen, in _hf_gethtbyname2()
201 if ((size_t)(ptr - buf) >= info->buflen) in _hf_gethtbyname2()
221 len = info->buflen; in _hf_gethtbyname2()
270 while ((hp = netbsd_gethostent_r(hf, info->hp, info->buf, info->buflen, in _hf_gethtbyaddr()
/bionic/tests/
Dstring_posix_strerror_r_wrapper.cpp27 int posix_strerror_r(int errnum, char* buf, size_t buflen) { in posix_strerror_r() argument
28 return strerror_r(errnum, buf, buflen); in posix_strerror_r()
Dstring_posix_strerror_r_test.cpp23 int posix_strerror_r(int errnum, char* buf, size_t buflen);
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregerror.c71 static const char *regatoi(const regex_t *preg, char *localbufm, size_t buflen); in __weak_alias()
173 regatoi(const regex_t *preg, char *localbuf, size_t buflen) in regatoi() argument
183 snprintf(localbuf, buflen, "%d", r->code); in regatoi()
/bionic/libc/bionic/
Dgrp_pwd.cpp584 size_t buflen, struct passwd** result) { in getpasswd_r() argument
589 if (p + sizeof(passwd_state_t) > buf + buflen) { in getpasswd_r()
744 size_t buflen, struct group** result) { in getgroup_r() argument
749 if (p + sizeof(group_state_t) > buf + buflen) { in getgroup_r()
763 int getgrgid_r(gid_t gid, struct group* grp, char* buf, size_t buflen, struct group** result) { in getgrgid_r() argument
764 return getgroup_r(false, nullptr, gid, grp, buf, buflen, result); in getgrgid_r()
767 int getgrnam_r(const char* name, struct group* grp, char* buf, size_t buflen, in getgrnam_r() argument
769 return getgroup_r(true, name, 0, grp, buf, buflen, result); in getgrnam_r()
Dfortify.cpp225 ssize_t __sendto_chk(int socket, const void* buf, size_t len, size_t buflen, in __sendto_chk() argument
228 __check_buffer_access("sendto", "read from", len, buflen); in __sendto_chk()
/bionic/libc/dns/include/
Dhostent.h53 size_t buflen; member
/bionic/libc/kernel/uapi/linux/
Daudit.h381 __u32 buflen; member
Dcdrom.h153 unsigned int buflen; member