Searched refs:hostname (Results 1 – 12 of 12) sorted by relevance
/system/extras/tests/bionic/libc/common/ |
D | test_gethostname.c | 36 char hostname[512]; in main() local 39 ret = gethostname(hostname, sizeof(hostname)); in main() 45 printf("gethostname() returned '%s'\n", hostname); in main()
|
D | test_gethostbyname.c | 38 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/ |
D | MDnsSdListener.h | 41 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);
|
D | MDnsSdListener.cpp | 270 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/ |
D | adb_auth_host.c | 112 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()
|
D | adb_client.h | 34 void adb_set_tcp_name(const char* hostname);
|
D | adb_client.c | 33 void adb_set_tcp_name(const char* hostname) in adb_set_tcp_name() argument 35 __adb_server_name = hostname; in adb_set_tcp_name()
|
D | services.c | 61 char *hostname = cookie; in dns_service() local 66 hp = gethostbyname(hostname); in dns_service()
|
D | commandline.c | 1007 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/ |
D | keywords.h | 58 KEYWORD(hostname, COMMAND, 1, do_hostname)
|
D | readme.txt | 152 hostname <name> 285 hostname localhost
|
/system/core/rootdir/ |
D | init.rc | 265 hostname localhost
|