Lines Matching refs:air
485 struct nscd_ai_result *air = NULL; in get_nscd_addresses() local
486 int err = __nscd_getai (name, &air, &h_errno); in get_nscd_addresses()
488 if (__glibc_unlikely (air == NULL)) in get_nscd_addresses()
506 char *addrs = air->addrs; in get_nscd_addresses()
508 struct gaih_addrtuple *addrfree = calloc (air->naddrs, sizeof (*addrfree)); in get_nscd_addresses()
509 struct gaih_addrtuple *at = calloc (air->naddrs, sizeof (*at)); in get_nscd_addresses()
519 for (int i = 0; i < air->naddrs; ++i) in get_nscd_addresses()
521 socklen_t size = (air->family[i] == AF_INET in get_nscd_addresses()
524 if (!((air->family[i] == AF_INET in get_nscd_addresses()
528 || air->family[i] == req->ai_family)) in get_nscd_addresses()
535 if (air->family[i] == AF_INET && req->ai_family == AF_INET6 in get_nscd_addresses()
543 || air->family[count] == req->ai_family) in get_nscd_addresses()
545 at[count].family = air->family[count]; in get_nscd_addresses()
547 if (air->family[count] == AF_INET6) in get_nscd_addresses()
555 if ((req->ai_flags & AI_CANONNAME) && air->canon != NULL) in get_nscd_addresses()
557 char *canonbuf = __strdup (air->canon); in get_nscd_addresses()
577 free (air); in get_nscd_addresses()