/external/python/cpython3/Modules/ |
D | getnameinfo.c | 189 p = strchr(hp->h_name, '.'); 192 if (strlen(hp->h_name) > hostlen) { 198 strcpy(host, hp->h_name);
|
D | getaddrinfo.c | 505 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) { 507 GET_CANONNAME(cur, hp->h_name); 575 if ((hp->h_name == NULL) || (hp->h_name[0] == 0) || 619 GET_CANONNAME(top, hp->h_name);
|
/external/python/cpython2/Modules/ |
D | getnameinfo.c | 189 p = strchr(hp->h_name, '.'); 192 if (strlen(hp->h_name) > hostlen) { 198 strcpy(host, hp->h_name);
|
D | getaddrinfo.c | 505 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) { 507 GET_CANONNAME(cur, hp->h_name); 575 if ((hp->h_name == NULL) || (hp->h_name[0] == 0) || 619 GET_CANONNAME(top, hp->h_name);
|
/external/openssh/openbsd-compat/ |
D | fake-rfc2553.c | 75 if (strlcpy(host, hp->h_name, hostlen) >= hostlen) in getnameinfo() 210 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) { in getaddrinfo()
|
/external/libcups/cups/ |
D | http-addr.c | 425 strlcpy(name, host->h_name, (size_t)namelen); in httpAddrLookup() 716 cg->hostent.h_name = (char *)name; in httpGetHostByName() 753 cg->hostent.h_name = (char *)name; in httpGetHostByName() 859 if ((host = gethostbyname(s)) != NULL && host->h_name) in httpGetHostname() 865 strlcpy(s, host->h_name, (size_t)slen); in httpGetHostname()
|
D | auth.c | 546 if ((host = gethostbyname(http->gsshost)) != NULL && host->h_name) in cups_gss_getname() 552 strlcpy(http->gsshost, host->h_name, sizeof(http->gsshost)); in cups_gss_getname()
|
/external/curl/lib/ |
D | curl_addrinfo.c | 294 DEBUGASSERT((he->h_name != NULL) && (he->h_addr_list != NULL)); in Curl_he2ai() 311 ai->ai_canonname = strdup(he->h_name); in Curl_he2ai() 446 h->h_name = hoststr; in Curl_ip2addr()
|
/external/iputils/ |
D | tracepath.c | 185 if (h && idna_to_unicode_lzlz(h->h_name, &idn, 0) != IDNA_SUCCESS) in recverr() 189 print_host(abuf, h ? (idn ? idn : h->h_name) : abuf, show_both); in recverr() 191 print_host(h ? (idn ? idn : h->h_name) : abuf, abuf, show_both); in recverr()
|
D | traceroute6.c | 461 hostname = (char *)hp->h_name; in main() 917 if (idna_to_unicode_lzlz(hp->h_name, &s, 0) != IDNA_SUCCESS) in print() 922 Printf(" %s (%s)", hp ? (s ? s : hp->h_name) : hostname, pa); in print()
|
D | ping.c | 297 if (idna_to_unicode_lzlz(hp->h_name, &hnamebuf, 0) != IDNA_SUCCESS) { in main() 298 hnamebuf = strdup(hp->h_name); in main() 305 strncpy(hnamebuf, hp->h_name, sizeof(hnamebuf) - 1); in main() 1325 if (idna_to_unicode_lzlz(hp->h_name, &s, 0) != IDNA_SUCCESS) in pr_addr() 1330 snprintf(buf, sizeof(buf), "%s (%s)", s ? s : hp->h_name, in pr_addr()
|
D | clockdiff.c | 607 myname = strdup(hp->h_name); in main() 614 hisname = strdup(hp->h_name); in main()
|
D | ping6.c | 1826 || idna_to_unicode_lzlz(hp->h_name, &s, 0) != IDNA_SUCCESS in pr_addr() 1831 return hp ? (s ? s : hp->h_name) : pr_addr_n(addr); in pr_addr()
|
/external/toybox/toys/lsb/ |
D | hostname.c | 61 snprintf(toybuf, sizeof(toybuf), "%s", h->h_name);
|
/external/ltp/testcases/network/sockets/ |
D | ltpClient.c | 123 hostEntry->h_name, in main() 235 progName, hostEntry->h_name, in main() 635 printf("(%s)\n", hostEntry2->h_name); in ltp_traceroute()
|
/external/ppp/pppd/plugins/radius/ |
D | ip_util.c | 113 return ((hp==NULL)?"unknown":hp->h_name); in rc_ip_hostname()
|
/external/mdnsresponder/mDNSWindows/mdnsNSP/ |
D | mdnsNSP.c | 1553 he->h_name = (char *)( dst - base ); in QueryCopyQuerySetTo() 1896 if ( strstr( node->m_host.h_name, ".local" ) == NULL ) in IsLocalName() 1929 if ( strcmp( node->m_host.h_name, name ) != 0 ) in IsSameName() 2046 if ( info->m_host.h_name ) in HostsFileInfoFree() 2048 free( info->m_host.h_name ); in HostsFileInfoFree() 2049 info->m_host.h_name = NULL; in HostsFileInfoFree() 2149 (*hInfo)->m_host.h_name = (char*) malloc( strlen( tok ) + 1 ); in HostsFileNext() 2150 require_action( (*hInfo)->m_host.h_name, exit, err = kNoMemoryErr ); in HostsFileNext() 2151 strcpy( (*hInfo)->m_host.h_name, tok ); in HostsFileNext()
|
/external/ltp/testcases/network/multicast/mc_gethost/ |
D | mc_gethost.c | 86 printf("name: %s\n", host->h_name); in main()
|
/external/tcpdump/ |
D | addrtoname.c | 110 host.h_name = hostbuf; in win32_gethostbyaddr() 123 strcpy(host.h_name, hname); in win32_gethostbyaddr() 259 p->name = strdup(hp->h_name); in getname() 314 p->name = strdup(hp->h_name); in getname6()
|
/external/mdnsresponder/mDNSPosix/ |
D | nss_mdns.c | 959 result->hostent->h_name [0] = 0; in mdns_lookup_addr() 1447 result->hostent->h_name = in add_hostname_len() 1476 char * hostname = result->hostent->h_name; in add_hostname_or_alias() 1523 result->hostent->h_name = result->header->hostname; in init_result()
|
/external/iptables/extensions/ |
D | libxt_mangle.c | 301 return (char *) host->h_name; in addr_to_host()
|
/external/iptables/iptables/ |
D | nft-arp.c | 63 return (char *) host->h_name; in addr_to_host()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_platform_limits_posix.h | 670 char *h_name; member
|
/external/libevent/ |
D | evutil.c | 1185 if (res && ((hints->ai_flags & EVUTIL_AI_CANONNAME) && ent->h_name)) { in addrinfo_from_hostent() 1186 res->ai_canonname = mm_strdup(ent->h_name); in addrinfo_from_hostent()
|
/external/iproute2/lib/ |
D | utils.c | 935 n->name = strdup(h_ent->h_name); in resolve_address()
|