Searched refs:hostname (Results 1 - 9 of 9) sorted by relevance
/system/extras/tests/bionic/libc/common/ |
H A D | test_gethostname.c | 36 char hostname[512]; local 39 ret = gethostname(hostname, sizeof(hostname)); 45 printf("gethostname() returned '%s'\n", hostname);
|
H A D | test_gethostbyname.c | 38 char* hostname = "localhost"; local 43 hostname = argv[1]; 45 hent = gethostbyname(hostname); 47 printf("gethostbyname(%s) returned NULL !!\n", hostname); 50 printf( "gethostbyname(%s) returned:\n", hostname);
|
/system/core/adb/ |
H A D | adb_client.h | 34 void adb_set_tcp_name(const char* hostname);
|
H A D | adb_auth_host.c | 115 char hostname[1024], username[1024]; local 119 strncpy(hostname, getenv("HOSTNAME"), sizeof(hostname)); 120 hostname[sizeof(hostname)-1] = '\0'; 126 ret = gethostname(hostname, sizeof(hostname)); 129 strcpy(hostname, "unknown"); 146 ret = snprintf(buf, len, " %s@%s", username, hostname);
|
H A D | adb_client.c | 33 void adb_set_tcp_name(const char* hostname) argument 35 __adb_server_name = hostname;
|
H A D | commandline.c | 1207 const char *hostname = NULL; local 1210 hostname = argv[1]; 1214 hostname = argv[0] + 2; 1216 adb_set_tcp_name(hostname);
|
/system/netd/server/ |
H A 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);
|
H A D | MDnsSdListener.cpp | 271 const char *interfaceName, uint32_t protocol, const char *hostname) { 272 if (VDBG) ALOGD("getAddrInfo(%d, %s %d, %s)", requestId, interfaceName, protocol, hostname); 284 hostname, &MDnsSdListenerGetAddrInfoCallback, context); 300 uint32_t /* interface */, DNSServiceErrorType errorCode, const char *hostname, 314 char *quotedHostname = SocketClient::quoteArg(hostname); 331 const char *hostname) { 332 if (VDBG) ALOGD("setHostname(%d, %s)", requestId, hostname); 342 DNSServiceErrorType result = DNSSetHostname(ref, nativeFlags, hostname, 358 DNSServiceErrorType errorCode, const char *hostname, void *inContext) { 367 char *quotedHostname = SocketClient::quoteArg(hostname); 270 getAddrInfo(SocketClient *cli, int requestId, const char *interfaceName, uint32_t protocol, const char *hostname) argument 299 MDnsSdListenerGetAddrInfoCallback(DNSServiceRef , DNSServiceFlags , uint32_t , DNSServiceErrorType errorCode, const char *hostname, const struct sockaddr *const sa, uint32_t ttl, void *inContext) argument 330 setHostname(SocketClient *cli, int requestId, const char *hostname) argument 357 MDnsSdListenerSetHostnameCallback(DNSServiceRef , DNSServiceFlags , DNSServiceErrorType errorCode, const char *hostname, void *inContext) argument 489 char *hostname = argv[3]; local 500 char *hostname = argv[3]; local [all...] |
/system/core/init/ |
H A D | keywords.h | 64 KEYWORD(hostname, COMMAND, 1, do_hostname)
|
Completed in 68 milliseconds