Lines Matching defs:res
355 * that resolver library uses to initialize the ID field of any res
1681 struct addrinfo hints, *res = NULL;
1697 if (getaddrinfo(hostname, NULL, &hints, &res)) {
1700 if (res) {
1706 if ((res->ai_family == AF_INET) &&
1708 (void) memcpy(&dnsip, &res->ai_addr[0],
1715 } else if ((res->ai_family == AF_INET6) &&
1717 (void) memcpy(&dnsip, &res->ai_addr[0],
1726 } while (res->ai_next);
1727 freeaddrinfo(res);