Home
last modified time | relevance | path

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

12

/netbsd/src/external/bsd/libbind/dist/irs/
Dgethostent_r.c173 for (i = 0; he->h_aliases[i]; i++, nptr++) { in copy_hostent()
174 len += strlen(he->h_aliases[i]) + 1; in copy_hostent()
208 hptr->h_aliases = ptr; in copy_hostent()
209 for (i = 0 ; he->h_aliases[i]; i++) { in copy_hostent()
210 n = strlen(he->h_aliases[i]) + 1; in copy_hostent()
211 strcpy(cp, he->h_aliases[i]); in copy_hostent()
212 hptr->h_aliases[i] = cp; in copy_hostent()
215 hptr->h_aliases[i] = NULL; in copy_hostent()
257 hptr->h_aliases = hdptr->host_aliases; in copy_hostent()
258 while (he->h_aliases[i] && i < (_MAXALIASES-1)) { in copy_hostent()
[all …]
Dgethostent.c147 for (hap = net_data->ho_last->h_aliases; hap && *hap; hap++) in gethostbyname2_p()
304 he.h_aliases = aliases; in getipnodebyname()
305 he.h_aliases[0] = NULL; in getipnodebyname()
438 cpp = he->h_aliases; in freehostent()
445 memput(he->h_aliases, sizeof(char *) * (names)); in freehostent()
811 cpp = he1->h_aliases; in copyandmerge()
825 cpp = he2->h_aliases; in copyandmerge()
891 he->h_aliases = memget(sizeof(char *) * (names)); in copyandmerge()
892 if (he->h_aliases == NULL) in copyandmerge()
894 memset(he->h_aliases, 0, sizeof(char *) * (names)); in copyandmerge()
[all …]
Dirp_ho.c384 if (ho->h_aliases != NULL) { in free_host()
385 for (p = ho->h_aliases ; *p != NULL ; p++) in free_host()
387 free(ho->h_aliases); in free_host()
Dirpmarshall.c920 need += joinlength(ho->h_aliases) + 1; in irp_marshall_ho()
953 joinarray(ho->h_aliases, *buffer, COMMA); strcat(*buffer, fieldsep); in irp_marshall_ho()
1111 ho->h_aliases = aliases; in irp_unmarshall_ho()
2139 for (i = 0 ; he.h_aliases[i] != NULL ; i++) in main()
2140 printf("\n\t\t\"%s\"", he.h_aliases[i]); in main()
Dlcl_ho.c239 for (hap = hp->h_aliases; *hap; hap++) { in ho_byname2()
409 q = pvt->host.h_aliases = pvt->host_aliases; in ho_next()
Dnis_ho.c494 q = pvt->host.h_aliases = pvt->host_aliases; in makehostent()
/netbsd/src/crypto/external/bsd/heimdal/dist/lib/roken/
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()
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()
Dhostent_find_fqdn.c51 for (h = (const char **)he->h_aliases; *h != NULL; ++h) { in hostent_find_fqdn()
Droken_gethostby.c199 he.h_aliases = NULL; in roken_gethostby()
/netbsd/src/lib/libc/net/
Dsethostent.c195 for (cp = hp->h_aliases; *cp != NULL; cp++) in _hf_gethtbyname2()
206 for (anum = 0; hp->h_aliases[anum]; anum++) { in _hf_gethtbyname2()
209 HENT_SCOPY(aliases[anum], hp->h_aliases[anum], in _hf_gethtbyname2()
238 HENT_ARRAY(hp->h_aliases, anum, ptr, len); in _hf_gethtbyname2()
249 HENT_SCOPY(hp->h_aliases[i], aliases[i], ptr, len); in _hf_gethtbyname2()
250 hp->h_aliases[anum] = NULL; in _hf_gethtbyname2()
Dgethnamaddr.c284 hent->h_aliases = ap = aliases; in getanswer()
498 qlen = (n + 1) * sizeof(*hent->h_aliases); in getanswer()
501 hent->h_aliases = (void *)bp; in getanswer()
659 HENT_ARRAY(hp->h_aliases, 0, buf, buflen); in gethostbyname_internal()
661 hp->h_aliases[0] = NULL; in gethostbyname_internal()
816 HENT_ARRAY(hent->h_aliases, anum, buf, buflen); in gethostent_r()
823 HENT_SCOPY(hent->h_aliases[i], aliases[i], buf, buflen); in gethostent_r()
824 hent->h_aliases[anum] = NULL; in gethostent_r()
1207 HENT_ARRAY(hp->h_aliases, anum, ptr, len); in _yp_hostent()
1217 HENT_SCOPY(hp->h_aliases[i], aliases[i], ptr, len); in _yp_hostent()
[all …]
/netbsd/src/distrib/utils/libhack/
Dgethost.c216 HENT_ARRAY(hent->h_aliases, anum, buf, buflen); in gethostent_r()
223 HENT_SCOPY(hent->h_aliases[i], aliases[i], buf, buflen); in gethostent_r()
224 hent->h_aliases[anum] = NULL; in gethostent_r()
/netbsd/src/external/apache2/mDNSResponder/nss/
Dnss_mdnsd.c648 ctx->host.h_aliases = ctx->host_aliases; in _mdns_hostent_init()
650 ctx->host.h_name = ctx->host.h_aliases[0] = NULL; in _mdns_hostent_init()
681 if (!strncmp(ctx->host.h_aliases[i], name, len) in _mdns_hostent_add_host()
682 && (strlen(ctx->host.h_aliases[i]) == len)) { in _mdns_hostent_add_host()
693 ctx->host.h_aliases[ctx->naliases - 1] = ctx->next; in _mdns_hostent_add_host()
725 HENT_ARRAY(hp->h_aliases, ctx->naliases - 1, ptr, len); in _mdns_hostent_done()
736 HENT_SCOPY(hp->h_aliases[i], chp->h_aliases[i], ptr, len); in _mdns_hostent_done()
737 hp->h_aliases[ctx->naliases - 1] = NULL; in _mdns_hostent_done()
/netbsd/src/tests/lib/libc/net/
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()
/netbsd/src/external/bsd/openldap/dist/libraries/libldap/
Dutil-int.c811 if( src->h_aliases != NULL ) { in copy_hostent()
812 for( p = src->h_aliases; (*p) != NULL; p++ ) { in copy_hostent()
836 res->h_aliases = tp; in copy_hostent()
837 if ( src->h_aliases != NULL ) { in copy_hostent()
838 tbuf = cpy_aliases( &tp, tbuf, src->h_aliases ); in copy_hostent()
/netbsd/src/lib/libbluetooth/
Dbluetooth.c73 for (cp = p->h_aliases; *cp != 0; cp++) in bt_gethostbyname()
137 q = host.h_aliases = host_aliases; in bt_gethostent()
/netbsd/src/external/bsd/ntp/dist/libntp/
Dmachines.c47 host1->h_aliases = name; in gethostbyname()
61 host1->h_aliases = name; in gethostbyaddr()
/netbsd/src/external/bsd/ntp/dist/include/
Dntp_machine.h141 char **h_aliases; /* alias list */ member
/netbsd/src/include/
Dnetdb.h150 char **h_aliases; /*%< alias list */ member
/netbsd/src/external/bsd/libbind/dist/doc/
Dgetipnodebyname.cat329 char **h_aliases; /* alias list */
41 h_aliases A zero-terminated array of alternate names for the host.
Dgethostbyname.cat340 char **h_aliases; /* alias list */
52 h_aliases A zero-terminated array of alternate names for the host.
/netbsd/src/usr.sbin/ypserv/ypserv/
Dypserv_db.c534 while ((ptr = *(host->h_aliases)) != NULL) { in lookup_host()
542 host->h_aliases++; in lookup_host()
/netbsd/src/external/bsd/libbind/dist/include/
Dnetdb.h143 char **h_aliases; /*%< alias list */ member
/netbsd/src/external/bsd/am-utils/dist/amd/
Dopts.c876 if (hp->h_aliases == NULL) { in f_xhost()
880 cp = hp->h_aliases; in f_xhost()

12