/resolv/ |
A D | tst-resolv-res_init-multi.c | 42 for (int i = 0; i < 3; ++i) in thread_func() local 72 for (int i = 0; i < thread_count; ++i) in do_test() local 75 *ptype = i % type_count; in do_test() 76 threads[i] = xpthread_create (NULL, thread_func, ptype); in do_test() 78 for (int i = 0; i < type_count; ++i) in do_test() local 81 *ptype = i; in do_test() 84 for (int i = 0; i < thread_count; ++i) in do_test() local 85 xpthread_join (threads[i]); in do_test()
|
A D | tst-resolv-res_ninit.c | 45 for (size_t i = 0; i < count; ++i) in do_test() local 47 TEST_VERIFY (res_ninit (array + i) == 0); in do_test() 48 TEST_VERIFY (array[i].nscount > 0); in do_test() 49 struct resolv_context *ctx = __resolv_context_get_override (array + i); in do_test() 51 TEST_VERIFY (ctx->resp == array + i); in do_test() 52 if (i == 0) in do_test() 63 for (size_t i = 1; i < count; ++i) in do_test() local 65 TEST_VERIFY (sort_res_state (array + i - 1, array + i) < 0); in do_test() 66 for (size_t i = 0; i < count; ++i) in do_test() local 67 res_nclose (array + i); in do_test()
|
A D | resolv_conf.c | 258 for (size_t i = 0; i < nserv; ++i) in resolv_conf_matches() local 299 for (size_t i = 0; i < conf->search_list_size; ++i) in resolv_conf_matches() local 328 for (size_t i = 0; i < nsort; ++i) in resolv_conf_matches() local 375 for (size_t i = 0; i < init->nameserver_list_size; ++i) in __resolv_conf_allocate() local 386 for (size_t i = 0; i < init->search_list_size; ++i) in __resolv_conf_allocate() local 426 for (size_t i = 0; i < init->nameserver_list_size; ++i) in __resolv_conf_allocate() local 448 for (size_t i = 0; i < init->sort_list_size; ++i) in __resolv_conf_allocate() local 455 for (size_t i = 0; i < init->search_list_size; ++i) in __resolv_conf_allocate() local 488 for (size_t i = 0; i < nserv; i++) in update_from_conf() local 525 for (i = 0; i < size && i < MAXDNSRCH; ++i) in update_from_conf() [all …]
|
A D | ns_samedomain.c | 46 int diff, i, escaped; in ns_samedomain() local 56 for (i = la - 2; i >= 0; i--) in ns_samedomain() 57 if (a[i] == '\\') { in ns_samedomain() 72 for (i = lb - 2; i >= 0; i--) in ns_samedomain() 73 if (b[i] == '\\') { in ns_samedomain() 121 for (i = diff - 2; i >= 0; i--) in ns_samedomain() 122 if (a[i] == '\\') { in ns_samedomain()
|
A D | inet_ntop.c | 111 int i; in inet_ntop6() local 119 for (i = 0; i < NS_IN6ADDRSZ; i += 2) in inet_ntop6() 120 words[i / 2] = (src[i] << 8) | src[i + 1]; in inet_ntop6() 125 for (i = 0; i < (NS_IN6ADDRSZ / NS_INT16SZ); i++) { in inet_ntop6() 126 if (words[i] == 0) { in inet_ntop6() 128 cur.base = i, cur.len = 1; in inet_ntop6() 150 for (i = 0; i < (NS_IN6ADDRSZ / NS_INT16SZ); i++) { in inet_ntop6() 153 i < (best.base + best.len)) { in inet_ntop6() 154 if (i == best.base) in inet_ntop6() 159 if (i != 0) in inet_ntop6() [all …]
|
A D | ns_date.c | 46 int mdays, i; in ns_datetosecs() local 80 for (i = 0; i < time.tm_mon; i++) in ns_datetosecs() 81 mdays += days_per_month[i]; in ns_datetosecs() 88 for (i = 70; i < time.tm_year; i++) in ns_datetosecs() 89 if (isleap(1900+i)) in ns_datetosecs() 103 int i; in datepart() local 105 for (i = 0; i < size; i++) { in datepart() 106 if (!isdigit((unsigned char)(buf[i]))) in datepart() 108 result = (result * 10) + buf[i] - '0'; in datepart()
|
A D | tst-p_secstodate.c | 59 for (size_t i = 0; i < array_length (tests); i++) in do_test() local 61 char *p = __p_secstodate (tests[i].in); in do_test() 62 printf ("Test %zu: %lu -> %s\n", i, tests[i].in, p); in do_test() 63 if (strcmp (p, tests[i].out) != 0) in do_test() 65 printf ("test %zu failed", i); in do_test()
|
A D | tst-res_hconf_reorder.c | 72 unsigned int i; in do_test() local 78 for (i = 0; i < N; ++i) in do_test() 80 int rc = pthread_create (&thr[i], NULL, resolve, NULL); in do_test() 89 for (i = 0; i < N; ++i) in do_test() 92 int rc = pthread_join (thr[i], &retval); in do_test() 101 printf ("thread %u exit status %p\n", i, retval); in do_test()
|
A D | res_hconf.c | 194 size_t i; in parse_line() local 205 for (i = 0; i < sizeof (cmd) / sizeof (cmd[0]); ++i) in parse_line() 210 c = &cmd[i]; in parse_line() 358 int i, j; in _res_hconf_reorder_addrs() local 383 int sd, num, i; in _res_hconf_reorder_addrs() local 422 for (cur_ifr = ifr, i = 0; i < num; in _res_hconf_reorder_addrs() 505 for (i = 0; hp->h_addr_list[i]; ++i) in _res_hconf_reorder_addrs() 538 int i; in _res_hconf_trim_domain() local 542 for (i = 0; i < _res_hconf.num_trimdomains; ++i) in _res_hconf_trim_domain() 562 int i; in _res_hconf_trim_domains() local [all …]
|
A D | tst-resolv-threads.c | 242 for (int i = 0; i < queries_per_thread; ++i) in byname() local 246 i, this_thread); in byname() 259 qname, ret, e, AF_INET, i); in byname() 285 for (int i = 0; i < queries_per_thread; ++i) in thread_byname2_af_inet6() local 289 i, this_thread); in thread_byname2_af_inet6() 307 for (int i = 0; i < queries_per_thread; ++i) in gai() local 311 i, this_thread); in gai() 412 for (int i = 0; i < thread_count; ++i) in do_test() local 413 threads[i] = xpthread_create (NULL, thread_funcs[i], NULL); in do_test() 415 for (int i = 0; i < thread_count; ++i) in do_test() local [all …]
|
A D | mapv4v6addr.h | 59 int i; in map_v4v6_address() local 65 for (i = 0; i < 10; i++) in map_v4v6_address()
|
A D | tst-resolv-search.c | 71 for (int i = 0; items[i].name != NULL; ++i) in find_name() local 73 if (strcmp (name, items[i].name) == 0) in find_name() 74 return i; in find_name() 116 for (int i = 0; i < items[index].response; ++i) in response() local 124 char addr[4] = {10, index, i >> 8, i}; in response() 132 0, index + 1, (i + 1) >> 8, i + 1}; in response() 153 for (int i = 0; i < items[index].response; ++i) in format_expected_1() local 160 index, (i >> 8) & 0xff, i & 0xff); in format_expected_1() 164 index + 1, i + 1); in format_expected_1()
|
A D | tst-resolv-res_init-skeleton.c | 141 for (int i = 0; i < MAXDNSRCH && resp->dnsrch[i] != NULL; ++i) in print_resp() local 144 fputs (resp->dnsrch[i], fp); in print_resp() 153 size_t i = 0; in print_resp() local 160 ++i; in print_resp() 168 for (int i = 0; i < resp->nsort && i < MAXRESOLVSORT; ++i) in print_resp() local 184 for (size_t i = 0; i < resp->nscount; ++i) in print_resp() local 195 addr = resp->_u._ext.nsaddrs[i]; in print_resp() 200 addr = &resp->nsaddr_list[i]; in print_resp() 224 size_t i = 0; in print_resp() local 258 ++i; in print_resp() [all …]
|
A D | nsap_addr.c | 68 int i; in inet_nsap_ntoa() local 82 for (i = 0; i < binlen; i++) { in inet_nsap_ntoa() 87 if (((i % 2) == 0 && (i + 1) < binlen)) in inet_nsap_ntoa()
|
A D | ns_parse.c | 92 int i; in libresolv_hidden_def() local 103 for (i = 0; i < ns_s_max; i++) { in libresolv_hidden_def() 106 NS_GET16(handle->_counts[i], msg); in libresolv_hidden_def() 108 for (i = 0; i < ns_s_max; i++) in libresolv_hidden_def() 109 if (handle->_counts[i] == 0) in libresolv_hidden_def() 110 handle->_sections[i] = NULL; in libresolv_hidden_def() 112 int b = ns_skiprr(msg, eom, (ns_sect)i, in libresolv_hidden_def() 113 handle->_counts[i]); in libresolv_hidden_def() 117 handle->_sections[i] = msg; in libresolv_hidden_def()
|
A D | tst-bug18665.c | 55 for (int i = 0; i < address_count; ++i) in response() local 62 char ipv4[4] = {10, i >> 8, i, 0}; in response() 71 i >> 8, i, 0}; in response()
|
A D | mapv4v6hostent.h | 71 int i = sizeof (align) - ((u_long) *bpp % sizeof (align)); in map_v4v6_hostent() local 73 if (*lenp < (i + IN6ADDRSZ)) in map_v4v6_hostent() 76 *bpp += i; in map_v4v6_hostent() 77 *lenp -= i; in map_v4v6_hostent()
|
A D | tst-leaks2.c | 30 for (int i = 0; i < 20; ++i) in do_test() local
|
A D | tst-resolv-rotate.c | 240 for (size_t i = 0; i < resolv_max_test_servers; ++i) in do_test() local 241 query_counts[i] = 0; in do_test() 246 for (int i = 0; i < nscount; ++i) in do_test() local 248 if (i != disable_server && i != drop_server in do_test() 249 && query_counts[i] == 0) in do_test() 253 nscount, i); in do_test()
|
A D | tst-resolv-canonname.c | 72 for (int i = 0; i < 30000; ++i) in response() local 88 for (int i = 0; i < 30000; ++i) in response() local 147 for (size_t i = 0; i < to_fill; ++i) in response() local 304 for (int i = 102; i <= 107; ++i) in do_test() local 305 check (i, NULL); in do_test()
|
A D | res_init.c | 658 if (i <= RES_MAXNDOTS) in res_setoptions() 659 parser->template.ndots = i; in res_setoptions() 666 if (i <= RES_MAXRETRANS) in res_setoptions() 674 if (i <= RES_MAXRETRY) in res_setoptions() 675 parser->template.retry = i; in res_setoptions() 700 for (int i = 0; i < noptions; ++i) in res_setoptions() local 701 if (strncmp (cp, options[i].str, options[i].len) == 0) in res_setoptions() 703 if (options[i].clear) in res_setoptions() 719 uint32_t i = ntohl (in.s_addr); in net_mask() local 721 if (IN_CLASSA (i)) in net_mask() [all …]
|
A D | resolv_context.h | 106 for (size_t i = 0; ctx->resp->dnsrch[i] != NULL && i < MAXDNSRCH; ++i) in libc_hidden_proto() local 107 if (i == index) in libc_hidden_proto() 108 return ctx->resp->dnsrch[i]; in libc_hidden_proto()
|
A D | tst-bug18665-tcp.c | 117 for (int i = 1; i <= address_count; ++i) in response() local 124 char ipv4[4] = {response_number, i >> 8, i, 0}; in response() 134 i >> 8, i, 0, 0}; in response()
|
A D | base64.c | 131 size_t i; in b64_ntop() local 160 for (i = 0; i < srclength; i++) in b64_ntop() 161 input[i] = *src++; in b64_ntop()
|
/resolv/nss_dns/ |
A D | dns-canon.c | 70 for (int i = 0; i < nqtypes; ++i) in _nss_dns_getcanonname_r() local 72 int r = __res_context_query (ctx, name, ns_c_in, qtypes[i], in _nss_dns_getcanonname_r() 123 if (type == qtypes[i]) in _nss_dns_getcanonname_r()
|