Lines Matching refs:newhp
128 struct hostent *newhp,
218 copy_decode_hostent_static(struct hostent *hp, struct hostent *newhp,
222 * Copy "struct hostent" data referenced by 'hp' to 'newhp'.
236 *newhp = *hp;
247 newhp->h_aliases = (char **)buf;
267 newhp->h_addr_list = (char **)buf;
284 newhp->h_addr_list[i] = buf;
288 newhp->h_addr_list[naddrs] = NULL;
307 newhp->h_name = buf;
312 newhp->h_name = buf;
331 char **newaliases = newhp->h_aliases;
366 return (newhp);
403 struct hostent *newhp;
428 if ((newhp = malloc(alloc_size)) == NULL) {
432 memset(newhp, 0, alloc_size);
434 pp = (char **)(newhp + 1);
437 newhp->h_name = decode_name_dynamic(hp->h_name);
438 if (newhp->h_name == NULL)
442 newhp->h_addrtype = hp->h_addrtype;
443 newhp->h_length = hp->h_length;
446 newhp->h_aliases = pp;
448 newhp->h_aliases[i] =
450 if (newhp->h_aliases[i] == NULL)
453 newhp->h_aliases[naliases] = NULL;
460 newhp->h_addr_list = pp;
465 newhp->h_addr_list[i] = p;
469 newhp->h_addr_list[naddrs] = NULL;
472 return (newhp);
900 struct hostent *newhp = copy_decode_hostent_dynamic(hp, errp);
901 if (newhp != hp) {
903 obj_lock(newhp);
904 hp = newhp;
925 struct hostent *newhp = copy_decode_hostent_dynamic(hp, errp);
926 if (newhp != hp) {
928 obj_lock(newhp);
929 hp = newhp;