/freebsd/crypto/heimdal/lib/roken/ |
H A D | copyhostent.c | 53 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 D | freehostent.c | 48 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 D | hostent_find_fqdn.c | 49 for (h = (const char **)he->h_aliases; *h != NULL; ++h) { in hostent_find_fqdn()
|
H A D | roken_gethostby.c | 196 he.h_aliases = NULL; in roken_gethostby()
|
/freebsd/lib/libc/net/ |
H A D | gethostnamadr.c | 108 for (i = 0; he->h_aliases[i]; i++, nptr++) { in __copy_hostent() 109 len += strlen(he->h_aliases[i]) + 1; in __copy_hostent() 143 hptr->h_aliases = ptr; in __copy_hostent() 144 for (i = 0 ; he->h_aliases[i]; i++) { 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() 290 for (iter = ht->h_aliases; *iter; ++iter) { in host_marshal_func() [all …]
|
H A D | name6.c | 416 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 D | gethostbyht.c | 138 q = he->h_aliases = hed->host_aliases; in gethostent_p() 259 for (cp = he.h_aliases; *cp != 0; cp++) in _ht_gethostbyname()
|
H A D | gethostbynis.c | 129 q = he->h_aliases = hed->host_aliases; in _gethostbynis()
|
H A D | gethostbydns.c | 202 he->h_aliases = hed->host_aliases; in gethostanswer()
|
/freebsd/lib/libc/tests/nss/ |
H A D | gethostby_test.c | 156 if (src->h_aliases != NULL) { in clone_hostent() 158 for (cp = src->h_aliases; *cp; ++cp) in clone_hostent() 161 dest->h_aliases = calloc(aliases_num + 1, sizeof(char *)); in clone_hostent() 162 ATF_REQUIRE(dest->h_aliases != NULL); in clone_hostent() 164 for (cp = src->h_aliases; *cp; ++cp) { 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() 198 for (cp = ht->h_aliases; *cp; ++cp) in free_hostent() 200 free(ht->h_aliases); in free_hostent() [all …]
|
/freebsd/contrib/tcp_wrappers/ |
H A D | workarounds.c | 230 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 D | README.NIS | 133 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 D | cap_net.c | 78 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(nitems + 1, sizeof(hp->h_aliases[0])); 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 D | h_hostent.c | 62 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 D | yp_dnslookup.c | 82 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/libbluetooth/ |
H A D | bluetooth.c | 71 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 D | machines.c | 45 host1->h_aliases = name; in gethostbyname() 59 host1->h_aliases = name; in gethostbyaddr()
|
/freebsd/contrib/ntp/include/ |
H A D | ntp_machine.h | 139 char **h_aliases; /* alias list */ member
|
/freebsd/include/ |
H A D | netdb.h | 106 char **h_aliases; /* alias list */ member
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_platform_limits_solaris.h | 320 char **h_aliases; member
|
H A D | sanitizer_platform_limits_solaris.cpp | 224 CHECK_SIZE_AND_OFFSET(hostent, h_aliases);
|
H A D | sanitizer_platform_limits_freebsd.h | 376 char **h_aliases; member
|
H A D | sanitizer_platform_limits_freebsd.cpp | 437 CHECK_SIZE_AND_OFFSET(hostent, h_aliases);
|
/freebsd/libexec/ftpd/ |
H A D | ftpd.c | 814 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 D | getent.c | 276 printfmtstrings(he->h_aliases, " ", " ", "%-16s %s", buf, he->h_name); in hostsprint()
|