Lines Matching refs:n_addresses
41 int n_addresses = 0; in _nss_myhostname_gethostbyname4_r() local
63 n_addresses = local_gateways(NULL, 0, AF_UNSPEC, &addresses); in _nss_myhostname_gethostbyname4_r()
64 if (n_addresses <= 0) in _nss_myhostname_gethostbyname4_r()
71 n_addresses = local_outbounds(NULL, 0, AF_UNSPEC, &addresses); in _nss_myhostname_gethostbyname4_r()
72 if (n_addresses <= 0) in _nss_myhostname_gethostbyname4_r()
90 n_addresses = local_addresses(NULL, 0, AF_UNSPEC, &addresses); in _nss_myhostname_gethostbyname4_r()
91 if (n_addresses < 0) in _nss_myhostname_gethostbyname4_r()
92 n_addresses = 0; in _nss_myhostname_gethostbyname4_r()
99 …ms = ALIGN(l+1) + ALIGN(sizeof(struct gaih_addrtuple)) * (n_addresses > 0 ? n_addresses : 1 + sock… in _nss_myhostname_gethostbyname4_r()
112 assert(n_addresses >= 0); in _nss_myhostname_gethostbyname4_r()
113 if (n_addresses == 0) { in _nss_myhostname_gethostbyname4_r()
140 for (int i = n_addresses; i > 0; i--) { in _nss_myhostname_gethostbyname4_r()
181 struct local_address *addresses, unsigned n_addresses, in fill_in_hostent() argument
205 for (a = addresses, n = 0, c = 0; n < n_addresses; a++, n++) in fill_in_hostent()
252 for (a = addresses, n = 0; n < n_addresses; a++, n++) { in fill_in_hostent()
327 int n_addresses = 0; in _nss_myhostname_gethostbyname3_r() local
357 n_addresses = local_gateways(NULL, 0, af, &addresses); in _nss_myhostname_gethostbyname3_r()
358 if (n_addresses <= 0) in _nss_myhostname_gethostbyname3_r()
365 n_addresses = local_outbounds(NULL, 0, af, &addresses); in _nss_myhostname_gethostbyname3_r()
366 if (n_addresses <= 0) in _nss_myhostname_gethostbyname3_r()
383 n_addresses = local_addresses(NULL, 0, af, &addresses); in _nss_myhostname_gethostbyname3_r()
384 if (n_addresses < 0) in _nss_myhostname_gethostbyname3_r()
385 n_addresses = 0; in _nss_myhostname_gethostbyname3_r()
388 additional = n_addresses <= 0 && af == AF_INET6 ? "localhost" : NULL; in _nss_myhostname_gethostbyname3_r()
397 addresses, n_addresses, in _nss_myhostname_gethostbyname3_r()
422 int n_addresses = 0; in _nss_myhostname_gethostbyaddr2_r() local
473 n_addresses = local_addresses(NULL, 0, af, &addresses); in _nss_myhostname_gethostbyaddr2_r()
474 for (a = addresses, n = 0; (int) n < n_addresses; n++, a++) in _nss_myhostname_gethostbyaddr2_r()
480 n_addresses = local_gateways(NULL, 0, af, &addresses); in _nss_myhostname_gethostbyaddr2_r()
481 for (a = addresses, n = 0; (int) n < n_addresses; n++, a++) in _nss_myhostname_gethostbyaddr2_r()
511 addresses, n_addresses, in _nss_myhostname_gethostbyaddr2_r()