Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 349) sorted by relevance

12345678910>>...14

/curl/tests/libtest/
H A Dlib557.c153 i++; us_test[i].num = 0x0001U; us_test[i].expected = "1"; in test_unsigned_short_formatting()
154 i++; us_test[i].num = 0x0000U; us_test[i].expected = "0"; in test_unsigned_short_formatting()
158 for(i = 1; i <= num_ushort_tests; i++) { in test_unsigned_short_formatting()
170 i, us_test[i].expected, us_test[i].result); in test_unsigned_short_formatting()
232 for(i = 1; i <= num_sshort_tests; i++) { in test_signed_short_formatting()
244 i, ss_test[i].expected, ss_test[i].result); in test_signed_short_formatting()
382 for(i = 1; i <= num_uint_tests; i++) { in test_unsigned_int_formatting()
610 for(i = 1; i <= num_sint_tests; i++) { in test_signed_int_formatting()
759 for(i = 1; i <= num_ulong_tests; i++) { in test_unsigned_long_formatting()
987 for(i = 1; i <= num_slong_tests; i++) { in test_signed_long_formatting()
[all …]
H A Dlib3207.c91 int i; in test_thread() local
95 for(i = 0; i < PER_THREAD_SIZE; i++) { in test_thread()
147 int i; in execute() local
150 for(i = 0; i < CURL_LOCK_DATA_LAST - 1; i++) { in execute()
158 for(i = 0; i < THREAD_SIZE; i++) { in execute()
161 for(i = 0; i < THREAD_SIZE; i++) { in execute()
169 for(i = 0; i < CURL_LOCK_DATA_LAST - 1; i++) { in execute()
180 for(i = 0; i < THREAD_SIZE; i++) { in execute()
202 for(i = 0; i < THREAD_SIZE; i++) { in test()
205 ctx[i].thread_id = i; in test()
[all …]
H A Dlib3026.c78 for(i = 0; i < tid_count; i++) { in test()
89 tid_count = i; in test()
93 ths[i] = th; in test()
97 for(i = 0; i < tid_count; i++) { in test()
99 CloseHandle((HANDLE)ths[i]); in test()
103 i, (int) results[i], curl_easy_strerror(results[i])); in test()
143 for(i = 0; i < tid_count; i++) { in test()
146 res = pthread_create(&tids[i], NULL, run_thread, &results[i]); in test()
150 tid_count = i; in test()
157 for(i = 0; i < tid_count; i++) { in test()
[all …]
H A Dlib526.c62 int i; in test() local
64 for(i = 0; i < NUM_HANDLES; i++) in test()
65 curl[i] = NULL; in test()
72 for(i = 0; i < NUM_HANDLES; i++) { in test()
73 easy_init(curl[i]); in test()
150 for(i = 0; i < NUM_HANDLES; i++) { in test()
152 curl_easy_cleanup(curl[i]); in test()
167 for(i = 0; i < NUM_HANDLES; i++) in test()
168 curl_easy_cleanup(curl[i]); in test()
178 for(i = 0; i < NUM_HANDLES; i++) in test()
[all …]
H A Dlib1506.c40 int i; in test() local
50 for(i = 0; i < NUM_HANDLES; i++) { in test()
52 i + 1, port, address); in test()
71 for(i = 0; i < NUM_HANDLES; i++) { in test()
73 easy_init(curl[i]); in test()
77 i + 1, port, i + 1); in test()
90 for(i = 0; i < NUM_HANDLES; i++) { in test()
92 multi_add_handle(m, curl[i]); in test()
128 for(i = 0; i < NUM_HANDLES; i++) { in test()
129 curl_multi_remove_handle(m, curl[i]); in test()
[all …]
H A Dlib2404.c40 int i; in test() local
67 for(i = 0; i < NUM_HANDLES; i++) { in test()
69 easy_init(curl[i]); in test()
73 port, i + 1); in test()
86 easy_setopt(curl[i], CURLOPT_HEADER, 1L); in test()
90 easy_setopt(curl[i], CURLOPT_STREAM_WEIGHT, (long)128 + i); in test()
95 for(i = 0; i < NUM_HANDLES; i++) { in test()
97 multi_add_handle(m, curl[i]); in test()
133 for(i = 0; i < NUM_HANDLES; i++) { in test()
134 curl_multi_remove_handle(m, curl[i]); in test()
[all …]
H A Dlib2502.c41 int i; in test() local
68 for(i = 0; i < NUM_HANDLES; i++) { in test()
70 easy_init(curl[i]); in test()
74 port, i + 1); in test()
88 easy_setopt(curl[i], CURLOPT_VERBOSE, 1L); in test()
90 easy_setopt(curl[i], CURLOPT_HEADER, 1L); in test()
97 for(i = 0; i < NUM_HANDLES; i++) { in test()
99 multi_add_handle(m, curl[i]); in test()
135 for(i = 0; i < NUM_HANDLES; i++) { in test()
136 curl_multi_remove_handle(m, curl[i]); in test()
[all …]
H A Dlib2402.c40 int i; in test() local
67 for(i = 0; i < NUM_HANDLES; i++) { in test()
69 easy_init(curl[i]); in test()
73 port, i + 1); in test()
84 easy_setopt(curl[i], CURLOPT_VERBOSE, 1L); in test()
86 easy_setopt(curl[i], CURLOPT_HEADER, 1L); in test()
93 for(i = 0; i < NUM_HANDLES; i++) { in test()
95 multi_add_handle(m, curl[i]); in test()
131 for(i = 0; i < NUM_HANDLES; i++) { in test()
132 curl_multi_remove_handle(m, curl[i]); in test()
[all …]
/curl/scripts/
H A Dschemetable.c98 int i; in showtable() local
99 for(i = 0; scheme[i].n; ++i) in showtable()
100 num[i] = calc(scheme[i].n, init, shift); in showtable()
101 for(i = 0; scheme[i].n; ++i) in showtable()
102 ix[i] = num[i] % try; in showtable()
116 for(i = 0; i < try; i++) { in showtable()
154 for(i = 0; scheme[i].n; ++i) { in main()
174 for(i = 0; scheme[i].n; ++i) { in main()
181 for(i = 0; scheme[i].n; ++i) { in main()
182 ix[i] = num[i] % try; in main()
[all …]
/curl/tests/unit/
H A Dunit1309.c43 int i; in splayprint() local
49 for(i = 0; i < d; i++) in splayprint()
80 int i, j; variable
85 for(i = 0; i < NUM_NODES; i++) {
90 storage[i] = key.tv_usec;
91 Curl_splayset(&nodes[i], &storage[i]);
98 for(i = 0; i < NUM_NODES; i++) {
115 for(i = 0; i < NUM_NODES; i++) {
124 Curl_splayset(&nodes[i * 3 + j], &storage[i * 3 + j]);
130 for(i = 0; i <= 1100; i += 100) {
[all …]
H A Dunit1614.c54 int i; variable
134 for(i = 0; list4[i].a; i++) {
135 bool match = Curl_cidr4_match(list4[i].a, list4[i].n, list4[i].bits);
138 list4[i].a, list4[i].n, list4[i].bits,
144 for(i = 0; list6[i].a; i++) {
145 bool match = Curl_cidr6_match(list6[i].a, list6[i].n, list6[i].bits);
148 list6[i].a, list6[i].n, list6[i].bits,
154 for(i = 0; list[i].a; i++) {
155 bool match = Curl_check_noproxy(list[i].a, list[i].n);
156 if(match != list[i].match) {
[all …]
H A Dunit1395.c48 unsigned int i; variable
80 for(i = 0; i < sizeof(pairs)/sizeof(pairs[0]); i++) {
82 int err = dedotdotify(pairs[i].input, strlen(pairs[i].input), &out);
86 if(out && pairs[i].output && strcmp(out, pairs[i].output)) {
88 i, pairs[i].input, out, pairs[i].output);
92 else if((!out && pairs[i].output) ||
93 (out && !pairs[i].output)) {
95 i, pairs[i].input, out ? out : "(null)",
96 pairs[i].output ? pairs[i].output : "(null)");
101 fprintf(stderr, "Test %u: OK\n", i);
H A Dunit1607.c111 int i; variable
117 for(i = 0; i < testnum; ++i) {
119 int addressnum = sizeof(tests[i].address) / sizeof(*tests[i].address);
140 entry_id = (void *)aprintf("%s:%d", tests[i].host, tests[i].port);
170 __FILE__, __LINE__, i, ipaddress, i, j);
178 __FILE__, __LINE__, i, i, j, tests[i].address[j]);
186 __FILE__, __LINE__, i, ipaddress, i, j, tests[i].address[j]);
191 if(port != tests[i].port) {
194 __FILE__, __LINE__, i, i, j, port, i, tests[i].port);
202 __FILE__, __LINE__, i, i);
[all …]
H A Dunit1396.c82 int i; variable
86 for(i = 0; list1[i].in; i++) {
89 list1[i].in, list1[i].inlen,
93 fail_unless(outlen == list1[i].outlen, "wrong output length returned");
94 fail_unless(!memcmp(out, list1[i].out, list1[i].outlen),
97 printf("curl_easy_unescape test %d DONE\n", i);
102 for(i = 0; list2[i].in; i++) {
104 char *out = curl_easy_escape(hnd, list2[i].in, list2[i].inlen);
108 fail_unless(outlen == list2[i].outlen, "wrong output length returned");
109 fail_unless(!memcmp(out, list2[i].out, list2[i].outlen),
[all …]
H A Dunit1650.c160 size_t i; variable
163 for(i = 0; i < sizeof(req) / sizeof(req[0]); i++) {
164 DOHcode rc = doh_req_encode(req[i].name, req[i].type,
177 if(req[i].packet && memcmp(req[i].packet, buffer, size)) {
181 abort_if(req[i].packet && memcmp(req[i].packet, buffer, size),
186 for(i = 0; i < sizeof(resp) / sizeof(resp[0]); i++) {
193 rc = doh_resp_decode((const unsigned char *)resp[i].packet, resp[i].size,
236 if(resp[i].out && strcmp((char *)buffer, resp[i].out)) {
239 abort_if(resp[i].out && strcmp((char *)buffer, resp[i].out), "content");
244 for(i = 0; i < sizeof(full49)-1; i++) {
[all …]
H A Dunit1609.c103 int i; variable
113 for(i = 0; i < testnum; ++i) {
115 int addressnum = sizeof (tests[i].address) / sizeof (*tests[i].address);
141 entry_id = (void *)aprintf("%s:%d", tests[i].host, tests[i].port);
155 if(!addr && !tests[i].address[j])
161 __FILE__, __LINE__, i);
169 __FILE__, __LINE__, i, ipaddress, i, j);
177 __FILE__, __LINE__, i, i, j, tests[i].address[j]);
185 __FILE__, __LINE__, i, ipaddress, i, j, tests[i].address[j]);
190 if(port != tests[i].port) {
[all …]
H A Dunit1323.c52 size_t i; variable
54 for(i = 0; i < sizeof(tests)/sizeof(tests[0]); i++) {
55 timediff_t result = Curl_timediff(tests[i].first, tests[i].second);
56 if(result != tests[i].result) {
58 (long)tests[i].first.tv_sec,
59 tests[i].first.tv_usec,
60 (long)tests[i].second.tv_sec,
61 tests[i].second.tv_usec,
63 (long)tests[i].result);
/curl/tests/http/clients/
H A Dh2-pausing.c97 for(i = 0; i < size - 1; i++) { in debug_cb()
276 for(i = 0; i < HANDLECOUNT; i++) { in main()
277 handles[i].idx = i; in main()
304 for(i = 0; i < HANDLECOUNT; i++) { in main()
317 for(i = 0; i < HANDLECOUNT; i++) { in main()
324 i, handles[i].paused); in main()
333 i, handles[i].errored); in main()
351 for(i = 0; i < HANDLECOUNT; i++) { in main()
367 for(i = 0; i < HANDLECOUNT; i++) { in main()
381 for(i = 0; i < HANDLECOUNT; i++) { in main()
[all …]
/curl/docs/examples/
H A Dmultithread.c73 int i; in main() local
78 for(i = 0; i < NUMT; i++) { in main()
79 int error = pthread_create(&tid[i], in main()
82 (void *)urls[i]); in main()
84 fprintf(stderr, "Couldn't run thread number %d, errno %d\n", i, error); in main()
86 fprintf(stderr, "Thread %d, gets %s\n", i, urls[i]); in main()
90 for(i = 0; i < NUMT; i++) { in main()
91 pthread_join(tid[i], NULL); in main()
92 fprintf(stderr, "Thread %d terminated\n", i); in main()
H A Dhttp2-download.c56 size_t i; in dump() local
68 for(i = 0; i < size; i += width) { in dump()
75 if(i + c < size) in dump()
83 if(nohex && (i + c + 1 < size) && ptr[i + c] == 0x0D && in dump()
85 i += (c + 2 - width); in dump()
89 (ptr[i + c] >= 0x20) && (ptr[i + c] < 0x80) ? ptr[i + c] : '.'); in dump()
91 if(nohex && (i + c + 2 < size) && ptr[i + c + 1] == 0x0D && in dump()
187 int i; in main() local
202 for(i = 0; i < num_transfers; i++) { in main()
203 setup(&trans[i], i); in main()
[all …]
H A Dthreaded-ssl.c74 int i; in main() local
81 for(i = 0; i < NUMT; i++) { in main()
82 int error = pthread_create(&tid[i], in main()
85 (void *)urls[i]); in main()
87 fprintf(stderr, "Couldn't run thread number %d, errno %d\n", i, error); in main()
89 fprintf(stderr, "Thread %d, gets %s\n", i, urls[i]); in main()
93 for(i = 0; i < NUMT; i++) { in main()
94 pthread_join(tid[i], NULL); in main()
95 fprintf(stderr, "Thread %d terminated\n", i); in main()
H A Dhttp2-upload.c86 size_t i; in dump() local
97 for(i = 0; i < size; i += width) { in dump()
112 if(nohex && (i + c + 1 < size) && ptr[i + c] == 0x0D && in dump()
118 (ptr[i + c] >= 0x20) && (ptr[i + c] < 0x80) ? ptr[i + c] : '.'); in dump()
120 if(nohex && (i + c + 2 < size) && ptr[i + c + 1] == 0x0D && in dump()
204 i->num = num; in setup()
225 if(!i->in) { in setup()
272 int i; in main() local
294 for(i = 0; i < num_transfers; i++) { in main()
295 setup(&trans[i], i, filename); in main()
[all …]
H A Dmulti-debugcallback.c40 size_t i; in dump() local
52 for(i = 0; i < size; i += width) { in dump()
59 if(i + c < size) in dump()
60 fprintf(stream, "%02x ", ptr[i + c]); in dump()
67 if(nohex && (i + c + 1 < size) && ptr[i + c] == 0x0D && in dump()
68 ptr[i + c + 1] == 0x0A) { in dump()
69 i += (c + 2 - width); in dump()
73 (ptr[i + c] >= 0x20) && (ptr[i + c] < 0x80) ? ptr[i + c] : '.'); in dump()
75 if(nohex && (i + c + 2 < size) && ptr[i + c + 1] == 0x0D && in dump()
76 ptr[i + c + 2] == 0x0A) { in dump()
[all …]
/curl/lib/
H A Dselect.c283 for(i = 0; i < nfds; i++) { in Curl_poll()
321 for(i = 0; i < nfds; i++) { in Curl_poll()
337 for(i = 0; i < nfds; i++) { in Curl_poll()
370 for(i = 0; i < nfds; i++) { in Curl_poll()
443 int i; in cpfds_add_sock() local
446 for(i = (int)cpfds->n - 1; i >= 0; --i) { in cpfds_add_sock()
473 size_t i; in Curl_pollfds_add_ps() local
477 for(i = 0; i < ps->num; i++) { in Curl_pollfds_add_ps()
505 int i; in cwfds_add_sock() local
508 for(i = (int)cwfds->n - 1; i >= 0; --i) { in cwfds_add_sock()
[all …]
/curl/packages/OS400/
H A Dos400sys.c92 for(i = (localkey_t) 0; i < LK_LAST; i++) { in thdbufdestroy()
244 i = QadrtConvertE2A(cp, s, MAX_CONV_EXPANSION * i, i); in set_thread_string()
319 i = QadrtConvertA2E(enodename, nodename, i, i); in Curl_getaddrinfo_a()
365 QadrtConvertE2A(t, buf->value, i, i); in Curl_gss_convert_in_place()
532 QadrtConvertA2E(ehost, host, i, i); in Curl_ldap_init_a()
556 QadrtConvertA2E(edn, dn, i, i); in Curl_ldap_simple_bind_s_a()
620 for(i = 0; attrs[i++];) in Curl_ldap_search_s_a()
678 QadrtConvertA2E(cp, attr, i, i); in Curl_ldap_get_values_len_a()
715 QadrtConvertE2A(cp2, cp, i, i); in Curl_ldap_get_dn_a()
746 QadrtConvertE2A(cp2, cp, i, i); in Curl_ldap_first_attribute_a()
[all …]

Completed in 42 milliseconds

12345678910>>...14