Home
last modified time | relevance | path

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

12

/freebsd/crypto/heimdal/lib/roken/
H A Dcopyhostent.c53 res->h_aliases = NULL; in copyhostent()
62 for (n = 0, p = h->h_aliases; *p != NULL; ++p) in copyhostent()
64 res->h_aliases = malloc ((n + 1) * sizeof(*res->h_aliases)); in copyhostent()
65 if (res->h_aliases == NULL) { in copyhostent()
70 res->h_aliases[i] = NULL; in copyhostent()
72 res->h_aliases[i] = strdup (h->h_aliases[i]); in copyhostent()
73 if (res->h_aliases[i] == NULL) { in copyhostent()
H A Dfreehostent.c48 if (h->h_aliases != NULL) { in freehostent()
49 for (p = h->h_aliases; *p != NULL; ++p) in freehostent()
51 free (h->h_aliases); in freehostent()
H A Dhostent_find_fqdn.c49 for (h = (const char **)he->h_aliases; *h != NULL; ++h) { in hostent_find_fqdn()
H A Droken_gethostby.c196 he.h_aliases = NULL; in roken_gethostby()
/freebsd/lib/libc/net/
H A Dgethostnamadr.c109 len += strlen(he->h_aliases[i]) + 1; in __copy_hostent()
143 hptr->h_aliases = ptr; in __copy_hostent()
145 n = strlen(he->h_aliases[i]) + 1; in __copy_hostent()
146 strcpy(cp, he->h_aliases[i]); in __copy_hostent()
147 hptr->h_aliases[i] = cp; in __copy_hostent()
150 hptr->h_aliases[i] = NULL; in __copy_hostent()
288 if (ht->h_aliases != NULL) { in host_marshal_func()
329 if (new_ht.h_aliases != NULL) { in host_marshal_func()
332 new_ht.h_aliases = (char **)p; in host_marshal_func()
411 if (ht->h_aliases != NULL) { in host_unmarshal_func()
[all …]
H A Dname6.c416 if ((pp = hp->h_aliases) != NULL) { in _hpcopy()
448 nhp->h_aliases = (char **)((char *)nhp + al_off); in _hpcopy()
449 if ((pp = hp->h_aliases) != NULL) { in _hpcopy()
452 nhp->h_aliases[i++] = cp; in _hpcopy()
458 nhp->h_aliases[nalias] = NULL; in _hpcopy()
459 cp = (char *)&nhp->h_aliases[nalias + 1]; in _hpcopy()
486 hp->h_aliases = NULL; in _hpaddr()
517 hp->h_aliases = aliases; in _hpmerge()
520 if ((pp = HP(i)->h_aliases) == NULL) in _hpmerge()
H A Dgethostbyht.c138 q = he->h_aliases = hed->host_aliases; in gethostent_p()
259 for (cp = he.h_aliases; *cp != 0; cp++) in _ht_gethostbyname()
H A Dgethostbynis.c129 q = he->h_aliases = hed->host_aliases; in _gethostbynis()
/freebsd/lib/libc/tests/nss/
H A Dgethostby_test.c156 if (src->h_aliases != NULL) { in clone_hostent()
165 dest->h_aliases[cp - src->h_aliases] = strdup(*cp); in clone_hostent()
166 ATF_REQUIRE(dest->h_aliases[cp - src->h_aliases] != NULL); in clone_hostent()
197 if (ht->h_aliases != NULL) { in free_hostent()
200 free(ht->h_aliases); in free_hostent()
230 c1 = ht1->h_aliases; in compare_hostent()
231 c2 = ht2->h_aliases; in compare_hostent()
233 if ((ht1->h_aliases == NULL || ht2->h_aliases == NULL) && in compare_hostent()
234 ht1->h_aliases != ht2->h_aliases) in compare_hostent()
414 if (ht->h_aliases != NULL) { in sdump_hostent()
[all …]
/freebsd/lib/libcasper/services/cap_dns/
H A Dcap_dns.c58 if (hp->h_aliases != NULL) { in hostent_free()
59 for (ii = 0; hp->h_aliases[ii] != NULL; ii++) in hostent_free()
60 free(hp->h_aliases[ii]); in hostent_free()
61 free(hp->h_aliases); in hostent_free()
62 hp->h_aliases = NULL; in hostent_free()
88 hp->h_aliases = calloc(sizeof(hp->h_aliases[0]), nitems + 1); in hostent_unpack()
89 if (hp->h_aliases == NULL) in hostent_unpack()
94 hp->h_aliases[ii] = in hostent_unpack()
96 if (hp->h_aliases[ii] == NULL) in hostent_unpack()
99 hp->h_aliases[ii] = NULL; in hostent_unpack()
[all …]
/freebsd/contrib/tcp_wrappers/
H A Dworkarounds.c230 if ((hp = gethostbyname(name)) && !hp->h_addr_list[1] && hp->h_aliases[1]) {
231 for (o_aliases = n_addr_list = hp->h_aliases; *o_aliases; o_aliases++) {
241 hp->h_addr_list = hp->h_aliases;
242 hp->h_aliases = o_addr_list + 1;
H A DREADME.NIS133 X while (hp->h_aliases[0])
134 X printf("%s ", *hp->h_aliases++);
187 X while (hp->h_aliases[0])
188 X printf("%s ", *hp->h_aliases++);
/freebsd/lib/libcasper/services/cap_net/
H A Dcap_net.c78 if (hp->h_aliases != NULL) { in hostent_free()
79 for (ii = 0; hp->h_aliases[ii] != NULL; ii++) in hostent_free()
80 free(hp->h_aliases[ii]); in hostent_free()
81 free(hp->h_aliases); in hostent_free()
82 hp->h_aliases = NULL; in hostent_free()
108 hp->h_aliases = calloc(sizeof(hp->h_aliases[0]), nitems + 1); in hostent_unpack()
109 if (hp->h_aliases == NULL) in hostent_unpack()
114 hp->h_aliases[ii] = in hostent_unpack()
116 if (hp->h_aliases[ii] == NULL) in hostent_unpack()
119 hp->h_aliases[ii] = NULL; in hostent_unpack()
[all …]
/freebsd/contrib/netbsd-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()
/freebsd/usr.sbin/ypserv/
H A Dyp_dnslookup.c82 for (i = 0; hp->h_aliases[i]; i++) in parse()
83 len += strlen(hp->h_aliases[i]) + 1; in parse()
91 for (i = 0; hp->h_aliases[i]; i++) { in parse()
93 strcat(result, hp->h_aliases[i]); in parse()
/freebsd/lib/libcasper/services/cap_dns/tests/
H A Ddns_test.c176 if (!hostent_aliases_compare(hp0->h_aliases, hp1->h_aliases)) in hostent_compare()
178 if (!hostent_aliases_compare(hp1->h_aliases, hp0->h_aliases)) in hostent_compare()
/freebsd/lib/libbluetooth/
H A Dbluetooth.c71 for (cp = p->h_aliases; *cp != NULL; cp++) in bt_gethostbyname()
135 q = host.h_aliases = host_aliases; in bt_gethostent()
/freebsd/contrib/ntp/libntp/
H A Dmachines.c45 host1->h_aliases = name; in gethostbyname()
59 host1->h_aliases = name; in gethostbyaddr()
/freebsd/contrib/ntp/include/
H A Dntp_machine.h139 char **h_aliases; /* alias list */ member
/freebsd/include/
H A Dnetdb.h106 char **h_aliases; /* alias list */ member
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_platform_limits_solaris.h320 char **h_aliases; member
H A Dsanitizer_platform_limits_solaris.cpp224 CHECK_SIZE_AND_OFFSET(hostent, h_aliases);
H A Dsanitizer_platform_limits_freebsd.h358 char **h_aliases; member
/freebsd/libexec/ftpd/
H A Dftpd.c814 if (hp->h_aliases == NULL) in inithosts()
818 while (hp->h_aliases[i] && in inithosts()
819 strcmp(vhost, hp->h_aliases[i]) != 0) in inithosts()
821 if (hp->h_aliases[i] == NULL) in inithosts()
/freebsd/usr.bin/getent/
H A Dgetent.c276 printfmtstrings(he->h_aliases, " ", " ", "%-16s %s", buf, he->h_name); in hostsprint()

12