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

/freebsd-10.1-release/crypto/heimdal/lib/roken/
H A Dfreehostent.c48 if (h->h_aliases != NULL) {
49 for (p = h->h_aliases; *p != NULL; ++p)
51 free (h->h_aliases);
H A Dcopyhostent.c53 res->h_aliases = NULL;
62 for (n = 0, p = h->h_aliases; *p != NULL; ++p)
64 res->h_aliases = malloc ((n + 1) * sizeof(*res->h_aliases));
65 if (res->h_aliases == NULL) {
70 res->h_aliases[i] = NULL;
72 res->h_aliases[i] = strdup (h->h_aliases[i]);
73 if (res->h_aliases[i] == NULL) {
H A Dhostent_find_fqdn.c49 for (h = (const char **)he->h_aliases; *h != NULL; ++h) {
H A Droken_gethostby.c196 he.h_aliases = NULL;
/freebsd-10.1-release/lib/libc/net/
H A Dgethostnamadr.c116 for (i = 0; he->h_aliases[i]; i++, nptr++) {
117 len += strlen(he->h_aliases[i]) + 1;
151 hptr->h_aliases = ptr;
152 for (i = 0 ; he->h_aliases[i]; i++) {
153 n = strlen(he->h_aliases[i]) + 1;
154 strcpy(cp, he->h_aliases[i]);
155 hptr->h_aliases[i] = cp;
158 hptr->h_aliases[i] = NULL;
296 if (ht->h_aliases != NULL) {
298 for (iter = ht->h_aliases; *ite
[all...]
H A Dname6.c416 if ((pp = hp->h_aliases) != NULL) {
448 nhp->h_aliases = (char **)((char *)nhp + al_off);
449 if ((pp = hp->h_aliases) != NULL) {
452 nhp->h_aliases[i++] = cp;
458 nhp->h_aliases[nalias] = NULL;
459 cp = (char *)&nhp->h_aliases[nalias + 1];
486 hp->h_aliases = NULL;
517 hp->h_aliases = aliases;
520 if ((pp = HP(i)->h_aliases) == NULL)
H A Dgethostbyht.c142 q = he->h_aliases = hed->host_aliases;
263 for (cp = he.h_aliases; *cp != 0; cp++)
H A Dgethostbynis.c129 q = he->h_aliases = hed->host_aliases;
H A Dgethostbydns.c211 he->h_aliases = hed->host_aliases;
/freebsd-10.1-release/contrib/tcp_wrappers/
H A Dworkarounds.c243 if ((hp = gethostbyname(name)) && !hp->h_addr_list[1] && hp->h_aliases[1]) {
244 for (o_aliases = n_addr_list = hp->h_aliases; *o_aliases; o_aliases++) {
254 hp->h_addr_list = hp->h_aliases;
255 hp->h_aliases = o_addr_list + 1;
/freebsd-10.1-release/tools/regression/lib/libc/nss/
H A Dtest-gethostby.c166 if (src->h_aliases != NULL) {
168 for (cp = src->h_aliases; *cp; ++cp)
171 dest->h_aliases = (char **)malloc((aliases_num + 1) *
173 assert(dest->h_aliases != NULL);
174 memset(dest->h_aliases, 0, (aliases_num + 1) *
177 for (cp = src->h_aliases; *cp; ++cp) {
178 dest->h_aliases[cp - src->h_aliases] = strdup(*cp);
179 assert(dest->h_aliases[cp - src->h_aliases] !
[all...]
/freebsd-10.1-release/crypto/openssl/crypto/bio/
H A Db_sock.c298 for (i = 0; a->h_aliases[i] != NULL; i++) ;
300 ret->h_aliases = (char **)OPENSSL_malloc(i * sizeof(char *));
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 !
[all...]
/freebsd-10.1-release/usr.sbin/ypserv/
H A Dyp_dnslookup.c82 for (i = 0; hp->h_aliases[i]; i++)
83 len += strlen(hp->h_aliases[i]) + 1;
91 for (i = 0; hp->h_aliases[i]; i++) {
93 strcat(result, hp->h_aliases[i]);
/freebsd-10.1-release/contrib/ntp/include/
H A Dntp_machine.h139 char **h_aliases; /* alias list */ member in struct:hostent
/freebsd-10.1-release/lib/libbluetooth/
H A Dbluetooth.c70 for (cp = p->h_aliases; *cp != 0; cp++)
134 q = host.h_aliases = host_aliases;
/freebsd-10.1-release/contrib/amd/amd/
H A Damq_svc.c99 for (ad = h->h_aliases; *ad; ad++)
H A Dopts.c876 if (hp->h_aliases == NULL) {
880 cp = hp->h_aliases;
/freebsd-10.1-release/include/
H A Dnetdb.h96 char **h_aliases; /* alias list */ member in struct:hostent
/freebsd-10.1-release/contrib/ntp/libntp/
H A Dmachines.c46 host1->h_aliases = name;
60 host1->h_aliases = name;
/freebsd-10.1-release/contrib/gcclibs/libmudflap/
H A Dmf-hooks2.c1479 if (NULL != (ss = p->h_aliases)) {
1488 "gethostbyname result->h_aliases[]");
1491 "gethostbyname result->h_aliases[]");
1493 nreg *= sizeof (*p->h_aliases);
1495 __mf_register (p->h_aliases, nreg, MF_REGISTER_gethostbyname_items,
1496 "gethostbyname result->h_aliases");
1498 MF_VALIDATE_EXTENT (p->h_aliases, nreg, __MF_CHECK_WRITE,
1499 "gethostbyname result->h_aliases");
/freebsd-10.1-release/libexec/ftpd/
H A Dftpd.c833 if (hp->h_aliases == NULL)
837 while (hp->h_aliases[i] &&
838 strcmp(vhost, hp->h_aliases[i]) != 0)
840 if (hp->h_aliases[i] == NULL)
/freebsd-10.1-release/usr.bin/getent/
H A Dgetent.c276 printfmtstrings(he->h_aliases, " ", " ", "%-16s %s", buf, he->h_name);
/freebsd-10.1-release/contrib/sendmail/src/
H A Dconf.c4420 if (h->h_aliases != NULL)
4421 for (i = 0; h->h_aliases[i] != NULL;
4424 h->h_aliases[i]);
4695 for (ha = hp->h_aliases; ha != NULL && *ha != NULL; ha++)
H A Ddaemon.c3266 for (ha = hp->h_aliases; ha != NULL && *ha != NULL; ha++)
H A Dmain.c746 for (av = hp->h_aliases; av != NULL && *av != NULL; av++)

Completed in 295 milliseconds