Home
last modified time | relevance | path

Searched refs:hostname (Results 1 – 4 of 4) 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/kernel/uapi/linux/
Dnfs4_mount.h27 struct nfs_string hostname; member
Dnfs_mount.h29 char hostname[NFS_MAXNAMLEN + 1]; member
/bionic/tests/
Dunistd_test.cpp749 char hostname[HOST_NAME_MAX + 1]; in TEST() local
750 memset(hostname, 0, sizeof(hostname)); in TEST()
753 ASSERT_EQ(0, gethostname(hostname, HOST_NAME_MAX)); in TEST()
756 ASSERT_EQ(0, gethostname(hostname, strlen(hostname) + 1)); in TEST()
761 ASSERT_EQ(0, strncmp(hostname, buf.nodename, sizeof(buf.nodename))); in TEST()
762 ASSERT_GT(strlen(hostname), 0U); in TEST()
766 ASSERT_EQ(-1, gethostname(hostname, strlen(hostname))); in TEST()