Lines Matching refs:hs

2170 	struct	nd_hostserv *hs;  in hsents2ndhostservs()  local
2188 if ((hs = calloc(hosts * servs, sizeof (struct nd_hostserv))) == 0) { in hsents2ndhostservs()
2194 result->h_hostservs = hs; in hsents2ndhostservs()
2201 hs->h_host = strdup(he->h_name); in hsents2ndhostservs()
2203 hs->h_host = strdup(*hn); in hsents2ndhostservs()
2206 hs->h_serv = strdup(se->s_name); in hsents2ndhostservs()
2212 hs->h_serv = strdup(stmp); in hsents2ndhostservs()
2215 hs->h_serv = strdup(*sn++); in hsents2ndhostservs()
2217 if ((hs->h_host == 0) || (hs->h_serv == 0)) { in hsents2ndhostservs()
2222 hs++; in hsents2ndhostservs()
2351 struct nd_hostserv *hs; in ndhostserv2hent() local
2375 hs = addrs->h_hostservs; in ndhostserv2hent()
2376 if (!hs) in ndhostserv2hent()
2379 length = strlen(hs->h_host) + 1; in ndhostserv2hent()
2383 (void) memcpy(aliasp, hs->h_host, length); in ndhostserv2hent()
2394 la = hs->h_host; in ndhostserv2hent()
2396 for (i = 0; i < count; i++, hs++) in ndhostserv2hent()
2397 if (strcmp(la, hs->h_host) != 0) { in ndhostserv2hent()
2398 size_t len = strlen(hs->h_host) + 1; in ndhostserv2hent()
2403 (void) memcpy(aliasp, hs->h_host, len); in ndhostserv2hent()
2405 la = hs->h_host; in ndhostserv2hent()
2423 struct nd_hostserv *hs; in ndhostserv2srent() local
2438 hs = addrs->h_hostservs; in ndhostserv2srent()
2439 if (!hs) in ndhostserv2srent()
2441 host_cname = hs->h_host; in ndhostserv2srent()
2444 lenj = strlen(hs->h_serv) + 1; in ndhostserv2srent()
2453 (void) memcpy(aliasp, hs->h_serv, lenj); in ndhostserv2srent()
2464 i < count && hs->h_serv && strcmp(hs->h_host, host_cname) == 0; in ndhostserv2srent()
2465 i++, hs++) { in ndhostserv2srent()
2466 size_t len = strlen(hs->h_serv) + 1; in ndhostserv2srent()
2471 (void) memcpy(aliasp, hs->h_serv, len); in ndhostserv2srent()