Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 131) sorted by last modified time

123456

/unit/src/
H A Dnxt_unit.c1946 for (i = 0; i < r->fields_count; i++) { in nxt_unit_request_group_dup_fields()
2006 i++; in nxt_unit_request_group_dup_fields()
2140 for (i = 0; i < req->response->fields_count; i++) { in nxt_unit_response_realloc()
3330 for (i = 0; i < iovcnt; i++) { in nxt_unit_websocket_sendv()
3357 for (i = 0; i < iovcnt; i++) { in nxt_unit_websocket_sendv()
3406 uint64_t i, d; in nxt_unit_websocket_read() local
3418 for (i = 0; i < (uint64_t) res; i++) { in nxt_unit_websocket_read()
3419 b[i] ^= ws->mask[ (i + d) % 4 ]; in nxt_unit_websocket_read()
3522 for (i = 0; i < nchunks; i++) { in nxt_unit_mmap_get()
3689 cap = i + 1; in nxt_unit_mmap_at()
[all …]
H A Dnxt_sockaddr.c519 nxt_uint_t i, zero_start, last_zero_start; in nxt_inet6_ntop() local
533 for (i = 0; i < 16; i += 2) { in nxt_inet6_ntop()
535 if (addr[i] == 0 && addr[i + 1] == 0) { in nxt_inet6_ntop()
538 last_zero_start = i; in nxt_inet6_ntop()
576 for (i = 0; i < ipv6_bytes; i += 2) { in nxt_inet6_ntop()
578 if (i == zero_start) { in nxt_inet6_ntop()
580 i += (zero_groups - 1) * 2; in nxt_inet6_ntop()
585 p = nxt_sprintf(p, end, "%uxd", (addr[i] << 8) + addr[i + 1]); in nxt_inet6_ntop()
587 if (i < 14) { in nxt_inet6_ntop()
H A Dnxt_port_memory_int.h130 size_t i, start; in nxt_port_mmap_get_free_chunk() local
137 for (i = start; i < MAX_FREE_IDX; i++) { in nxt_port_mmap_get_free_chunk()
138 bits = m[i] & mask; in nxt_port_mmap_get_free_chunk()
147 chunk = i * FREE_BITS + ffs - 1; in nxt_port_mmap_get_free_chunk()
H A Dnxt_http_static.c77 uint32_t i; in nxt_http_static_init() local
101 for (i = 0; i < conf->nshares; i++) { in nxt_http_static_init()
110 conf->shares[i].var = var; in nxt_http_static_init()
111 conf->shares[i].is_const = nxt_var_is_const(var); in nxt_http_static_init()
138 for (i = 0; i < conf->nshares; i++) { in nxt_http_static_init()
139 conf->shares[i].is_const &= is_const; in nxt_http_static_init()
141 if (conf->shares[i].is_const) { in nxt_http_static_init()
143 nxt_var_raw(conf->shares[i].var, &shr); in nxt_http_static_init()
925 nxt_uint_t i; in nxt_http_static_mtypes_init() local
993 for (i = 0; i < nxt_nitems(default_types); i++) { in nxt_http_static_mtypes_init()
[all …]
H A Dnxt_http_request.c127 for (i = 0; i < host->length; i++) { in nxt_http_validate_host()
128 ch = h[i]; in nxt_http_validate_host()
142 dot_pos = i; in nxt_http_validate_host()
147 host_length = i; in nxt_http_validate_host()
154 if (i == 0) { in nxt_http_validate_host()
417 i = fields->nelts; in nxt_http_request_forward_client_ip()
419 while (i-- > 0) { in nxt_http_request_forward_client_ip()
420 start = f[i]->value; in nxt_http_request_forward_client_ip()
1110 nxt_uint_t i; in nxt_http_field_hash() local
1124 for (i = 0; i < name->length; i++) { in nxt_http_field_hash()
[all …]
H A Dnxt_http_parse.c1187 nxt_uint_t i, j; in nxt_http_fields_hash() local
1193 for (i = 0; i < count; i++) { in nxt_http_fields_hash()
1195 name = &items[i].name; in nxt_http_fields_hash()
1204 lhq.value = &items[i]; in nxt_http_fields_hash()
1224 nxt_uint_t colls, i, j; in nxt_http_fields_hash_collisions() local
1238 for (i = 0; i < count; i++) { in nxt_http_fields_hash_collisions()
1240 name = &items[i].name; in nxt_http_fields_hash_collisions()
1248 lhq.value = &items[i]; in nxt_http_fields_hash_collisions()
H A Dnxt_conf.c567 nxt_uint_t i; in nxt_conf_map_object() local
574 int i; in nxt_conf_map_object() member
584 for (i = 0; i < n; i++) { in nxt_conf_map_object()
592 ptr = nxt_pointer_to(data, map[i].offset); in nxt_conf_map_object()
594 switch (map[i].type) { in nxt_conf_map_object()
617 switch (map[i].type) { in nxt_conf_map_object()
628 ptr->i = num; in nxt_conf_map_object()
669 switch (map[i].type) { in nxt_conf_map_object()
1810 nxt_uint_t i; in nxt_conf_json_parse_string() local
2006 for (i = 0; i < 4; i++) { in nxt_conf_json_parse_string()
[all …]
H A Dnxt_router.c123 int i);
1674 for (i = 0; i < n; i++) { in nxt_router_conf_create()
1937 for (i = 0; i < n; i++) { in nxt_router_conf_create()
2117 for (i = 0; i < exts; i++) { in nxt_router_conf_process_static()
2228 for (i = 0; i < fh->header->length; i++) { in nxt_router_conf_forward_header()
2450 for (i = 0; !nxt_strstr_eq(target, &targets[i]); i++); in nxt_router_application_init()
3246 for (i = tmcf->new_threads; i < threads; i++) { in nxt_router_threads_create()
4776 if (i < 0 && c == -i) { in nxt_router_app_use()
5487 i->field = nxt_list_data(i->part); in nxt_fields_part_first()
5512 return nxt_fields_part_first(i->part->next, i); in nxt_fields_next()
[all …]
H A Dnxt_http_route.c238 uint32_t i, n, next; in nxt_http_routes_create() local
262 for (i = 0; i < n; i++) { in nxt_http_routes_create()
361 uint32_t i, n; in nxt_http_route_create() local
377 for (i = 0; i < n; i++) { in nxt_http_route_create()
706 for (i = 0; i < n; i++) { in nxt_http_route_table_create()
753 for (i = 0; i < n; i++) { in nxt_http_route_ruleset_create()
763 ruleset->rule[i] = rule; in nxt_http_route_ruleset_create()
825 for (i = 0; i < n; i++) { in nxt_http_route_rule_create()
862 for (i = 0; i < n; i++) { in nxt_http_route_addr_rule_create()
1798 for (i = 0; i < 16; i++) { in nxt_http_route_addr_pattern_match()
[all …]
H A Dnxt_conf_validation.c1483 nxt_uint_t i; in nxt_conf_vldt_action() local
1500 for (i = 0; i < nxt_nitems(actions); i++) { in nxt_conf_vldt_action()
1501 action = nxt_conf_get_object_member(value, &actions[i].name, NULL); in nxt_conf_vldt_action()
1513 members = actions[i].members; in nxt_conf_vldt_action()
1936 nxt_uint_t i, first, last; in nxt_conf_vldt_match_pattern() local
1982 for (i = first; i < last; i++) { in nxt_conf_vldt_match_pattern()
1983 if (pattern.start[i] == '*' && pattern.start[i + 1] == '*') { in nxt_conf_vldt_match_pattern()
H A Dnxt_var.c168 nxt_uint_t i; in nxt_var_register() local
174 for (i = 0; i < n; i++) { in nxt_var_register()
177 lhq.value = &decl[i]; in nxt_var_register()
193 nxt_uint_t i; in nxt_var_index_init() local
205 for (i = 0; i < nxt_var_count; i++) { in nxt_var_index_init()
207 decl->index = i; in nxt_var_index_init()
459 nxt_uint_t i; in nxt_var_query() local
476 for (i = 0; i < var->vars; i++) { in nxt_var_query()
556 nxt_uint_t i, j; in nxt_var_query_finish() local
566 for (i = 0; i < query->values.nelts; i++) { in nxt_var_query_finish()
[all …]
H A Dnxt_port_memory.c31 if (i < 0 && c == -i) { in nxt_port_mmap_handler_use()
54 cap = i + 1; in nxt_port_mmap_at()
57 while (i + 1 > cap) { in nxt_port_mmap_at()
82 port_mmaps->size = i + 1; in nxt_port_mmap_at()
85 return port_mmaps->elts + i; in nxt_port_mmap_at()
92 uint32_t i; in nxt_port_mmaps_destroy() local
101 for (i = 0; i < port_mmaps->size; i++) { in nxt_port_mmaps_destroy()
292 nxt_int_t i; in nxt_port_new_port_mmap() local
344 for (i = 0; i < n; i++) { in nxt_port_new_port_mmap()
481 for (i = 0; i < nchunks; i++) { in nxt_port_mmap_get()
[all …]
H A Dnxt_port.h355 void nxt_port_use(nxt_task_t *task, nxt_port_t *port, int i);
H A Dnxt_sprintf.c101 double f, i; in nxt_vsprintf() local
395 (void) modf(f, &i); in nxt_vsprintf()
405 frac = (uint64_t) ((f - i) * scale + 0.5); in nxt_vsprintf()
408 i += 1; in nxt_vsprintf()
413 buf = nxt_number(&spf, buf, i); in nxt_vsprintf()
427 f = modf(f, &i); in nxt_vsprintf()
434 f = modf(f, &i); in nxt_vsprintf()
435 *buf++ = (u_char) i + '0'; in nxt_vsprintf()
H A Dnxt_openssl.c219 int i, n; in nxt_openssl_locks_init() local
229 for (i = 0; i < n; i++) { in nxt_openssl_locks_init()
277 int i, n; in nxt_openssl_locks_free() local
283 for (i = 0; i < n; i++) { in nxt_openssl_locks_free()
671 i = 0;
676 i++;
700 } while (i < count);
755 i = 0;
816 if (HMAC_Init_ex(hctx, ticket[i].hmac_key, ticket[i].size, digest, NULL)
868 for (i = 0; i != n; i++) {
[all …]
H A Dnxt_lvlhsh.c458 nxt_uint_t i, shift, size; in nxt_lvlhsh_convert_bucket_to_level() local
476 for (i = 0; i < nlvl; i++) { in nxt_lvlhsh_convert_bucket_to_level()
483 shift += proto->shift[i]; in nxt_lvlhsh_convert_bucket_to_level()
604 nxt_uint_t i; in nxt_lvlhsh_free_level() local
609 for (i = 0; i < size; i++) { in nxt_lvlhsh_free_level()
611 if (level[i] != NULL) { in nxt_lvlhsh_free_level()
617 proto->free(lhq->pool, nxt_lvlhsh_bucket(proto, level[i])); in nxt_lvlhsh_free_level()
/unit/pkg/rpm/
H A DMakefile211 i=100 ; \
214 s="`printf "Source%d: %s\n" $${i} $${src}`" ; \
216 i=$$(($${i}+1)) ; \
/unit/test/
H A Dtest_ruby_application.py399 for i in range(4):
H A Dtest_tls.py398 for i in range(chain_length):
399 if i == 0:
401 elif i == chain_length - 1:
404 self.req('int{}'.format(i))
406 for i in range(chain_length - 1):
407 if i == 0:
409 elif i == chain_length - 2:
412 self.ca(cert='int{}'.format(i), out='int{}'.format(i + 1))
414 for i in range(chain_length - 1, 0, -1):
416 '/end.crt' if i == chain_length - 1 else '/int{}.crt'.format(i)
H A Dtest_python_application.py200 for i in range(conns):
214 self.load('mirror', processes=i + 1)
218 for i in range(conns):
226 sock=socks[i],
233 self.load('mirror', processes=i + 1)
235 for i in range(conns):
242 sock=socks[i],
248 self.load('mirror', processes=i + 1)
803 for i in range(4):
/unit/src/ruby/
H A Dnxt_ruby.c766 uint32_t i; in nxt_ruby_read_request() local
793 for (i = 0; i < r->fields_count; i++) { in nxt_ruby_read_request()
1217 int i; in nxt_ruby_exception_log() local
1243 for (i = 1; i < RARRAY_LEN(ary); i++) { in nxt_ruby_exception_log()
1302 for (i = 0; i < c->threads - 1; i++) { in nxt_ruby_ready_handler()
1399 uint32_t i; in nxt_ruby_init_threads() local
1414 for (i = 0; i < c->threads - 1; i++) { in nxt_ruby_init_threads()
1424 for (i = 0; i < c->threads - 1; i++) { in nxt_ruby_init_threads()
1443 uint32_t i; in nxt_ruby_join_threads() local
1450 for (i = 0; i < c->threads - 1; i++) { in nxt_ruby_join_threads()
[all …]
/unit/src/test/
H A Dnxt_rbtree1_test.c83 for (i = 0; i < n; i++) { in nxt_rbtree1_test()
95 for (i = 0; i < n; i++) { in nxt_rbtree1_test()
99 for (i = 0; i < n; i++) { in nxt_rbtree1_test()
100 if (nxt_rbtree1_test_find(&tree, &nodes[i]) != &nodes[i]) { in nxt_rbtree1_test()
107 i = 0; in nxt_rbtree1_test()
114 i, keys[i], node->key); in nxt_rbtree1_test()
118 i++; in nxt_rbtree1_test()
122 if (i != n) { in nxt_rbtree1_test()
127 for (i = 0; i < n; i++) { in nxt_rbtree1_test()
282 for (i = 0; i < NXT_RBT_NODES; i++) { in nxt_rbtree1_mb_start()
[all …]
/unit/auto/
H A Dclang172 int i;
/unit/src/python/
H A Dnxt_python.c214 for (i = 0; /* void */; i++) { in nxt_python_start()
244 for (i = 1; i < targets->count; i++) { in nxt_python_start()
456 uint32_t i; in nxt_python_init_threads() local
494 for (i = 0; i < c->threads - 1; i++) { in nxt_python_init_threads()
511 uint32_t i; in nxt_python_ready_handler() local
521 for (i = 0; i < c->threads - 1; i++) { in nxt_python_ready_handler()
586 uint32_t i; in nxt_python_join_threads() local
596 for (i = 0; i < c->threads - 1; i++) { in nxt_python_join_threads()
616 for (i = 0; i < c->threads - 1; i++) { in nxt_python_join_threads()
670 nxt_int_t i; in nxt_python_atexit() local
[all …]
/unit/src/perl/
H A Dnxt_perl_psgi.c599 uint32_t i; in nxt_perl_psgi_env_create() local
680 for (i = 0; i < r->fields_count; i++) { in nxt_perl_psgi_env_create()
681 f = r->fields + i; in nxt_perl_psgi_env_create()
816 for (i = 0; i <= array_len; i++) { in nxt_perl_psgi_result_head()
839 for (i = 0; i <= array_len; i += 2) { in nxt_perl_psgi_result_head()
863 long i; in nxt_perl_psgi_result_body() local
877 for (i = 0; i <= av_len(body_array); i++) { in nxt_perl_psgi_result_body()
1276 for (i = 0; i < c->threads - 1; i++) { in nxt_perl_psgi_ready_handler()
1368 for (i = 0; i < c->threads - 1; i++) { in nxt_perl_psgi_init_threads()
1391 for (i = 0; i < c->threads - 1; i++) { in nxt_perl_psgi_join_threads()
[all …]

123456