Home
last modified time | relevance | path

Searched refs:h_aliases (Results 1 – 25 of 28) 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()
Dent.c87 hd->he.h_aliases = hd->aliases; in gethostent_resolv()
/third_party/node/deps/cares/src/lib/
Dares_parse_ns_reply.c103 hostent->h_aliases = ares_malloc((ancount + 1) * sizeof(*hostent->h_aliases)); in ares_parse_ns_reply()
104 if (hostent->h_aliases == NULL) { in ares_parse_ns_reply()
108 memset(hostent->h_aliases, 0, (ancount + 1) * sizeof(*hostent->h_aliases)); in ares_parse_ns_reply()
131 hostent->h_aliases[nscount] = ares_strdup(hostname); in ares_parse_ns_reply()
132 if (hostent->h_aliases[nscount] == NULL) { in ares_parse_ns_reply()
Dares_parse_ptr_reply.c106 hostent->h_aliases = ares_malloc((ancount + 1) * sizeof(*hostent->h_aliases)); in ares_parse_ptr_reply()
107 if (hostent->h_aliases == NULL) { in ares_parse_ptr_reply()
111 memset(hostent->h_aliases, 0, (ancount + 1) * sizeof(*hostent->h_aliases)); in ares_parse_ptr_reply()
166 hostent->h_aliases[ptrcount] = ares_strdup(hostname); in ares_parse_ptr_reply()
167 if (hostent->h_aliases[ptrcount] == NULL) { in ares_parse_ptr_reply()
Dares_free_hostent.c46 for (p = host->h_aliases; p && *p; p++) { in ares_free_hostent()
49 ares_free(host->h_aliases); in ares_free_hostent()
Dares__hosts_file.c944 (*hostent)->h_aliases = in ares__hosts_entry_to_hostent()
945 ares_malloc_zero((naliases + 1) * sizeof(*(*hostent)->h_aliases)); in ares__hosts_entry_to_hostent()
946 if ((*hostent)->h_aliases == NULL) { in ares__hosts_entry_to_hostent()
956 (*hostent)->h_aliases[idx] = ares_strdup(ares__llist_node_val(node)); in ares__hosts_entry_to_hostent()
957 if ((*hostent)->h_aliases[idx] == NULL) { in ares__hosts_entry_to_hostent()
Dares__addrinfo2hostent.c110 (*host)->h_aliases = aliases; in ares__addrinfo2hostent()
/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.h79 dest->h_aliases = nullptr; in cares_wrap_hostent_cpy()
91 src->h_aliases[alias_count] != nullptr; in cares_wrap_hostent_cpy()
95 dest->h_aliases = node::Malloc<char*>(alias_count + 1); in cares_wrap_hostent_cpy()
97 const size_t cur_alias_size = strlen(src->h_aliases[i]) + 1; in cares_wrap_hostent_cpy()
98 dest->h_aliases[i] = node::Malloc(cur_alias_size); in cares_wrap_hostent_cpy()
99 memcpy(dest->h_aliases[i], src->h_aliases[i], cur_alias_size); in cares_wrap_hostent_cpy()
101 dest->h_aliases[alias_count] = nullptr; in cares_wrap_hostent_cpy()
Dcares_wrap.cc166 for (uint32_t i = 0; host->h_aliases[i] != nullptr; ++i) in HostentToNames()
167 names.emplace_back(OneByteString(env->isolate(), host->h_aliases[i])); in HostentToNames()
179 for (uint32_t i = 0; host->h_aliases[i] != nullptr; ++i) { in HostentToNames()
183 OneByteString(env->isolate(), host->h_aliases[i])).Check(); in HostentToNames()
249 if ((*type == ns_t_cname_or_a && ptr->h_name && ptr->h_aliases[0]) || in ParseGeneralReply()
267 for (uint32_t i = 0; ptr->h_aliases[i] != nullptr; i++) { in ParseGeneralReply()
268 auto alias = OneByteString(env->isolate(), ptr->h_aliases[i]); in ParseGeneralReply()
1866 if (host->h_aliases != nullptr) { in safe_free_hostent()
1868 while (host->h_aliases[idx]) { in safe_free_hostent()
1869 free(host->h_aliases[idx++]); in safe_free_hostent()
[all …]
/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/porting/uniproton/kernel/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/liteos_m/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/libc-test/src/api/
Dnetdb.c13 F(char**, h_aliases) in f()
/third_party/musl/include/
Dnetdb.h97 char **h_aliases; member
/third_party/curl/lib/
Dcurl_addrinfo.c419 h->h_aliases = NULL; in Curl_ip2addr()
/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++) {
/third_party/rust/crates/libc/src/fuchsia/
Dmod.rs225 pub h_aliases: *mut *mut ::c_char,

12