Home
last modified time | relevance | path

Searched refs:name (Results 1 – 24 of 24) sorted by relevance

/resolv/
A Dtst-resolv-search.c30 const char *name; member
69 find_name (const char *name) in find_name() argument
71 for (int i = 0; items[i].name != NULL; ++i) in find_name()
73 if (strcmp (name, items[i].name) == 0) in find_name()
76 if (strcmp (name, "example.com") == 0 in find_name()
273 do_both (const char *name, const char *fqdn) in do_both() argument
275 do_get (name, fqdn, AF_INET); in do_both()
276 do_get (name, fqdn, AF_INET6); in do_both()
277 do_gai (name, fqdn, AF_INET); in do_both()
278 do_gai (name, fqdn, AF_INET6); in do_both()
[all …]
A Dres_hostalias.c26 const char *name, char *dst, size_t siz) in context_hostalias_common() argument
33 const char *result = __res_context_hostalias (ctx, name, dst, siz); in context_hostalias_common()
39 res_hostalias (res_state statp, const char *name, char *dst, size_t siz) in res_hostalias() argument
42 (__resolv_context_get_override (statp), name, dst, siz); in res_hostalias()
46 hostalias (const char *name) in hostalias() argument
50 (__resolv_context_get (), name, abuf, sizeof (abuf)); in hostalias()
A Dtst-resolv-basic.c123 check_h (const char *name, int family, const char *expected) in check_h() argument
150 name, offset, size); in check_h()
190 check_ai_hints (const char *name, const char *service, in check_ai_hints() argument
196 int ret = getaddrinfo (name, service, &hints, &ai); in check_ai_hints()
204 check_ai (const char *name, const char *service, in check_ai() argument
207 return check_ai_hints (name, service, in check_ai()
290 char *name = xasprintf ("%s%s.example", in test_nodata_nxdomain() local
308 check_ai (name, "80", family, expected); in test_nodata_nxdomain()
315 check_ai_hints (name, "80", hints, expected); in test_nodata_nxdomain()
317 check_ai_hints (name, "80", hints, expected); in test_nodata_nxdomain()
[all …]
A Dres_query.c94 const char *name, const char *domain,
353 for (cp = name; *cp != '\0'; cp++) in __res_context_search()
356 if (cp > name && *--cp == '.') in __res_context_search()
428 (ctx, name, dname, class, type, in __res_context_search()
499 (ctx, name, NULL, class, type, in __res_context_search()
582 const char *name, const char *domain, in __res_context_querydomain() argument
595 n = strlen(name); in __res_context_querydomain()
605 longname = name; in __res_context_querydomain()
607 n = strlen(name); in __res_context_querydomain()
613 char *p = __stpcpy (nbuf, name); in __res_context_querydomain()
[all …]
A Dtst-ns_name_compress.c28 test_exact_fit (const char *name, size_t length) in test_exact_fit() argument
34 int ret = ns_name_compress (name, buf, length, in test_exact_fit()
39 printf ("error: ns_name_compress for %s/%zu failed\n", name, length); in test_exact_fit()
46 name, length, ret); in test_exact_fit()
52 name, length); in test_exact_fit()
A Dtst-resolv-res_init-skeleton.c86 fprintf (fp, " %s", name); in print_option_flag()
157 if (name == NULL) in print_resp()
271 const char *name; member
422 {.name = "empty file",
462 {.name = "basic",
481 {.name = "basic no-reload",
503 {.name = "whitespace",
521 {.name = "domain",
529 {.name = "domain space",
537 {.name = "domain tab",
[all …]
A Dtst-resolv-rotate.c90 check_forward_1 (const char *name, int family) in check_forward_1() argument
93 if (strncmp (name, "2.", 2) == 0) in check_forward_1()
100 "name: %s\naddress: 192.0.2.%d\n", name, lsb); in check_forward_1()
103 "name: %s\naddress: 2001:db8::%d\n", name, lsb); in check_forward_1()
143 struct hostent *e = gethostbyname (name); in check_forward_1()
144 check_hostent (name, e, expected_hostent_v4); in check_forward_1()
149 struct hostent *e = gethostbyname2 (name, family); in check_forward_1()
150 check_hostent (name, e, expected_hostent); in check_forward_1()
157 check_hostent (name, e, expected_hostent); in check_forward_1()
167 int ret = getaddrinfo (name, "80", &hints, &ai); in check_forward_1()
[all …]
A Dcompat-gethnamaddr.c89 const char *name, int af);
441 const char *name, int af) in res_gethostbyname2_context() argument
478 if (strchr (name, '.') != NULL in res_gethostbyname2_context()
480 name = cp; in res_gethostbyname2_context()
486 if (isdigit(name[0])) in res_gethostbyname2_context()
487 for (cp = name;; ++cp) { in res_gethostbyname2_context()
518 if ((isxdigit(name[0]) && strchr(name, ':') != NULL) || in res_gethostbyname2_context()
519 name[0] == ':') in res_gethostbyname2_context()
520 for (cp = name;; ++cp) { in res_gethostbyname2_context()
782 _gethtbyname (const char *name) in _gethtbyname() argument
[all …]
A Dres_debug.c335 char name[MAXDNAME]; in p_cdnname() local
338 if ((n = __libc_dn_expand (msg, msg + len, cp, name, sizeof name)) < 0) in p_cdnname()
340 if (name[0] == '\0') in p_cdnname()
343 fputs(name, file); in p_cdnname()
379 char name[MAXDNAME]; in libresolv_hidden_def() local
382 n = p_fqnname(cp, msg, MAXCDNAME, name, sizeof name); in libresolv_hidden_def()
385 fputs(name, file); in libresolv_hidden_def()
508 if (strcasecmp (name, syms->name) == 0) { in sym_ston()
1031 len = strlen(name); in libresolv_hidden_def()
1034 if (name[i] == '.') in libresolv_hidden_def()
[all …]
A Dns_print.c110 if (*name == '\0') { in libresolv_hidden_def()
119 name[len] == '\0')) && name[len - 1] != '.') { in libresolv_hidden_def()
623 while (*name != '\0') { in libresolv_hidden_def()
625 return (name - oname - (name > oname)); in libresolv_hidden_def()
626 while (*name != '\0') { in libresolv_hidden_def()
627 if (*name == '\\') { in libresolv_hidden_def()
628 name++; in libresolv_hidden_def()
630 if (*name == '\0') in libresolv_hidden_def()
633 name++; in libresolv_hidden_def()
636 name++; in libresolv_hidden_def()
[all …]
A Dresolv-deprecated.c45 res_nameinquery (const char *name, int type, int class, in res_nameinquery() argument
48 return __libc_res_nameinquery (name, type, class, buf, eom); in res_nameinquery()
A Dres_nameinquery.c90 __libc_res_nameinquery (const char *name, int type, int class, in __libc_res_nameinquery() argument
110 && __libc_ns_samename (tname, name) == 1) in __libc_res_nameinquery()
A Dres_context_hostalias.c95 const char *name, char *dst, size_t siz) in __res_context_hostalias() argument
114 if (__libc_ns_samename (buf, name) == 1) in __res_context_hostalias()
A Dres_init.c301 #define MATCH(line, name) \ in res_vinit_1() argument
302 (!strncmp ((line), name, sizeof (name) - 1) \ in res_vinit_1()
303 && ((line)[sizeof (name) - 1] == ' ' \ in res_vinit_1()
304 || (line)[sizeof (name) - 1] == '\t')) in res_vinit_1()
A Dres_hconf.c68 const char name[11]; member
207 if (__strncasecmp (start, cmd[i].name, len) == 0 in parse_line()
208 && strlen (cmd[i].name) == len) in parse_line()
A Dtst-resolv-ai_idn-common.c254 check_ai (const char *name, int ai_flags, const char *expected) in check_ai() argument
263 char *query = xasprintf ("%s:80 AF_INET/0x%x", name, ai_flags); in check_ai()
264 int ret = getaddrinfo (name, "80", &hints, &ai); in check_ai()
A Dresolv.h99 char * name; /* Its symbolic name, like "MX" */ member
A Dns_parse.c158 handle->_msg_ptr, rr->name, NS_MAXDNAME); in libresolv_hidden_def()
A Dtst-resolv-canonname.c36 (*getcanonname) (const char *name, char *buffer, size_t buflen,
A DMakefile53 res-name-checking \
/resolv/nss_dns/
A Ddns-host.c129 const char *name, int af,
174 const char *name, int af, struct hostent *result, in libc_hidden_def()
214 if (strchr (name, '.') == NULL in libc_hidden_def()
216 name = cp; in libc_hidden_def()
283 check_name (const char *name, int *h_errnop) in check_name() argument
285 if (__libc_res_hnok (name)) in check_name()
352 if (strchr (name, '.') == NULL) in libc_hidden_def()
357 name = cp; in libc_hidden_def()
379 resplen2, name, pat, buffer, buflen, in libc_hidden_def()
1207 (*pat)->name = NULL; in gaih_getanswer_slice()
[all …]
A Ddns-canon.c49 _nss_dns_getcanonname_r (const char *name, char *buffer, size_t buflen, in _nss_dns_getcanonname_r() argument
72 int r = __res_context_query (ctx, name, ns_c_in, qtypes[i], in _nss_dns_getcanonname_r()
A Ddns-network.c106 _nss_dns_getnetbyname_r (const char *name, struct netent *result, in _nss_dns_getnetbyname_r() argument
131 (ctx, name, C_IN, T_PTR, net_buffer.buf->buf, in _nss_dns_getnetbyname_r()
/resolv/arpa/
A Dnameser.h124 char name[NS_MAXDNAME]; member
133 #define ns_rr_name(rr) (((rr).name[0] != '\0') ? (rr).name : ".")
208 char name[NS_MAXDNAME], alg[NS_MAXDNAME]; member

Completed in 52 milliseconds