Home
last modified time | relevance | path

Searched refs:hostname (Results 1 – 5 of 5) sorted by relevance

/bionic/libc/dns/net/
Dgetaddrinfo.c407 const char *hostname, const char *servname, in android_getaddrinfo_proxy() argument
418 if ((hostname != NULL && in android_getaddrinfo_proxy()
419 strcspn(hostname, " \n\r\t^'\"") != strlen(hostname)) || in android_getaddrinfo_proxy()
433 hostname == NULL ? "^" : hostname, in android_getaddrinfo_proxy()
563 getaddrinfo(const char *hostname, const char *servname, in getaddrinfo() argument
566 return android_getaddrinfofornet(hostname, servname, hints, NETID_UNSET, MARK_UNSET, res); in getaddrinfo()
571 android_getaddrinfofornet(const char *hostname, const char *servname, in android_getaddrinfofornet() argument
581 return android_getaddrinfofornetcontext(hostname, servname, hints, &netcontext, res); in android_getaddrinfofornet()
586 android_getaddrinfofornetcontext(const char *hostname, const char *servname, in android_getaddrinfofornetcontext() argument
615 if (hostname == NULL && servname == NULL) in android_getaddrinfofornetcontext()
[all …]
/bionic/libc/dns/resolv/
Dres_data.c312 local_hostname_length(const char *hostname) { in local_hostname_length() argument
317 len_host = strlen(hostname); in local_hostname_length()
320 !strcasecmp(hostname + len_host - len_domain, _nres.defdname) && in local_hostname_length()
321 hostname[len_host - len_domain - 1] == '.') in local_hostname_length()
/bionic/libc/kernel/uapi/linux/
Dnfs4_mount.h39 struct nfs_string hostname; member
Dnfs_mount.h41 char hostname[NFS_MAXNAMLEN + 1]; member
/bionic/tests/
Dunistd_test.cpp733 char hostname[HOST_NAME_MAX + 1]; in TEST() local
734 memset(hostname, 0, sizeof(hostname)); in TEST()
737 ASSERT_EQ(0, gethostname(hostname, HOST_NAME_MAX)); in TEST()
741 ASSERT_EQ(0, gethostname(hostname, strlen(hostname) + 1)); in TEST()
746 ASSERT_EQ(0, strncmp(hostname, buf.nodename, SYS_NMLN)); in TEST()
747 ASSERT_GT(strlen(hostname), 0U); in TEST()
751 ASSERT_EQ(-1, gethostname(hostname, strlen(hostname))); in TEST()