Home
last modified time | relevance | path

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

12

/third_party/musl/src/network/
H A Dgethostbyname2_r.c66 h->h_name = h->h_aliases[0] = buf; in gethostbyname2_r()
67 strcpy(h->h_name, canon); in gethostbyname2_r()
68 buf += strlen(h->h_name)+1; in gethostbyname2_r()
70 if (strcmp(h->h_name, name)) { in gethostbyname2_r()
H A Dgethostbyaddr_r.c68 h->h_name = h->h_aliases[0]; in gethostbyaddr_r()
/third_party/musl/libc-test/src/functionalext/supplement/manual/network/
H A Dgethostbyname2_r.c36 EXPECT_STREQ("gethostbyname2_r_0100", h.h_name, "127.0.0.1"); in gethostbyname2_r_0100()
53 EXPECT_TRUE("gethostbyname2_r_0200", strcmp(h.h_name, "::1") == 0); in gethostbyname2_r_0200()
84 EXPECT_STREQ("gethostbyname2_r_0400", "localhost", h.h_name); in gethostbyname2_r_0400()
H A Dgethostbyname2.c41 EXPECT_STREQ("gethostbyname2_0100", hptr->h_name, "127.0.0.1"); in gethostbyname2_0100()
58 EXPECT_STREQ("gethostbyname2_0200", hptr->h_name, "::1"); in gethostbyname2_0200()
H A Dgethostbyaddr_r.c35 EXPECT_TRUE("gethostbyaddr_r_0100", strcmp(h.h_name, "localhost") == 0); in gethostbyaddr_r_0100()
H A Dgethostbyaddr.c39 EXPECT_STREQ("gethostbyaddre_0100", hptr->h_name, "localhost"); in gethostbyaddre_0100()
H A Dgethostbyname_r.c47 EXPECT_STREQ("gethostbyname_r_0100", h.h_name, "127.0.0.1"); in gethostbyname_r_0100()
/third_party/node/deps/cares/src/lib/
H A Dares__addrinfo2hostent.c136 (*host)->h_name = ares_strdup(ai->cnames->name); in ares__addrinfo2hostent()
137 if ((*host)->h_name == NULL && ai->cnames->name) { in ares__addrinfo2hostent()
141 (*host)->h_name = ares_strdup(ai->name); in ares__addrinfo2hostent()
142 if ((*host)->h_name == NULL && ai->name) { in ares__addrinfo2hostent()
H A Dares_parse_ptr_reply.c182 hostent->h_name = ares_strdup(hostname); in ares_parse_ptr_reply()
183 if (hostent->h_name == NULL) { in ares_parse_ptr_reply()
H A Dares_parse_ns_reply.c96 hostent->h_name = ares_strdup(hostname); in ares_parse_ns_reply()
97 if (hostent->h_name == NULL) { in ares_parse_ns_reply()
H A Dares_free_hostent.c45 ares_free(host->h_name); in ares_free_hostent()
/third_party/python/Modules/
H A Dgetnameinfo.c191 p = strchr(hp->h_name, '.');
194 if (strlen(hp->h_name) > hostlen) {
200 strcpy(host, hp->h_name);
H A Dgetaddrinfo.c508 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) {
510 GET_CANONNAME(cur, hp->h_name);
578 if ((hp->h_name == NULL) || (hp->h_name[0] == 0) ||
622 GET_CANONNAME(top, hp->h_name);
/third_party/curl/lib/
H A Dcurl_addrinfo.c243 * char *h_name;
273 DEBUGASSERT((he->h_name != NULL) && (he->h_addr_list != NULL)); in Curl_he2ai()
277 size_t namelen = strlen(he->h_name) + 1; /* include null-terminator */ in Curl_he2ai()
295 memcpy(ai->ai_canonname, he->h_name, namelen); in Curl_he2ai()
418 h->h_name = hoststr; in Curl_ip2addr()
/third_party/lwip/src/api/
H A Dnetdb.c113 s_hostent.h_name = s_hostname; in lwip_gethostbyname()
122 LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_name == %s\n", s_hostent.h_name)); in lwip_gethostbyname()
214 ret->h_name = hostname; in lwip_gethostbyname_r()
/third_party/node/src/
H A Dcares_wrap.h81 dest->h_name = nullptr; in cares_wrap_hostent_cpy()
83 /* copy `h_name` */ in cares_wrap_hostent_cpy()
84 size_t name_size = strlen(src->h_name) + 1; in cares_wrap_hostent_cpy()
85 dest->h_name = node::Malloc<char>(name_size); in cares_wrap_hostent_cpy()
86 memcpy(dest->h_name, src->h_name, name_size); in cares_wrap_hostent_cpy()
/third_party/ffmpeg/libavformat/
H A Dos_support.c128 ai->ai_canonname = h ? av_strdup(h->h_name) : NULL; in ff_getaddrinfo()
160 snprintf(host, hostlen, "%s", ent->h_name); in ff_getnameinfo()
/third_party/toybox/toys/lsb/
H A Dhostname.c66 snprintf(toybuf, sizeof(toybuf), "%s", h->h_name); in hostname_main()
/third_party/ltp/testcases/network/sockets/
H A DltpClient.c123 hostEntry->h_name, in main()
235 progName, hostEntry->h_name, in main()
635 printf("(%s)\n", hostEntry2->h_name); in ltp_traceroute()
/third_party/musl/porting/liteos_a/user/src/network/
H A Dgethostbyaddr_r.c67 h->h_name = h->h_aliases[0]; in gethostbyaddr_r()
/third_party/lwip/src/include/lwip/
H A Dnetdb.h93 char *h_name; /* Official name of the host. */ member
/third_party/musl/porting/liteos_a/kernel/include/
H A Dnetdb.h70 char *h_name; member
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dnetdb.h70 char *h_name; member
/third_party/musl/porting/uniproton/kernel/include/
H A Dnetdb.h70 char *h_name; member
/third_party/musl/porting/liteos_m/kernel/include/
H A Dnetdb.h70 char *h_name; member

Completed in 17 milliseconds

12