Lines Matching refs:info

107 	struct getnamaddr *info = rv;  in _hf_gethtbyname()  local
121 hp = _hf_gethtbyname2(name, AF_INET6, info); in _hf_gethtbyname()
125 hp = _hf_gethtbyname2(name, AF_INET, info); in _hf_gethtbyname()
129 hp = _hf_gethtbyname2(name, af, info); in _hf_gethtbyname()
132 if (*info->he == NETDB_INTERNAL && errno == ENOSPC) { in _hf_gethtbyname()
135 *info->he = HOST_NOT_FOUND; in _hf_gethtbyname()
142 _hf_gethtbyname2(const char *name, int af, struct getnamaddr *info) in _hf_gethtbyname2() argument
157 *info->he = NETDB_INTERNAL; in _hf_gethtbyname2()
161 if ((ptr = buf = malloc(len = info->buflen)) == NULL) { in _hf_gethtbyname2()
162 *info->he = NETDB_INTERNAL; in _hf_gethtbyname2()
172 info->hp->h_addrtype = af; in _hf_gethtbyname2()
173 info->hp->h_length = 0; in _hf_gethtbyname2()
175 hp = netbsd_gethostent_r(hf, info->hp, info->buf, info->buflen, in _hf_gethtbyname2()
176 info->he); in _hf_gethtbyname2()
178 if (*info->he == NETDB_INTERNAL && errno == ENOSPC) { in _hf_gethtbyname2()
204 if ((size_t)(ptr - buf) >= info->buflen) in _hf_gethtbyname2()
217 *info->he = HOST_NOT_FOUND; in _hf_gethtbyname2()
222 hp = info->hp; in _hf_gethtbyname2()
223 ptr = info->buf; in _hf_gethtbyname2()
224 len = info->buflen; in _hf_gethtbyname2()
246 *info->he = NETDB_INTERNAL; in _hf_gethtbyname2()
258 struct getnamaddr *info = rv; in _hf_gethtbyaddr() local
264 info->hp->h_length = va_arg(ap, int); in _hf_gethtbyaddr()
265 info->hp->h_addrtype = va_arg(ap, int); in _hf_gethtbyaddr()
270 *info->he = NETDB_INTERNAL; in _hf_gethtbyaddr()
273 while ((hp = netbsd_gethostent_r(hf, info->hp, info->buf, info->buflen, in _hf_gethtbyaddr()
274 info->he)) != NULL) in _hf_gethtbyaddr()
281 *info->he = HOST_NOT_FOUND; in _hf_gethtbyaddr()