Lines Matching refs:info

678 	struct getnamaddr info;  in gethostbyname_internal_real()  local
754 info.hp = hp; in gethostbyname_internal_real()
755 info.buf = buf; in gethostbyname_internal_real()
756 info.buflen = buflen; in gethostbyname_internal_real()
757 info.he = he; in gethostbyname_internal_real()
758 if (nsdispatch(&info, dtab, NSDB_HOSTS, "gethostbyname", in gethostbyname_internal_real()
838 struct getnamaddr info; in android_gethostbyaddrfornetcontext_real() local
880 info.hp = hp; in android_gethostbyaddrfornetcontext_real()
881 info.buf = buf; in android_gethostbyaddrfornetcontext_real()
882 info.buflen = buflen; in android_gethostbyaddrfornetcontext_real()
883 info.he = he; in android_gethostbyaddrfornetcontext_real()
885 if (nsdispatch(&info, dtab, NSDB_HOSTS, "gethostbyaddr", in android_gethostbyaddrfornetcontext_real()
1143 struct getnamaddr *info = rv; in _dns_gethtbyname() local
1149 info->hp->h_addrtype = va_arg(ap, int); in _dns_gethtbyname()
1151 switch (info->hp->h_addrtype) { in _dns_gethtbyname()
1153 info->hp->h_length = NS_INADDRSZ; in _dns_gethtbyname()
1157 info->hp->h_length = NS_IN6ADDRSZ; in _dns_gethtbyname()
1165 *info->he = NETDB_INTERNAL; in _dns_gethtbyname()
1180 hp = getanswer(buf, n, name, type, res, info->hp, info->buf, in _dns_gethtbyname()
1181 info->buflen, info->he); in _dns_gethtbyname()
1185 switch (*info->he) { in _dns_gethtbyname()
1209 struct getnamaddr *info = rv; in _dns_gethtbyaddr() local
1215 info->hp->h_length = va_arg(ap, int); in _dns_gethtbyaddr()
1216 info->hp->h_addrtype = va_arg(ap, int); in _dns_gethtbyaddr()
1219 switch (info->hp->h_addrtype) { in _dns_gethtbyaddr()
1236 *info->he = NETDB_INTERNAL; in _dns_gethtbyaddr()
1241 *info->he = NETDB_INTERNAL; in _dns_gethtbyaddr()
1251 *info->he = NETDB_INTERNAL; in _dns_gethtbyaddr()
1267 hp = getanswer(buf, n, qbuf, T_PTR, res, info->hp, info->buf, in _dns_gethtbyaddr()
1268 info->buflen, info->he); in _dns_gethtbyaddr()
1272 switch (*info->he) { in _dns_gethtbyaddr()
1283 blen = (size_t)(bf - info->buf); in _dns_gethtbyaddr()
1284 if (blen + info->hp->h_length > info->buflen) in _dns_gethtbyaddr()
1288 (void)memcpy(bf, uaddr, (size_t)info->hp->h_length); in _dns_gethtbyaddr()
1289 if (info->hp->h_addrtype == AF_INET && (res->options & RES_USE_INET6)) { in _dns_gethtbyaddr()
1290 if (blen + NS_IN6ADDRSZ > info->buflen) in _dns_gethtbyaddr()
1298 *info->he = NETDB_SUCCESS; in _dns_gethtbyaddr()
1302 *info->he = NETDB_INTERNAL; in _dns_gethtbyaddr()
1309 _yp_hostent(char *line, int af, struct getnamaddr *info) in _yp_hostent() argument
1320 struct hostent *hp = info->hp; in _yp_hostent()
1406 ptr = info->buf; in _yp_hostent()
1407 len = info->buflen; in _yp_hostent()
1428 *info->he = NETDB_INTERNAL; in _yp_hostent()
1444 struct getnamaddr *info = rv; in _yp_gethtbyaddr() local
1474 hp = _yp_hostent(ypcurrent, af, info); in _yp_gethtbyaddr()
1479 *info->he = HOST_NOT_FOUND; in _yp_gethtbyaddr()
1495 struct getnamaddr *info = rv; in _yp_gethtbyname() local
1519 hp = _yp_hostent(ypcurrent, af, info); in _yp_gethtbyname()
1524 *info->he = HOST_NOT_FOUND; in _yp_gethtbyname()