Home
last modified time | relevance | path

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

12

/third_party/musl/src/network/
Dgethostbyname2_r.c54 h->h_aliases = (void *)buf; in gethostbyname2_r()
66 h->h_name = h->h_aliases[0] = buf; in gethostbyname2_r()
71 h->h_aliases[1] = buf; in gethostbyname2_r()
72 strcpy(h->h_aliases[1], name); in gethostbyname2_r()
73 buf += strlen(h->h_aliases[1])+1; in gethostbyname2_r()
74 } else h->h_aliases[1] = 0; in gethostbyname2_r()
76 h->h_aliases[2] = 0; in gethostbyname2_r()
Dgethostbyaddr_r.c40 h->h_aliases = (void *)buf; in gethostbyaddr_r()
47 h->h_aliases[0] = buf; in gethostbyaddr_r()
48 h->h_aliases[1] = 0; in gethostbyaddr_r()
68 h->h_name = h->h_aliases[0]; in gethostbyaddr_r()
/third_party/node/deps/cares/src/lib/
Dares__get_hostent.c171 hostent->h_aliases = NULL; in ares__get_hostent()
193 hostent->h_aliases = ares_malloc((naliases + 1) * sizeof(char *)); in ares__get_hostent()
194 if (!hostent->h_aliases) in ares__get_hostent()
196 alias = hostent->h_aliases; in ares__get_hostent()
242 if (hostent->h_aliases) in ares__get_hostent()
244 for (alias = hostent->h_aliases; *alias; alias++) in ares__get_hostent()
246 ares_free(hostent->h_aliases); in ares__get_hostent()
Dares_parse_ptr_reply.c196 hostent->h_aliases = ares_malloc((aliascnt+1) * sizeof (char *)); in ares_parse_ptr_reply()
197 if (!hostent->h_aliases) in ares_parse_ptr_reply()
203 hostent->h_aliases[i] = aliases[i]; in ares_parse_ptr_reply()
204 hostent->h_aliases[aliascnt] = NULL; in ares_parse_ptr_reply()
Dares_free_hostent.c34 for (p = host->h_aliases; p && *p; p++) in ares_free_hostent()
36 ares_free(host->h_aliases); in ares_free_hostent()
Dares_parse_ns_reply.c161 hostent->h_aliases = nameservers; in ares_parse_ns_reply()
Dares__addrinfo2hostent.c94 (*host)->h_aliases = aliases; in ares__addrinfo2hostent()
Dares_gethostbyname.c322 for (alias = (*host)->h_aliases; *alias; alias++) in file_lookup()
/third_party/musl/porting/liteos_a/user/src/network/
Dgethostbyaddr_r.c39 h->h_aliases = (void *)buf; in gethostbyaddr_r()
46 h->h_aliases[0] = buf; in gethostbyaddr_r()
47 h->h_aliases[1] = 0; in gethostbyaddr_r()
67 h->h_name = h->h_aliases[0]; in gethostbyaddr_r()
Dent.c81 hd->he.h_aliases = hd->aliases; in gethostent_resolv()
/third_party/node/src/
Dcares_wrap.h78 dest->h_aliases = nullptr; in cares_wrap_hostent_cpy()
90 src->h_aliases[alias_count] != nullptr; in cares_wrap_hostent_cpy()
94 dest->h_aliases = node::Malloc<char*>(alias_count + 1); in cares_wrap_hostent_cpy()
96 const size_t cur_alias_size = strlen(src->h_aliases[i]) + 1; in cares_wrap_hostent_cpy()
97 dest->h_aliases[i] = node::Malloc(cur_alias_size); in cares_wrap_hostent_cpy()
98 memcpy(dest->h_aliases[i], src->h_aliases[i], cur_alias_size); in cares_wrap_hostent_cpy()
100 dest->h_aliases[alias_count] = nullptr; in cares_wrap_hostent_cpy()
Dcares_wrap.cc164 for (uint32_t i = 0; host->h_aliases[i] != nullptr; ++i) in HostentToNames()
165 names.emplace_back(OneByteString(env->isolate(), host->h_aliases[i])); in HostentToNames()
177 for (uint32_t i = 0; host->h_aliases[i] != nullptr; ++i) { in HostentToNames()
181 OneByteString(env->isolate(), host->h_aliases[i])).Check(); in HostentToNames()
248 if ((*type == ns_t_cname_or_a && ptr->h_name && ptr->h_aliases[0]) || in ParseGeneralReply()
266 for (uint32_t i = 0; ptr->h_aliases[i] != nullptr; i++) { in ParseGeneralReply()
267 auto alias = OneByteString(env->isolate(), ptr->h_aliases[i]); in ParseGeneralReply()
1873 if (host->h_aliases != nullptr) { in safe_free_hostent()
1875 while (host->h_aliases[idx]) { in safe_free_hostent()
1876 free(host->h_aliases[idx++]); in safe_free_hostent()
[all …]
/third_party/node/deps/cares/src/tools/
Dahost.c195 if (host->h_aliases[0]) in callback()
200 for (i = 0; host->h_aliases[i]; i++) in callback()
201 printf("%s ", host->h_aliases[i]); in callback()
/third_party/lwip/src/api/
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()
215 ret->h_aliases = &h->aliases; in lwip_gethostbyname_r()
/third_party/lwip/src/include/lwip/
Dnetdb.h94 char **h_aliases; /* A pointer to an array of pointers to alternative host names, member
/third_party/musl/ndk_musl_include/
Dnetdb.h71 char **h_aliases; member
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
Dnetdb.h71 char **h_aliases; member
/third_party/musl/porting/uniproton/kernel/include/
Dnetdb.h71 char **h_aliases; member
/third_party/musl/porting/liteos_a/kernel/include/
Dnetdb.h71 char **h_aliases; member
/third_party/musl/include/
Dnetdb.h71 char **h_aliases; member
/third_party/musl/porting/liteos_m/kernel/include/
Dnetdb.h71 char **h_aliases; member
/third_party/musl/libc-test/src/api/
Dnetdb.c13 F(char**, h_aliases) in f()
/third_party/rust/crates/libc/src/unix/newlib/
Dmod.rs90 pub h_aliases: *mut *mut ::c_char,
/third_party/rust/crates/libc/src/unix/
Dmod.rs147 pub h_aliases: *mut *mut ::c_char,
/third_party/python/Modules/
Dsocketmodule.c5563 if (h->h_aliases) {
5564 for (pch = h->h_aliases; *pch != NULL; pch++) {

12