Lines Matching refs:host
271 print_hosts (struct hostent *host) in print_hosts() argument
275 for (cnt = 0; host->h_addr_list[cnt] != NULL; ++cnt) in print_hosts()
278 const char *ip = inet_ntop (host->h_addrtype, host->h_addr_list[cnt], in print_hosts()
281 printf ("%-15s %s", ip, host->h_name); in print_hosts()
284 for (i = 0; host->h_aliases[i] != NULL; ++i) in print_hosts()
287 fputs_unlocked (host->h_aliases[i], stdout); in print_hosts()
298 struct hostent *host; in hosts_keys() local
303 while ((host = gethostent ()) != NULL) in hosts_keys()
304 print_hosts (host); in hosts_keys()
311 struct hostent *host = NULL; in hosts_keys() local
315 host = gethostbyaddr (addr, IN6ADDRSZ, AF_INET6); in hosts_keys()
317 host = gethostbyaddr (addr, INADDRSZ, AF_INET); in hosts_keys()
318 else if ((host = gethostbyname2 (key[i], AF_INET6)) == NULL) in hosts_keys()
319 host = gethostbyname2 (key[i], AF_INET); in hosts_keys()
321 if (host == NULL) in hosts_keys()
324 print_hosts (host); in hosts_keys()
336 struct hostent *host; in ahosts_keys_int() local
341 while ((host = gethostent ()) != NULL) in ahosts_keys_int()
342 print_hosts (host); in ahosts_keys_int()
467 char *host = strcmp (key[1], "*") == 0 ? NULL : key[1]; in netgroup_keys() local
472 key[0], host ?: "", user ?: "", domain ?: "", in netgroup_keys()
473 innetgr (key[0], host, user, domain)); in netgroup_keys()