Home
last modified time | relevance | path

Searched refs:items (Results 1 – 19 of 19) sorted by relevance

/unit/src/
H A Dnxt_vector.c11 nxt_vector_create(nxt_uint_t items, size_t item_size, in nxt_vector_create() argument
16 vector = proto->alloc(pool, sizeof(nxt_vector_t) + items * item_size); in nxt_vector_create()
20 vector->items = 0; in nxt_vector_create()
22 vector->avalaible = items; in nxt_vector_create()
34 vector->start = proto->alloc(pool, items * item_size); in nxt_vector_init()
37 vector->items = 0; in nxt_vector_init()
39 vector->avalaible = items; in nxt_vector_init()
57 vector->items = 0; in nxt_vector_destroy()
83 if (n == vector->items) { in nxt_vector_add()
117 vector->items++; in nxt_vector_add()
[all …]
H A Dnxt_vector.h24 uint16_t items; member
31 NXT_EXPORT nxt_vector_t *nxt_vector_create(nxt_uint_t items, size_t item_size,
33 NXT_EXPORT void *nxt_vector_init(nxt_vector_t *vector, nxt_uint_t items,
46 (vector)->item_size * ((vector)->items - 1))
50 (vector)->items = 0;
54 ((vector)->items == 0)
60 vector->items--; in nxt_vector_remove_last()
61 return nxt_pointer_to(vector->start, vector->item_size * vector->items); in nxt_vector_remove_last()
H A Dnxt_app_queue.h29 nxt_app_queue_item_t items[NXT_APP_QUEUE_SIZE]; member
62 qi = (nxt_app_queue_item_t *) &q->items[i]; in nxt_app_queue_send()
94 qi = (nxt_app_queue_item_t *) &q->items[cookie]; in nxt_app_queue_cancel()
113 qi = (nxt_app_queue_item_t *) &q->items[i]; in nxt_app_queue_recv()
H A Dnxt_upstream_round_robin.c25 uint32_t items; member
91 urr->items = n; in nxt_upstream_round_robin_create()
144 + urrcf->items * sizeof(nxt_upstream_round_robin_server_t); in nxt_upstream_round_robin_joint_create()
153 n = urrcf->items; in nxt_upstream_round_robin_joint_create()
154 urr->items = n; in nxt_upstream_round_robin_joint_create()
178 n = round_robin->items; in nxt_upstream_round_robin_server_get()
H A Dnxt_port_queue.h29 nxt_port_queue_item_t items[NXT_PORT_QUEUE_SIZE]; member
62 qi = (nxt_port_queue_item_t *) &q->items[i]; in nxt_port_queue_send()
89 qi = (nxt_port_queue_item_t *) &q->items[i]; in nxt_port_queue_recv()
H A Dnxt_upstream.c50 upstreams->items = n; in nxt_upstreams_create()
86 n = upstreams->items; in nxt_upstream_find()
118 n = upstreams->items; in nxt_upstreams_joint_create()
H A Dnxt_http_route.c257 routes->items = n; in nxt_http_routes_create()
374 route->items = n; in nxt_http_route_create()
423 match->items = n; in nxt_http_route_match_create()
705 table->items = n; in nxt_http_route_table_create()
745 ruleset->items = n; in nxt_http_route_ruleset_create()
821 rule->items = n; in nxt_http_route_rule_create()
862 addr_rule->items = n; in nxt_http_route_addr_rule_create()
1245 end = match + route->items; in nxt_http_route_resolve()
1545 end = match + route->items; in nxt_http_route_handler()
1570 end = test + match->items; in nxt_http_route_match()
[all …]
H A Dnxt_http_parse.h123 nxt_http_field_proc_t items[], nxt_uint_t count);
125 nxt_http_field_proc_t items[], nxt_uint_t count, nxt_bool_t level);
H A Dnxt_upstream.h54 uint32_t items; member
H A Dnxt_event_engine.c563 nxt_uint_t items; in nxt_event_engine_mem_alloc() local
575 items = 3; in nxt_event_engine_mem_alloc()
577 items++; in nxt_event_engine_mem_alloc()
580 items++; in nxt_event_engine_mem_alloc()
583 mem_cache = nxt_array_create(engine->mem_pool, items, in nxt_event_engine_mem_alloc()
H A Dnxt_http_parse.c1181 nxt_http_field_proc_t items[], nxt_uint_t count) in nxt_http_fields_hash() argument
1195 name = &items[i].name; in nxt_http_fields_hash()
1204 lhq.value = &items[i]; in nxt_http_fields_hash()
1219 nxt_http_field_proc_t items[], nxt_uint_t count, nxt_bool_t level) in nxt_http_fields_hash_collisions() argument
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_cert.c349 nxt_cert_item_t *items; in nxt_cert_info_init() local
351 for (items = certs->elts, i = 0; i < certs->nelts; i++) { in nxt_cert_info_init()
352 cert = nxt_cert_fd(task, items[i].fd); in nxt_cert_info_init()
358 (void) nxt_cert_info_save(&items[i].name, cert); in nxt_cert_info_init()
936 nxt_cert_item_t *items; in nxt_cert_store_release() local
938 for (items = certs->elts, i = 0; in nxt_cert_store_release()
942 nxt_fd_close(items[i].fd); in nxt_cert_store_release()
/unit/src/test/
H A Dnxt_rbtree_test.c32 nxt_rbtree_test_t *items, *item; in nxt_rbtree_test() local
42 items = nxt_malloc(n * sizeof(nxt_rbtree_test_t)); in nxt_rbtree_test()
43 if (items == NULL) { in nxt_rbtree_test()
59 items[i].key = key; in nxt_rbtree_test()
68 nxt_rbtree_insert(&tree, &items[i].node); in nxt_rbtree_test()
72 node = nxt_rbtree_find(&tree, &items[i].node); in nxt_rbtree_test()
74 if (node != (nxt_rbtree_node_t *) &items[i].node) { in nxt_rbtree_test()
76 items[i].key); in nxt_rbtree_test()
104 nxt_rbtree_delete(&tree, &items[i].node); in nxt_rbtree_test()
124 nxt_free(items); in nxt_rbtree_test()
[all …]
/unit/test/python/header_fields/
H A Dwsgi.py3 h = (k for k, v in environ.items() if k.startswith('HTTP_'))
/unit/test/unit/
H A Dhttp.py75 for header, value in headers.items():
293 for _, value in fields.items():
308 "%s=%s" % (name, value) for name, value in fields.items()
317 for field, value in fields.items():
/unit/test/
H A Dtest_tls_sni.py132 for bname, bvalue in bundles.items():
H A Dtest_go_isolation.py38 for ns, ns_value in option.available['features']['isolation'].items():
H A Dconftest.py152 for module, prereq_version in cls.prerequisites['modules'].items():
213 k: v for k, v in option.available['modules'].items() if v is not None
/unit/src/perl/
H A Dnxt_perl_psgi.c208 if (nxt_slow_path(items != 2)) { in XS()
262 if (nxt_slow_path(items != 1)) { in XS()