Searched refs:hostname (Results 1 - 7 of 7) sorted by relevance

/system/extras/tests/bionic/libc/common/
H A Dtest_gethostname.c36 char hostname[512]; local
39 ret = gethostname(hostname, sizeof(hostname));
45 printf("gethostname() returned '%s'\n", hostname);
H A Dtest_gethostbyname.c38 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/netd/
H A 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);
H A DMDnsSdListener.cpp270 const char *interfaceName, uint32_t protocol, const char *hostname) {
271 if (VDBG) ALOGD("getAddrInfo(%d, %s %d, %s)", requestId, interfaceName, protocol, hostname);
283 hostname, &MDnsSdListenerGetAddrInfoCallback, context);
299 uint32_t interface, DNSServiceErrorType errorCode, const char *hostname,
313 char *quotedHostname = SocketClient::quoteArg(hostname);
330 const char *hostname) {
331 if (VDBG) ALOGD("setHostname(%d, %s)", requestId, hostname);
341 DNSServiceErrorType result = DNSSetHostname(ref, nativeFlags, hostname,
357 DNSServiceErrorType errorCode, const char *hostname, void *inContext) {
366 char *quotedHostname = SocketClient::quoteArg(hostname);
269 getAddrInfo(SocketClient *cli, int requestId, const char *interfaceName, uint32_t protocol, const char *hostname) argument
298 MDnsSdListenerGetAddrInfoCallback(DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interface, DNSServiceErrorType errorCode, const char *hostname, const struct sockaddr *const sa, uint32_t ttl, void *inContext) argument
329 setHostname(SocketClient *cli, int requestId, const char *hostname) argument
356 MDnsSdListenerSetHostnameCallback(DNSServiceRef sdRef, DNSServiceFlags flags, DNSServiceErrorType errorCode, const char *hostname, void *inContext) argument
470 char *hostname = argv[3]; local
481 char *hostname = argv[3]; local
[all...]
/system/core/adb/
H A Dadb_auth_host.c112 char hostname[1024], username[1024]; local
116 ret = gethostname(hostname, sizeof(hostname));
119 strcpy(hostname, "unknown");
127 ret = snprintf(buf, len, " %s@%s", username, hostname);
H A Dservices.c61 char *hostname = cookie; local
66 hp = gethostbyname(hostname);
/system/core/init/
H A Dkeywords.h58 KEYWORD(hostname, COMMAND, 1, do_hostname)

Completed in 96 milliseconds