Home
last modified time | relevance | path

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

/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.h44 struct nfs_string hostname; member
Dnfs_mount.h46 char hostname[NFS_MAXNAMLEN + 1]; member
/bionic/libc/dns/net/
Dgetaddrinfo.c405 const char *hostname, const char *servname, in android_getaddrinfo_proxy() argument
416 if ((hostname != NULL && in android_getaddrinfo_proxy()
417 strcspn(hostname, " \n\r\t^'\"") != strlen(hostname)) || in android_getaddrinfo_proxy()
432 hostname == NULL ? "^" : hostname, in android_getaddrinfo_proxy()
560 getaddrinfo(const char *hostname, const char *servname, in getaddrinfo() argument
563 return android_getaddrinfofornet(hostname, servname, hints, NETID_UNSET, MARK_UNSET, res); in getaddrinfo()
567 android_getaddrinfofornet(const char *hostname, const char *servname, in android_getaddrinfofornet() argument
577 return android_getaddrinfofornetcontext(hostname, servname, hints, &netcontext, res); in android_getaddrinfofornet()
581 android_getaddrinfofornetcontext(const char *hostname, const char *servname, in android_getaddrinfofornetcontext() argument
610 if (hostname == NULL && servname == NULL) in android_getaddrinfofornetcontext()
[all …]
/bionic/tests/
Dunistd_test.cpp498 char hostname[HOST_NAME_MAX + 1]; in TEST() local
499 memset(hostname, 0, sizeof(hostname)); in TEST()
502 ASSERT_EQ(0, gethostname(hostname, HOST_NAME_MAX)); in TEST()
506 ASSERT_EQ(0, gethostname(hostname, strlen(hostname) + 1)); in TEST()
511 ASSERT_EQ(0, strncmp(hostname, buf.nodename, SYS_NMLN)); in TEST()
512 ASSERT_GT(strlen(hostname), 0U); in TEST()
516 ASSERT_EQ(-1, gethostname(hostname, strlen(hostname))); in TEST()