Home
last modified time | relevance | path

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

/system/extras/tests/bionic/libc/common/
Dtest_gethostname.c36 char hostname[512]; in main() local
39 ret = gethostname(hostname, sizeof(hostname)); in main()
45 printf("gethostname() returned '%s'\n", hostname); in main()
Dtest_gethostbyname.c38 char* hostname = "localhost"; in main() local
43 hostname = argv[1]; in main()
45 hent = gethostbyname(hostname); in main()
47 printf("gethostbyname(%s) returned NULL !!\n", hostname); in main()
50 printf( "gethostbyname(%s) returned:\n", hostname); in main()
/system/netd/
DMDnsSdListener.h41 DNSServiceErrorType errorCode, const char *hostname, void *inContext);
44 uint32_t interface, DNSServiceErrorType errorCode, const char *hostname,
125 void setHostname(SocketClient *cli, int requestId, const char *hostname);
128 uint32_t protocol, const char *hostname);
DMDnsSdListener.cpp270 const char *interfaceName, uint32_t protocol, const char *hostname) { in getAddrInfo() argument
271 if (VDBG) ALOGD("getAddrInfo(%d, %s %d, %s)", requestId, interfaceName, protocol, hostname); in getAddrInfo()
283 hostname, &MDnsSdListenerGetAddrInfoCallback, context); in getAddrInfo()
299 uint32_t interface, DNSServiceErrorType errorCode, const char *hostname, in MDnsSdListenerGetAddrInfoCallback() argument
313 char *quotedHostname = SocketClient::quoteArg(hostname); in MDnsSdListenerGetAddrInfoCallback()
330 const char *hostname) { in setHostname() argument
331 if (VDBG) ALOGD("setHostname(%d, %s)", requestId, hostname); in setHostname()
341 DNSServiceErrorType result = DNSSetHostname(ref, nativeFlags, hostname, in setHostname()
357 DNSServiceErrorType errorCode, const char *hostname, void *inContext) { in MDnsSdListenerSetHostnameCallback() argument
366 char *quotedHostname = SocketClient::quoteArg(hostname); in MDnsSdListenerSetHostnameCallback()
[all …]
/system/core/adb/
Dadb_auth_host.c112 char hostname[1024], username[1024]; in get_user_info() local
116 ret = gethostname(hostname, sizeof(hostname)); in get_user_info()
119 strcpy(hostname, "unknown"); in get_user_info()
127 ret = snprintf(buf, len, " %s@%s", username, hostname); in get_user_info()
Dadb_client.h34 void adb_set_tcp_name(const char* hostname);
Dadb_client.c33 void adb_set_tcp_name(const char* hostname) in adb_set_tcp_name() argument
35 __adb_server_name = hostname; in adb_set_tcp_name()
Dservices.c61 char *hostname = cookie; in dns_service() local
66 hp = gethostbyname(hostname); in dns_service()
Dcommandline.c1007 const char *hostname = NULL; in adb_commandline() local
1010 hostname = argv[1]; in adb_commandline()
1014 hostname = argv[0] + 2; in adb_commandline()
1016 adb_set_tcp_name(hostname); in adb_commandline()
/system/core/init/
Dkeywords.h58 KEYWORD(hostname, COMMAND, 1, do_hostname)
Dreadme.txt152 hostname <name>
285 hostname localhost
/system/core/rootdir/
Dinit.rc265 hostname localhost