Lines Matching refs:info
679 struct getnamaddr info; in gethostbyname_internal_real() local
755 info.hp = hp; in gethostbyname_internal_real()
756 info.buf = buf; in gethostbyname_internal_real()
757 info.buflen = buflen; in gethostbyname_internal_real()
758 info.he = he; in gethostbyname_internal_real()
759 if (nsdispatch(&info, dtab, NSDB_HOSTS, "gethostbyname", in gethostbyname_internal_real()
839 struct getnamaddr info; in android_gethostbyaddrfornetcontext_real() local
881 info.hp = hp; in android_gethostbyaddrfornetcontext_real()
882 info.buf = buf; in android_gethostbyaddrfornetcontext_real()
883 info.buflen = buflen; in android_gethostbyaddrfornetcontext_real()
884 info.he = he; in android_gethostbyaddrfornetcontext_real()
886 if (nsdispatch(&info, dtab, NSDB_HOSTS, "gethostbyaddr", in android_gethostbyaddrfornetcontext_real()
1144 struct getnamaddr *info = rv; in _dns_gethtbyname() local
1150 info->hp->h_addrtype = va_arg(ap, int); in _dns_gethtbyname()
1152 switch (info->hp->h_addrtype) { in _dns_gethtbyname()
1154 info->hp->h_length = NS_INADDRSZ; in _dns_gethtbyname()
1158 info->hp->h_length = NS_IN6ADDRSZ; in _dns_gethtbyname()
1166 *info->he = NETDB_INTERNAL; in _dns_gethtbyname()
1181 hp = getanswer(buf, n, name, type, res, info->hp, info->buf, in _dns_gethtbyname()
1182 info->buflen, info->he); in _dns_gethtbyname()
1186 switch (*info->he) { in _dns_gethtbyname()
1210 struct getnamaddr *info = rv; in _dns_gethtbyaddr() local
1216 info->hp->h_length = va_arg(ap, int); in _dns_gethtbyaddr()
1217 info->hp->h_addrtype = va_arg(ap, int); in _dns_gethtbyaddr()
1220 switch (info->hp->h_addrtype) { in _dns_gethtbyaddr()
1237 *info->he = NETDB_INTERNAL; in _dns_gethtbyaddr()
1242 *info->he = NETDB_INTERNAL; in _dns_gethtbyaddr()
1252 *info->he = NETDB_INTERNAL; in _dns_gethtbyaddr()
1268 hp = getanswer(buf, n, qbuf, T_PTR, res, info->hp, info->buf, in _dns_gethtbyaddr()
1269 info->buflen, info->he); in _dns_gethtbyaddr()
1273 switch (*info->he) { in _dns_gethtbyaddr()
1284 blen = (size_t)(bf - info->buf); in _dns_gethtbyaddr()
1285 if (blen + info->hp->h_length > info->buflen) in _dns_gethtbyaddr()
1289 (void)memcpy(bf, uaddr, (size_t)info->hp->h_length); in _dns_gethtbyaddr()
1290 if (info->hp->h_addrtype == AF_INET && (res->options & RES_USE_INET6)) { in _dns_gethtbyaddr()
1291 if (blen + NS_IN6ADDRSZ > info->buflen) in _dns_gethtbyaddr()
1299 *info->he = NETDB_SUCCESS; in _dns_gethtbyaddr()
1303 *info->he = NETDB_INTERNAL; in _dns_gethtbyaddr()
1310 _yp_hostent(char *line, int af, struct getnamaddr *info) in _yp_hostent() argument
1321 struct hostent *hp = info->hp; in _yp_hostent()
1407 ptr = info->buf; in _yp_hostent()
1408 len = info->buflen; in _yp_hostent()
1429 *info->he = NETDB_INTERNAL; in _yp_hostent()
1445 struct getnamaddr *info = rv; in _yp_gethtbyaddr() local
1475 hp = _yp_hostent(ypcurrent, af, info); in _yp_gethtbyaddr()
1480 *info->he = HOST_NOT_FOUND; in _yp_gethtbyaddr()
1496 struct getnamaddr *info = rv; in _yp_gethtbyname() local
1520 hp = _yp_hostent(ypcurrent, af, info); in _yp_gethtbyname()
1525 *info->he = HOST_NOT_FOUND; in _yp_gethtbyname()