Home
last modified time | relevance | path

Searched refs:h_aliases (Results 1 – 17 of 17) sorted by relevance

/minix/crypto/external/bsd/heimdal/dist/lib/roken/
H A Dcopyhostent.c55 res->h_aliases = NULL; in copyhostent()
64 for (n = 0, p = h->h_aliases; *p != NULL; ++p) in copyhostent()
66 res->h_aliases = malloc ((n + 1) * sizeof(*res->h_aliases)); in copyhostent()
67 if (res->h_aliases == NULL) { in copyhostent()
72 res->h_aliases[i] = NULL; in copyhostent()
74 res->h_aliases[i] = strdup (h->h_aliases[i]); in copyhostent()
75 if (res->h_aliases[i] == NULL) { in copyhostent()
H A Dfreehostent.c50 if (h->h_aliases != NULL) { in freehostent()
51 for (p = h->h_aliases; *p != NULL; ++p) in freehostent()
53 free (h->h_aliases); in freehostent()
H A Dhostent_find_fqdn.c51 for (h = (const char **)he->h_aliases; *h != NULL; ++h) { in hostent_find_fqdn()
H A Droken_gethostby.c198 he.h_aliases = NULL; in roken_gethostby()
/minix/external/bsd/bind/dist/lib/lwres/
H A Dgetipnode.c265 he.h_aliases = aliases; in lwres_getipnodebyname()
266 he.h_aliases[0] = NULL; in lwres_getipnodebyname()
484 cpp = he->h_aliases; in lwres_freehostent()
491 free(he->h_aliases); in lwres_freehostent()
863 cpp = he1->h_aliases; in copyandmerge()
877 cpp = he2->h_aliases; in copyandmerge()
957 npp = he->h_aliases; in copyandmerge()
987 cpp = he->h_aliases; in copyandmerge()
992 free(he->h_aliases); in copyandmerge()
1078 free(he->h_aliases); in hostfromaddr()
[all …]
H A Dgethost.c315 for (i = 0; src->h_aliases[i]; i++, nptr++) { in copytobuf()
316 len += strlen(src->h_aliases[i]) + 1; in copytobuf()
357 hptr->h_aliases = ptr; in copytobuf()
358 for (i = 0; src->h_aliases[i]; i++) { in copytobuf()
359 n = strlen(src->h_aliases[i]) + 1; in copytobuf()
360 strcpy(cp, src->h_aliases[i]); in copytobuf()
361 hptr->h_aliases[i] = cp; in copytobuf()
364 hptr->h_aliases[i] = NULL; in copytobuf()
/minix/lib/libc/net/
H A Dsethostent.c194 for (cp = hp->h_aliases; *cp != NULL; cp++) in _hf_gethtbyname2()
205 for (anum = 0; hp->h_aliases[anum]; anum++) { in _hf_gethtbyname2()
208 HENT_SCOPY(aliases[anum], hp->h_aliases[anum], in _hf_gethtbyname2()
237 HENT_ARRAY(hp->h_aliases, anum, ptr, len); in _hf_gethtbyname2()
248 HENT_SCOPY(hp->h_aliases[i], aliases[i], ptr, len); in _hf_gethtbyname2()
249 hp->h_aliases[anum] = NULL; in _hf_gethtbyname2()
H A Dgethnamaddr.c283 hent->h_aliases = ap = aliases; in getanswer()
497 qlen = (n + 1) * sizeof(*hent->h_aliases); in getanswer()
500 hent->h_aliases = (void *)bp; in getanswer()
658 HENT_ARRAY(hp->h_aliases, 0, buf, buflen); in gethostbyname_internal()
660 hp->h_aliases[0] = NULL; in gethostbyname_internal()
815 HENT_ARRAY(hent->h_aliases, anum, buf, buflen); in gethostent_r()
822 HENT_SCOPY(hent->h_aliases[i], aliases[i], buf, buflen); in gethostent_r()
823 hent->h_aliases[anum] = NULL; in gethostent_r()
1206 HENT_ARRAY(hp->h_aliases, anum, ptr, len); in _yp_hostent()
1216 HENT_SCOPY(hp->h_aliases[i], aliases[i], ptr, len); in _yp_hostent()
[all …]
/minix/external/bsd/bind/dist/contrib/idn/idnkit-1.0-src/tools/runidn/
H A Dresolver.c240 if (hp->h_aliases != NULL) { in copy_decode_hostent_static()
249 newhp->h_aliases = (char **)buf; in copy_decode_hostent_static()
328 if (hp->h_aliases != NULL) { in copy_decode_hostent_static()
332 char **aliases = hp->h_aliases; in copy_decode_hostent_static()
415 if (hp->h_aliases != NULL) { in copy_decode_hostent_dynamic()
447 if (hp->h_aliases != NULL) { in copy_decode_hostent_dynamic()
448 newhp->h_aliases = pp; in copy_decode_hostent_dynamic()
450 newhp->h_aliases[i] = in copy_decode_hostent_dynamic()
452 if (newhp->h_aliases[i] == NULL) in copy_decode_hostent_dynamic()
489 if (hp->h_aliases != NULL) { in free_copied_hostent()
[all …]
/minix/crypto/external/bsd/openssl/dist/crypto/bio/
H A Db_sock.c298 for (i = 0; a->h_aliases[i] != NULL; i++) ;
301 if (ret->h_aliases == NULL)
303 memset(ret->h_aliases, 0, i * sizeof(char *));
316 for (i = 0; a->h_aliases[i] != NULL; i++) {
317 j = strlen(a->h_aliases[i]) + 1;
318 if ((ret->h_aliases[i] = OPENSSL_malloc(j)) == NULL)
320 memcpy(ret->h_aliases[i], a->h_aliases[i], j);
346 if (a->h_aliases != NULL) {
347 for (i = 0; a->h_aliases[i] != NULL; i++)
348 OPENSSL_free(a->h_aliases[i]);
[all …]
/minix/tests/lib/libc/net/
H A Dh_hostent.c62 for (i = 0; h->h_aliases[i]; i++) in phostent()
63 printf("%s%s", i == 0 ? "" : " ", h->h_aliases[i]); in phostent()
/minix/minix/lib/liblwip/dist/src/api/
H A Dnetdb.c115 s_hostent.h_aliases = &s_aliases; in lwip_gethostbyname()
123 LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_aliases == %p\n", (void*)s_hostent.h_aliases)); in lwip_gethostbyname()
216 ret->h_aliases = &h->aliases; in lwip_gethostbyname_r()
/minix/external/bsd/bind/dist/bin/tests/
H A Dgxbn_test.c41 c = he->h_aliases; in print_he()
H A Dgxba_test.c41 c = he->h_aliases; in print_he()
/minix/minix/lib/liblwip/dist/src/include/lwip/
H A Dnetdb.h94 char **h_aliases; /* A pointer to an array of pointers to alternative host names, member
/minix/include/
H A Dnetdb.h150 char **h_aliases; /*%< alias list */ member
/minix/usr.bin/getent/
H A Dgetent.c300 printfmtstrings(he->h_aliases, " ", " ", "%-16s %s", buf, he->h_name); in hostsprint()