Lines Matching defs:buflen
129 char *buf, size_t buflen,
219 char *buf, size_t buflen, int *errp)
224 * also copied. They are copied into 'buf', whose length is 'buflen'.
250 if (buflen < sz)
254 buflen -= sz;
270 if (buflen < sz)
274 buflen -= sz;
280 if (buflen < sz)
291 buflen -= sz;
304 buf, buflen);
311 if (strlen(hp->h_name) + 1 <= buflen) {
323 buflen -= slen;
341 buf, buflen);
349 if (strlen(aliases[i]) + 1 <= buflen) {
361 buflen -= slen;
615 char *buffer, size_t buflen,
628 buflen, rp, errp));
630 TRACE(("gethostbyname_r(name=%s,buflen=%d)\n",
631 idn__debug_xstring(name, 60), buflen));
633 if (buflen <= sizeof(buf)) {
637 data = malloc(buflen);
638 datalen = buflen;
656 *rp = copy_decode_hostent_static(*rp, result, buffer, buflen,
673 char *buffer, size_t buflen,
686 buflen, rp, errp));
688 TRACE(("gethostbyname2_r(name=%s,buflen=%d)\n",
689 idn__debug_xstring(name, 60), buflen));
691 if (buflen <= sizeof(buf)) {
695 data = malloc(buflen);
696 datalen = buflen;
713 *rp = copy_decode_hostent_static(*rp, result, buffer, buflen,
731 char *buffer, size_t buflen,
742 buffer, buflen, rp, errp));
745 TRACE(("gethostbyaddr_r(buflen=%d)\n", buflen));
747 if (buflen <= sizeof(buf)) {
751 data = malloc(buflen);
752 datalen = buflen;
764 *rp = copy_decode_hostent_static(*rp, result, buffer, buflen,
783 char *buffer, int buflen, int *errp)
794 buflen, errp));
796 TRACE(("gethostbyname_r(name=%s,buflen=%d)\n",
797 idn__debug_xstring(name, 60), buflen));
799 if (buflen <= sizeof(buf)) {
803 data = malloc(buflen);
804 datalen = buflen;
821 hp = copy_decode_hostent_static(hp, result, buffer, buflen,
836 char *buffer, int buflen, int *errp)
845 buffer, buflen, errp));
848 TRACE(("gethostbyaddr_r(buflen=%d)\n", buflen));
850 if (buflen <= sizeof(buf)) {
854 data = malloc(buflen);
855 datalen = buflen;
866 hp = copy_decode_hostent_static(hp, result, buffer, buflen,