Lines Matching refs:info

94 	struct getnamaddr *info = rv;  in _hf_gethtbyname()  local
108 hp = _hf_gethtbyname2(name, AF_INET6, info); in _hf_gethtbyname()
112 hp = _hf_gethtbyname2(name, AF_INET, info); in _hf_gethtbyname()
116 hp = _hf_gethtbyname2(name, af, info); in _hf_gethtbyname()
119 if (*info->he == NETDB_INTERNAL && errno == ENOSPC) { in _hf_gethtbyname()
128 _hf_gethtbyname2(const char *name, int af, struct getnamaddr *info) in _hf_gethtbyname2() argument
143 *info->he = NETDB_INTERNAL; in _hf_gethtbyname2()
147 if ((ptr = buf = malloc(len = info->buflen)) == NULL) { in _hf_gethtbyname2()
149 *info->he = NETDB_INTERNAL; in _hf_gethtbyname2()
159 info->hp->h_addrtype = af; in _hf_gethtbyname2()
160 info->hp->h_length = 0; in _hf_gethtbyname2()
162 hp = netbsd_gethostent_r(hf, info->hp, info->buf, info->buflen, in _hf_gethtbyname2()
163 info->he); in _hf_gethtbyname2()
165 if (*info->he == NETDB_INTERNAL && errno == ENOSPC) { in _hf_gethtbyname2()
191 if ((size_t)(ptr - buf) >= info->buflen) in _hf_gethtbyname2()
204 *info->he = HOST_NOT_FOUND; in _hf_gethtbyname2()
209 hp = info->hp; in _hf_gethtbyname2()
210 ptr = info->buf; in _hf_gethtbyname2()
211 len = info->buflen; in _hf_gethtbyname2()
234 *info->he = NETDB_INTERNAL; in _hf_gethtbyname2()
246 struct getnamaddr *info = rv; in _hf_gethtbyaddr() local
252 info->hp->h_length = va_arg(ap, int); in _hf_gethtbyaddr()
253 info->hp->h_addrtype = va_arg(ap, int); in _hf_gethtbyaddr()
258 *info->he = NETDB_INTERNAL; in _hf_gethtbyaddr()
261 while ((hp = netbsd_gethostent_r(hf, info->hp, info->buf, info->buflen, in _hf_gethtbyaddr()
262 info->he)) != NULL) in _hf_gethtbyaddr()
271 *info->he = HOST_NOT_FOUND; in _hf_gethtbyaddr()