/third_party/node/deps/cares/src/lib/ |
D | ares_parse_ptr_reply.c | 41 struct hostent **host) in ares_parse_ptr_reply() 46 struct hostent *hostent = NULL; in ares_parse_ptr_reply() local 80 hostent = ares_malloc(sizeof(*hostent)); in ares_parse_ptr_reply() 81 if (hostent == NULL) { in ares_parse_ptr_reply() 86 memset(hostent, 0, sizeof(*hostent)); in ares_parse_ptr_reply() 88 hostent->h_addr_list = ares_malloc(2 * sizeof(*hostent->h_addr_list)); in ares_parse_ptr_reply() 89 if (hostent->h_addr_list == NULL) { in ares_parse_ptr_reply() 93 memset(hostent->h_addr_list, 0, 2 * sizeof(*hostent->h_addr_list)); in ares_parse_ptr_reply() 95 hostent->h_addr_list[0] = ares_malloc((size_t)addrlen); in ares_parse_ptr_reply() 96 if (hostent->h_addr_list[0] == NULL) { in ares_parse_ptr_reply() [all …]
|
D | ares_parse_ns_reply.c | 43 struct hostent **host) in ares_parse_ns_reply() 48 struct hostent *hostent = NULL; in ares_parse_ns_reply() local 74 hostent = ares_malloc(sizeof(*hostent)); in ares_parse_ns_reply() 75 if (hostent == NULL) { in ares_parse_ns_reply() 80 memset(hostent, 0, sizeof(*hostent)); in ares_parse_ns_reply() 82 hostent->h_addr_list = ares_malloc(sizeof(*hostent->h_addr_list)); in ares_parse_ns_reply() 83 if (hostent->h_addr_list == NULL) { in ares_parse_ns_reply() 87 hostent->h_addr_list[0] = NULL; in ares_parse_ns_reply() 88 hostent->h_addrtype = AF_INET; in ares_parse_ns_reply() 89 hostent->h_length = sizeof(struct in_addr); in ares_parse_ns_reply() [all …]
|
D | ares_gethostbyname.c | 51 static void sort_addresses(const struct hostent *host, 53 static void sort6_addresses(const struct hostent *host, 69 struct hostent *hostent = NULL; in ares_gethostbyname_callback() local 73 status = (int)ares__addrinfo2hostent(result, AF_UNSPEC, &hostent); in ares_gethostbyname_callback() 79 if (status == ARES_SUCCESS && hostent && in ares_gethostbyname_callback() 80 (!hostent->h_addr_list || !hostent->h_addr_list[0])) { in ares_gethostbyname_callback() 84 if (status == ARES_SUCCESS && ghbn_arg->channel->nsort && hostent) { in ares_gethostbyname_callback() 85 if (hostent->h_addrtype == AF_INET6) { in ares_gethostbyname_callback() 86 sort6_addresses(hostent, ghbn_arg->channel->sortlist, in ares_gethostbyname_callback() 89 if (hostent->h_addrtype == AF_INET) { in ares_gethostbyname_callback() [all …]
|
D | ares__hosts_file.c | 861 int family, struct hostent **hostent) in ares__hosts_entry_to_hostent() argument 868 *hostent = ares_malloc_zero(sizeof(**hostent)); in ares__hosts_entry_to_hostent() 869 if (*hostent == NULL) { in ares__hosts_entry_to_hostent() 874 (*hostent)->h_addrtype = (HOSTENT_ADDRTYPE_TYPE)family; in ares__hosts_entry_to_hostent() 898 (*hostent)->h_addrtype = (HOSTENT_ADDRTYPE_TYPE)addr.family; in ares__hosts_entry_to_hostent() 901 temp = ares_realloc_zero((*hostent)->h_addr_list, in ares__hosts_entry_to_hostent() 902 (idx + 1) * sizeof(*(*hostent)->h_addr_list), in ares__hosts_entry_to_hostent() 903 (idx + 2) * sizeof(*(*hostent)->h_addr_list)); in ares__hosts_entry_to_hostent() 909 (*hostent)->h_addr_list = temp; in ares__hosts_entry_to_hostent() 911 (*hostent)->h_addr_list[idx] = ares_malloc(ptr_len); in ares__hosts_entry_to_hostent() [all …]
|
D | ares_gethostbyaddr.c | 66 struct hostent *host); 69 struct hostent **host); 129 struct hostent *host; in next_lookup() 166 struct hostent *host; in addr_callback() 189 struct hostent *host) in end_aquery() 201 struct hostent **host) in file_lookup()
|
/third_party/curl/lib/ |
D | hostip4.c | 129 struct hostent *h = NULL; in Curl_ipv4_resolve_r() 130 struct hostent *buf = NULL; in Curl_ipv4_resolve_r() 167 (struct hostent *)buf, in Curl_ipv4_resolve_r() 168 (char *)buf + sizeof(struct hostent), in Curl_ipv4_resolve_r() 169 CURL_HOSTENT_SIZE - sizeof(struct hostent), in Curl_ipv4_resolve_r() 186 (struct hostent *)buf, in Curl_ipv4_resolve_r() 187 (char *)buf + sizeof(struct hostent), in Curl_ipv4_resolve_r() 188 CURL_HOSTENT_SIZE - sizeof(struct hostent), in Curl_ipv4_resolve_r() 245 (sizeof(struct hostent) + sizeof(struct hostent_data))) { in Curl_ipv4_resolve_r() 253 (struct hostent *)buf, in Curl_ipv4_resolve_r() [all …]
|
D | amigaos.c | 131 struct hostent *h; in Curl_ipv4_resolve_r() 136 struct hostent *buf; in Curl_ipv4_resolve_r() 141 (char *)buf + sizeof(struct hostent), in Curl_ipv4_resolve_r() 142 CURL_HOSTENT_SIZE - sizeof(struct hostent), in Curl_ipv4_resolve_r()
|
/third_party/musl/porting/uniproton/kernel/include/ |
D | netdb.h | 69 struct hostent { struct 93 struct hostent *gethostent (void); argument 116 struct hostent *gethostbyname (const char *); 117 struct hostent *gethostbyaddr (const void *, socklen_t, int); 133 int gethostbyname_r(const char *, struct hostent *, char *, size_t, struct hostent **, int *); 134 int gethostbyname2_r(const char *, int, struct hostent *, char *, size_t, struct hostent **, int *); 135 struct hostent *gethostbyname2(const char *, int); 136 int gethostbyaddr_r(const void *, socklen_t, int, struct hostent *, char *, size_t, struct hostent …
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/ |
D | netdb.h | 69 struct hostent { struct 93 struct hostent *gethostent (void); argument 116 struct hostent *gethostbyname (const char *); 117 struct hostent *gethostbyaddr (const void *, socklen_t, int); 133 int gethostbyname_r(const char *, struct hostent *, char *, size_t, struct hostent **, int *); 134 int gethostbyname2_r(const char *, int, struct hostent *, char *, size_t, struct hostent **, int *); 135 struct hostent *gethostbyname2(const char *, int); 136 int gethostbyaddr_r(const void *, socklen_t, int, struct hostent *, char *, size_t, struct hostent …
|
/third_party/musl/porting/liteos_m/kernel/include/ |
D | netdb.h | 69 struct hostent { struct 93 struct hostent *gethostent (void); argument 116 struct hostent *gethostbyname (const char *); 117 struct hostent *gethostbyaddr (const void *, socklen_t, int); 133 int gethostbyname_r(const char *, struct hostent *, char *, size_t, struct hostent **, int *); 134 int gethostbyname2_r(const char *, int, struct hostent *, char *, size_t, struct hostent **, int *); 135 struct hostent *gethostbyname2(const char *, int); 136 int gethostbyaddr_r(const void *, socklen_t, int, struct hostent *, char *, size_t, struct hostent …
|
/third_party/musl/porting/liteos_a/kernel/include/ |
D | netdb.h | 69 struct hostent { struct 93 struct hostent *gethostent (void); argument 116 struct hostent *gethostbyname (const char *); 117 struct hostent *gethostbyaddr (const void *, socklen_t, int); 133 int gethostbyname_r(const char *, struct hostent *, char *, size_t, struct hostent **, int *); 134 int gethostbyname2_r(const char *, int, struct hostent *, char *, size_t, struct hostent **, int *); 135 struct hostent *gethostbyname2(const char *, int); 136 int gethostbyaddr_r(const void *, socklen_t, int, struct hostent *, char *, size_t, struct hostent …
|
/third_party/musl/include/ |
D | netdb.h | 95 struct hostent { struct 119 struct hostent *gethostent (void); argument 142 struct hostent *gethostbyname (const char *); 143 struct hostent *gethostbyaddr (const void *, socklen_t, int); 159 int gethostbyname_r(const char *, struct hostent *, char *, size_t, struct hostent **, int *); 160 int gethostbyname2_r(const char *, int, struct hostent *, char *, size_t, struct hostent **, int *); 161 struct hostent *gethostbyname2(const char *, int); 162 int gethostbyaddr_r(const void *, socklen_t, int, struct hostent *, char *, size_t, struct hostent …
|
/third_party/musl/libc-test/src/functionalext/supplement/network/network_gtest/ |
D | netdb_test.cpp | 275 hostent* hptr = gethostbyname("localhost"); 292 hostent ht; 293 hostent* hptr1 = nullptr; 308 hostent ht2; 309 hostent* hptr2 = nullptr; 331 hostent ht; 334 hostent* hptr1 = nullptr; 352 hostent* hptr = gethostbyname2("localhost", AF_INET); 369 hostent ht; 370 hostent* hptr = nullptr; [all …]
|
/third_party/musl/libc-test/src/functionalext/supplement/manual/network/ |
D | gethostbyname_r.c | 37 struct hostent h; in gethostbyname_r_0100() 40 struct hostent *res = NULL; in gethostbyname_r_0100() 59 struct hostent h; in gethostbyname_r_0200() 62 struct hostent *res = NULL; in gethostbyname_r_0200()
|
D | gethostbyname2.c | 35 struct hostent *hptr; in gethostbyname2_0100() 52 struct hostent *hptr; in gethostbyname2_0200() 69 struct hostent *hptr; in gethostbyname2_0300() 85 struct hostent *hptr; in gethostbyname2_0400()
|
D | gethostbyname2_r.c | 29 struct hostent h, *res = NULL; in gethostbyname2_r_0100() 46 struct hostent h, *res = NULL; in gethostbyname2_r_0200() 63 struct hostent h, *res = NULL; in gethostbyname2_r_0300() 78 struct hostent h, *res = NULL; in gethostbyname2_r_0400()
|
/third_party/lwip/src/include/lwip/ |
D | netdb.h | 92 struct hostent { struct 122 struct hostent *lwip_gethostbyname(const char *name); 123 int lwip_gethostbyname_r(const char *name, struct hostent *ret, char *buf, 124 size_t buflen, struct hostent **result, int *h_errnop);
|
/third_party/cares/include/ |
D | ares.h | 281 struct hostent; 299 struct hostent *hostent); 442 struct hostent **host); 647 struct hostent **host, 653 struct hostent **host, 666 struct hostent **host); 670 struct hostent **host); 702 CARES_EXTERN void ares_free_hostent(struct hostent *host);
|
/third_party/musl/src/network/ |
D | gethostbyname2.c | 8 struct hostent *gethostbyname2(const char *name, int af) in gethostbyname2() 10 static struct hostent *h; in gethostbyname2() 12 struct hostent *res; in gethostbyname2()
|
D | gethostbyaddr.c | 7 struct hostent *gethostbyaddr(const void *a, socklen_t l, int af) in gethostbyaddr() 9 static struct hostent *h; in gethostbyaddr() 11 struct hostent *res; in gethostbyaddr()
|
/third_party/musl/porting/liteos_a/user/src/network/ |
D | gethostbyaddr.c | 7 struct hostent *gethostbyaddr(const void *a, socklen_t l, int af) in gethostbyaddr() 9 static struct hostent *h; in gethostbyaddr() 11 struct hostent *res; in gethostbyaddr()
|
D | gethostbyname_r.c | 7 struct hostent *h, char *buf, size_t buflen, in gethostbyname_r() 8 struct hostent **res, int *err) in gethostbyname_r()
|
/third_party/nghttp2/src/ |
D | shrpx_dns_resolver.cc | 58 void host_cb(void *arg, int status, int timeouts, hostent *hostent) { in host_cb() argument 60 resolv->on_result(status, hostent); in host_cb() 288 void DNSResolver::on_result(int status, hostent *hostent) { in on_result() argument 302 auto ap = *hostent->h_addr_list; in on_result() 311 switch (hostent->h_addrtype) { in on_result()
|
/third_party/node/deps/cares/include/ |
D | ares.h | 342 struct hostent; 360 struct hostent *hostent); 486 struct hostent **host); 679 struct hostent **host, 684 struct hostent **host, 693 struct hostent **host); 696 struct hostent **host); 721 CARES_EXTERN void ares_free_hostent(struct hostent *host);
|
/third_party/node/src/ |
D | cares_wrap.h | 36 inline void safe_free_hostent(struct hostent* host); 38 using HostEntPointer = DeleteFnPtr<hostent, ares_free_hostent>; 39 using SafeHostEntPointer = DeleteFnPtr<hostent, safe_free_hostent>; 75 struct hostent* dest, in cares_wrap_hostent_cpy() 76 const struct hostent* src) { in cares_wrap_hostent_cpy() 332 struct hostent* host) { in Callback() 336 struct hostent* host_copy = nullptr; in Callback() 338 host_copy = node::Malloc<hostent>(1); in Callback()
|