/third_party/node/test/parallel/ |
D | test-url-parse-format.js | 21 hostname: 'evil-phisher', property 32 hostname: 'evil-phisher', property 45 hostname: 'evil-phisher', property 57 hostname: 'evil-phisher', property 68 hostname: 'www.example.com', property 78 hostname: 'www.example.com', property 88 hostname: 'www.example.com', property 99 hostname: 'www.example.com', property 110 hostname: 'www.example.com', property 121 hostname: 'www.example.com', property [all …]
|
D | test-url-format.js | 14 hostname: 'example.com', property 23 hostname: 'example.com', property 33 hostname: 'example.com', property 43 hostname: 'example.com', property 53 hostname: 'example.com', property 63 hostname: 'example.com', property 86 hostname: 'jabber.org' property 91 hostname: '127.0.0.1', property 98 hostname: 'foo', property 104 hostname: 'foo', property [all …]
|
D | test-dns-channel-cancel-promise.js | 27 const hostname = 'example0.org'; constant 30 resolver.resolve4(hostname), 34 hostname field 47 const hostname = `example${i}.org`; constant 51 resolver.resolve4(hostname), 55 hostname: hostname property
|
/third_party/node/lib/internal/dns/ |
D | promises.js | 43 this.reject(dnsException(err, 'getaddrinfo', this.hostname)); 53 this.reject(dnsException(err, 'getaddrinfo', this.hostname)); 71 function createLookupPromise(family, hostname, all, hints, verbatim) { argument 73 if (!hostname) { 74 emitInvalidHostnameWarning(hostname); 79 const matchedFamily = isIP(hostname); 82 const result = { address: hostname, family: matchedFamily }; 90 req.hostname = hostname; 95 const err = getaddrinfo(req, toASCII(hostname), family, hints, verbatim); 98 reject(dnsException(err, 'getaddrinfo', hostname)); [all …]
|
/third_party/ltp/testcases/kernel/containers/utsname/ |
D | utstest.c | 118 char hostname[HLEN], newhostname[HLEN], rhostname[HLEN]; in P1() local 130 gethostname(hostname, HLEN); in P1() 133 if (strcmp(hostname, rhostname) == 0) { in P1() 139 tsttype, hostname, rhostname); in P1() 141 gethostname(hostname, HLEN); in P1() 142 picknewhostname(hostname, newhostname); in P1() 160 gethostname(hostname, HLEN); in P1() 161 picknewhostname(hostname, newhostname); in P1() 178 if (strcmp(hostname, rhostname) == 0) { in P1() 185 tsttype, hostname, rhostname); in P1() [all …]
|
/third_party/curl/lib/ |
D | hostcheck.c | 65 static int hostmatch(char *hostname, char *pattern) in hostmatch() argument 72 size_t len = strlen(hostname); in hostmatch() 73 if(hostname[len-1]=='.') in hostmatch() 74 hostname[len-1] = 0; in hostmatch() 81 return strcasecompare(pattern, hostname) ? in hostmatch() 85 if(Curl_host_is_ipnum(hostname)) in hostmatch() 98 return strcasecompare(pattern, hostname) ? in hostmatch() 101 hostname_label_end = strchr(hostname, '.'); in hostmatch() 109 if(hostname_label_end - hostname < pattern_label_end - pattern) in hostmatch() 114 return strncasecompare(pattern, hostname, prefixlen) && in hostmatch() [all …]
|
D | hostip.c | 262 const char *hostname, in fetch_addr() argument 270 create_hostcache_id(hostname, port, entry_id, sizeof(entry_id)); in fetch_addr() 318 const char *hostname, in Curl_fetch_addr() argument 326 dns = fetch_addr(data, hostname, port); in Curl_fetch_addr() 418 const char *hostname, in Curl_cache_addr() argument 442 create_hostcache_id(hostname, port, entry_id, sizeof(entry_id)); in Curl_cache_addr() 540 bool Curl_host_is_ipnum(const char *hostname) in Curl_host_is_ipnum() argument 546 if(Curl_inet_pton(AF_INET, hostname, &in) > 0 in Curl_host_is_ipnum() 548 || Curl_inet_pton(AF_INET6, hostname, &in6) > 0 in Curl_host_is_ipnum() 573 const char *hostname, in Curl_resolv() argument [all …]
|
D | hostip4.c | 93 const char *hostname, in Curl_getaddrinfo() argument 105 ai = Curl_ipv4_resolve_r(hostname, port); in Curl_getaddrinfo() 107 infof(data, "Curl_ipv4_resolve_r failed for %s", hostname); in Curl_getaddrinfo() 123 struct Curl_addrinfo *Curl_ipv4_resolve_r(const char *hostname, in Curl_ipv4_resolve_r() argument 146 (void)Curl_getaddrinfo_ex(hostname, sbufptr, &hints, &ai); in Curl_ipv4_resolve_r() 167 h = gethostbyname_r(hostname, in Curl_ipv4_resolve_r() 186 (void)gethostbyname_r(hostname, in Curl_ipv4_resolve_r() 253 res = gethostbyname_r(hostname, in Curl_ipv4_resolve_r() 287 h = gethostbyname((void *)hostname); in Curl_ipv4_resolve_r()
|
D | urlapi.c | 431 char **hostname, in parse_hostname_login() argument 448 char *ptr = strchr(*hostname, '@'); in parse_hostname_login() 449 char *login = *hostname; in parse_hostname_login() 457 *hostname = ++ptr; in parse_hostname_login() 500 UNITTEST CURLUcode Curl_parse_port(struct Curl_URL *u, char *hostname, in Curl_parse_port() argument 511 if(1 == sscanf(hostname, "[%*45[0123456789abcdefABCDEF:.]%c%n", in Curl_parse_port() 514 portptr = &hostname[len]; in Curl_parse_port() 517 if(1 == sscanf(hostname + zonelen, "%*[^]]%c%n", &endbracket, &len)) { in Curl_parse_port() 520 portptr = &hostname[--zonelen + len + 1]; in Curl_parse_port() 537 portptr = strchr(hostname, ':'); in Curl_parse_port() [all …]
|
D | asyn-thread.c | 155 const char *hostname, int port, 164 char *hostname; /* hostname to resolve, Curl_async.hostname member 199 free(tsd->hostname); in destroy_thread_sync_data() 219 const char *hostname, in init_thread_sync_data() argument 259 tsd->hostname = strdup(hostname); in init_thread_sync_data() 260 if(!tsd->hostname) in init_thread_sync_data() 306 rc = Curl_getaddrinfo_ex(tsd->hostname, service, &tsd->hints, &tsd->res); in getaddrinfo_thread() 352 tsd->res = Curl_ipv4_resolve_r(tsd->hostname, tsd->port); in gethostbyname_thread() 421 free(async->hostname); in destroy_async_data() 422 async->hostname = NULL; in destroy_async_data() [all …]
|
/third_party/grpc/src/php/lib/Grpc/ |
D | BaseStub.php | 28 private $hostname; variable in Grpc\\BaseStub 37 * @param string $hostname 44 public function __construct($hostname, $opts, $channel = null) argument 54 $this->hostname = $hostname; 70 $this->channel = $this->call_invoker->createChannelFactory($hostname, $channel_opts); 85 $this->channel = static::getDefaultChannel($hostname, $opts); 116 public static function getDefaultChannel($hostname, array $opts) argument 119 return new Channel($hostname, $opts); 221 $hostname = $this->hostname_override; 223 $hostname = $this->hostname; [all …]
|
/third_party/glib/gio/ |
D | gresolver.c | 89 const gchar *hostname; local 96 g_variant_get (l->data, "(qqq&s)", &priority, &weight, &port, &hostname); 97 target = g_srv_target_new (hostname, port, priority, weight); 300 hostname_is_localhost (const char *hostname) in hostname_is_localhost() argument 302 size_t len = strlen (hostname); in hostname_is_localhost() 309 if (hostname[len - 1] == '.') in hostname_is_localhost() 315 p = hostname + len - 1; in hostname_is_localhost() 316 while (p >= hostname) in hostname_is_localhost() 323 else if (p == hostname) in hostname_is_localhost() 328 len -= p - hostname; in hostname_is_localhost() [all …]
|
/third_party/node/lib/ |
D | url.js | 65 this.hostname = null; 162 function isIpv6Hostname(hostname) { argument 164 StringPrototypeCharCodeAt(hostname, 0) === CHAR_LEFT_SQUARE_BRACKET && 165 StringPrototypeCharCodeAt(hostname, hostname.length - 1) === 371 if (typeof this.hostname !== 'string') 372 this.hostname = ''; 374 const hostname = this.hostname; 378 const ipv6Hostname = isIpv6Hostname(hostname); 382 rest = getHostname(this, rest, hostname); 385 if (this.hostname.length > hostnameMaxLen) { [all …]
|
D | dns.js | 71 return this.callback(dnsException(err, 'getaddrinfo', this.hostname)); 79 return this.callback(dnsException(err, 'getaddrinfo', this.hostname)); 97 function lookup(hostname, options, callback) { argument 104 if (hostname && typeof hostname !== 'string') { 105 throw new ERR_INVALID_ARG_TYPE('hostname', 'string', hostname); 126 if (!hostname) { 127 emitInvalidHostnameWarning(hostname); 136 const matchedFamily = isIP(hostname); 140 callback, null, [{ address: hostname, family: matchedFamily }]); 142 process.nextTick(callback, null, hostname, matchedFamily); [all …]
|
/third_party/toybox/toys/lsb/ |
D | hostname.c | 43 char *hostname = toybuf, *dot; local 47 if (TT.F && (hostname = xreadfile(TT.F, 0, 0))) { 48 if (!*chomp(hostname)) { 49 if (CFG_TOYBOX_FREE) free(hostname); 51 hostname = 0; 53 } else hostname = (FLAG(b) && !*toybuf) ? "localhost" : *toys.optargs; 56 if (hostname) { 57 if (sethostname(hostname, strlen(hostname))) 58 perror_exit("set '%s'", hostname);
|
/third_party/glib/glib/ |
D | ghostutils.c | 312 nameprep (const gchar *hostname, in nameprep() argument 326 name = remove_junk (hostname, len); in nameprep() 333 name = (gchar *)hostname; in nameprep() 348 if (name == (gchar *)hostname) in nameprep() 349 return len == -1 ? g_strdup (hostname) : g_strndup (hostname, len); in nameprep() 470 g_hostname_to_ascii (const gchar *hostname) in g_hostname_to_ascii() argument 500 strlen_greater_than (hostname, 4 * MAX (255, hostname_max_length_bytes))) in g_hostname_to_ascii() 503 label = name = nameprep (hostname, -1, &unicode); in g_hostname_to_ascii() 569 g_hostname_is_non_ascii (const gchar *hostname) in g_hostname_is_non_ascii() argument 571 return contains_non_ascii (hostname, -1); in g_hostname_is_non_ascii() [all …]
|
/third_party/libuv/src/unix/ |
D | getaddrinfo.c | 103 err = getaddrinfo(req->hostname, req->service, req->hints, &req->addrinfo); in uv__getaddrinfo_work() 119 else if (req->hostname) in uv__getaddrinfo_done() 120 uv__free(req->hostname); in uv__getaddrinfo_done() 126 req->hostname = NULL; in uv__getaddrinfo_done() 141 const char* hostname, in uv_getaddrinfo() argument 152 if (req == NULL || (hostname == NULL && service == NULL)) in uv_getaddrinfo() 161 if (hostname != NULL) { in uv_getaddrinfo() 162 rc = uv__idna_toascii(hostname, in uv_getaddrinfo() 163 hostname + strlen(hostname), in uv_getaddrinfo() 168 hostname = hostname_ascii; in uv_getaddrinfo() [all …]
|
/third_party/libsoup/libsoup/ |
D | soup-tld.c | 29 static const char *soup_tld_get_base_domain_internal (const char *hostname, 58 soup_tld_get_base_domain (const char *hostname, GError **error) in soup_tld_get_base_domain() argument 60 g_return_val_if_fail (hostname, NULL); in soup_tld_get_base_domain() 62 return soup_tld_get_base_domain_internal (hostname, error); in soup_tld_get_base_domain() 141 soup_tld_get_base_domain_internal (const char *hostname, GError **error) in soup_tld_get_base_domain_internal() argument 157 if (*hostname == '.') { in soup_tld_get_base_domain_internal() 164 if (g_hostname_is_ip_address (hostname)) { in soup_tld_get_base_domain_internal() 171 if (g_hostname_is_ascii_encoded (hostname)) { in soup_tld_get_base_domain_internal() 172 utf8_hostname = g_hostname_to_unicode (hostname); in soup_tld_get_base_domain_internal() 184 unregistrable_domain = psl_unregistrable_domain (psl, hostname); in soup_tld_get_base_domain_internal() [all …]
|
/third_party/ffmpeg/tests/ref/fate/ |
D | noproxy | 1 The pattern "(null)" does not match the hostname domain.com 2 The pattern "example.com domain.com" matches the hostname domain.com 3 The pattern "example.com other.com" does not match the hostname domain.com 4 The pattern "example.com,domain.com" matches the hostname domain.com 5 The pattern "example.com,domain.com" does not match the hostname otherdomain.com 6 The pattern "example.com, *.domain.com" matches the hostname sub.domain.com 7 The pattern "example.com, *.domain.com" matches the hostname domain.com 8 The pattern "example.com, .domain.com" matches the hostname domain.com 9 The pattern "*" matches the hostname domain.com
|
/third_party/node/deps/npm/node_modules/request/lib/ |
D | getProxyFromURI.js | 3 function formatHostname (hostname) { argument 5 return hostname.replace(/^\.*/, '.').toLowerCase() 16 return {hostname: zoneHost, port: zonePort, hasPort: hasPort} 21 var hostname = formatHostname(uri.hostname) 26 var isMatchedAt = hostname.indexOf(noProxyZone.hostname) 29 (isMatchedAt === hostname.length - noProxyZone.hostname.length)
|
/third_party/gettext/gettext-tools/src/ |
D | hostname.c | 254 char hostname[MAX_COMPUTERNAME_LENGTH+1]; in xgethostname() local 255 DWORD size = sizeof (hostname); in xgethostname() 257 if (!GetComputerName (hostname, &size)) in xgethostname() 259 return xstrdup (hostname); in xgethostname() 261 char hostname[MAXHOSTNAMELEN+1]; in xgethostname() 263 if (gethostname (hostname, MAXHOSTNAMELEN) < 0) in xgethostname() 265 hostname[MAXHOSTNAMELEN] = '\0'; in xgethostname() 266 return xstrdup (hostname); in xgethostname() 321 char *hostname; in print_hostname() local 328 hostname = xgethostname (); in print_hostname() [all …]
|
/third_party/node/deps/npm/node_modules/node-gyp/lib/ |
D | proxy.js | 6 function formatHostname (hostname) { argument 8 return hostname.replace(/^\.*/, '.').toLowerCase() 19 return { hostname: zoneHost, port: zonePort, hasPort: hasPort } 24 var hostname = formatHostname(uri.hostname) 29 var isMatchedAt = hostname.indexOf(noProxyZone.hostname) 32 (isMatchedAt === hostname.length - noProxyZone.hostname.length)
|
/third_party/node/deps/npm/node_modules/osenv/ |
D | README.md | 14 var h = osenv.hostname(function (er, hostname) { 15 h = hostname 17 // This will still cause it to be memoized, so calling osenv.hostname() 23 osenv.hostname(function (er, hostname) { 24 if (er) console.error('error looking up hostname') 25 else console.log('this machine calls itself %s', hostname) 29 ## osenv.hostname() 31 The machine name. Calls `hostname` if not found.
|
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lecp/ |
D | README.md | 22 [2019/03/30 22:09:09:2812] NOTICE: builder.hostname = 'learn', timeout = 1800, targets (2) 27 {"schema":"com-warmcat-sai-builder","hostname":"learn","nspawn_timeout":1800,"targets":[{"name":"ta… 29 [2019/03/30 22:09:09:2932] NOTICE: builder.hostname = 'learn', timeout = 0, targets (3) 35 {"schema":"com-warmcat-sai-builder","hostname":"learn","nspawn_timeout":0,"targets":[{"name":"targe… 37 [2019/03/30 22:09:09:2959] NOTICE: builder.hostname = 'learn', timeout = 1800, targets (2) 43 {"schema":"com-warmcat-sai-builder","hostname":"learn","nspawn_timeout":1800,"targets":[{"name":"ta… 45 [2019/03/30 22:09:09:2971] NOTICE: builder.hostname = 'learn', timeout = 1800, targets (0) 48 {"schema":"com-warmcat-sai-builder","hostname":"learn","nspawn_timeout":1800} 50 [2019/03/30 22:09:09:2978] NOTICE: builder.hostname = '', timeout = 0, targets (0) 53 {"schema":"com-warmcat-sai-builder","hostname":"","nspawn_timeout":0}
|
/third_party/mindspore/mindspore/dataset/engine/ |
D | cache_client.py | 53 …def __init__(self, session_id, size=0, spilling=False, hostname=None, port=None, num_connections=N… argument 61 if hostname is not None: 62 type_check(hostname, (str,), "hostname") 74 self.hostname = hostname 78 …self.cache_client = CacheClient(session_id, size, spilling, hostname, port, num_connections, prefe… 93 new_cache.hostname = copy.deepcopy(self.hostname, memodict)
|