Home
last modified time | relevance | path

Searched refs:nelts (Results 1 – 17 of 17) sorted by relevance

/unit/src/
H A Dnxt_array.c22 array->nelts = 0; in nxt_array_create()
50 if (array->nelts == nalloc) { in nxt_array_add()
77 p = nxt_pointer_to(array->elts, array->size * array->nelts); in nxt_array_add()
78 array->nelts++; in nxt_array_add()
110 array->nelts--; in nxt_array_remove()
123 dst = nxt_array_create(mp, src->nelts, size); in nxt_array_copy()
131 if (dst->nalloc >= src->nelts) { in nxt_array_copy()
132 nxt_memcpy(dst->elts, src->elts, src->nelts * size); in nxt_array_copy()
135 nxt_memcpy(dst->elts, src->elts, dst->nelts * size); in nxt_array_copy()
137 for (i = dst->nelts; i < src->nelts; i++) { in nxt_array_copy()
[all …]
H A Dnxt_array.h14 uint32_t nelts; member
39 nxt_pointer_to((array)->elts, (array)->size * ((array)->nelts - 1))
43 (array)->nelts = 0;
47 ((array)->nelts == 0)
53 array->nelts--; in nxt_array_remove_last()
54 return nxt_pointer_to(array->elts, array->size * array->nelts); in nxt_array_remove_last()
H A Dnxt_list.c23 list->part.nelts = 0; in nxt_list_create()
38 if (last->nelts == list->nalloc) { in nxt_list_add()
50 last->nelts = 0; in nxt_list_add()
56 elt = nxt_pointer_to(nxt_list_data(last), last->nelts * list->size); in nxt_list_add()
57 last->nelts++; in nxt_list_add()
84 if (next->elt < next->part->nelts) { in nxt_list_next()
101 if (next->part->nelts != 0) { in nxt_list_next()
H A Dnxt_list.h15 uintptr_t nelts; member
61 if (n < (nxt_uint_t) part->nelts) { in nxt_list_elt()
65 n -= (nxt_uint_t) part->nelts; in nxt_list_elt()
83 for (_end = (elt + _part->nelts); elt != _end; elt++) { \
118 n += (nxt_uint_t) part->nelts; in nxt_list_nelts()
H A Dnxt_service.c99 n = services->nelts; in nxt_service_add()
138 n = services->nelts; in nxt_service_get()
H A Dnxt_application.c253 n = modules->nelts; in nxt_discovery_modules()
270 size += mounts->nelts * nxt_length("{\"src\": \"\", \"dst\": \"\", " in nxt_discovery_modules()
276 for (j = 0; j < mounts->nelts; j++) { in nxt_discovery_modules()
302 for (j = 0; j < mounts->nelts; j++) { in nxt_discovery_modules()
385 n = modules->nelts; in nxt_discovery_module()
1004 n = rt->languages->nelts; in nxt_app_lang_module()
H A Dnxt_var.c190 for (i = 0; i < fields->nelts; i++) { in nxt_var_field_add()
205 field->index = fields->nelts - 1; in nxt_var_field_add()
218 nfields = fields->nelts; in nxt_var_field_get()
H A Dnxt_runtime.c553 nxt_debug(task, "thread pools: %d", rt->thread_pools->nelts); in nxt_runtime_exit()
688 n = rt->thread_pools->nelts; in nxt_runtime_thread_pool_destroy()
730 n = rt->thread_pools->nelts; in nxt_runtime_thread_pool_exit()
1275 ncurr = rt->listen_sockets->nelts; in nxt_runtime_listen_sockets_create()
1279 nprev = rt->inherited_sockets->nelts; in nxt_runtime_listen_sockets_create()
1321 n = rt->listen_sockets->nelts; in nxt_runtime_listen_sockets_enable()
H A Dnxt_isolation.c573 n = mounts->nelts; in nxt_isolation_set_lang_mounts()
643 qsort(mounts->elts, mounts->nelts, sizeof(nxt_fs_mount_t), in nxt_isolation_set_lang_mounts()
683 n = mounts->nelts; in nxt_isolation_unmount_all()
712 n = mounts->nelts; in nxt_isolation_prepare_rootfs()
H A Dnxt_http_variables.c385 nv = start + args->nelts - 1; in nxt_http_var_arg()
463 end = nv + cookies->nelts; in nxt_http_var_cookie()
H A Dnxt_event_engine.c593 for (n = 0; n < mem_cache->nelts; n++) { in nxt_event_engine_mem_alloc()
648 for (n = 0; n < mem_cache->nelts; n++) { in nxt_event_engine_mem_free()
H A Dnxt_process.c1031 n = rt->listen_sockets->nelts; in nxt_process_quit()
1041 rt->listen_sockets->nelts = 0; in nxt_process_quit()
H A Dnxt_main_process.c866 n = new_files->nelts; in nxt_main_process_sigusr1_handler()
1406 lang->type, lang->version, lang->file, lang->mounts->nelts); in nxt_main_port_modules_handler()
1409 qsort(rt->languages->elts, rt->languages->nelts, in nxt_main_port_modules_handler()
H A Dnxt_cert.c351 for (items = certs->elts, i = 0; i < certs->nelts; i++) { in nxt_cert_info_init()
939 i < certs->nelts; in nxt_cert_store_release()
H A Dnxt_http_route.c1934 end = nv + array->nelts; in nxt_http_route_test_argument()
2012 end = nv + array->nelts; in nxt_http_route_test_cookie()
2102 for (i = 0; i < pattern_slices->nelts; i++, pattern_slice++) { in nxt_http_route_pattern()
H A Dnxt_http_request.c419 i = fields->nelts; in nxt_http_request_forward_client_ip()
H A Dnxt_router.c3353 for (n = tmcf->engines->nelts; n != 0; n--) { in nxt_router_engines_post()
3952 r->resp.fields->last->nelts--; in nxt_router_response_ready_handler()
5139 while (part->nelts == 0) { in nxt_fields_part_first()
5165 end += i->part->nelts; in nxt_fields_next()