Home
last modified time | relevance | path

Searched refs:ngx_pcalloc (Results 1 – 25 of 107) sorted by relevance

12345

/f-stack/app/nginx-1.16.1/src/stream/
H A Dngx_stream_upstream_round_robin.c70 peers = ngx_pcalloc(cf->pool, sizeof(ngx_stream_upstream_rr_peers_t)); in ngx_stream_upstream_init_round_robin()
75 peer = ngx_pcalloc(cf->pool, sizeof(ngx_stream_upstream_rr_peer_t) * n); in ngx_stream_upstream_init_round_robin()
133 backup = ngx_pcalloc(cf->pool, sizeof(ngx_stream_upstream_rr_peers_t)); in ngx_stream_upstream_init_round_robin()
138 peer = ngx_pcalloc(cf->pool, sizeof(ngx_stream_upstream_rr_peer_t) * n); in ngx_stream_upstream_init_round_robin()
209 peers = ngx_pcalloc(cf->pool, sizeof(ngx_stream_upstream_rr_peers_t)); in ngx_stream_upstream_init_round_robin()
214 peer = ngx_pcalloc(cf->pool, sizeof(ngx_stream_upstream_rr_peer_t) * n); in ngx_stream_upstream_init_round_robin()
285 rrp->tried = ngx_pcalloc(s->connection->pool, n * sizeof(uintptr_t)); in ngx_stream_upstream_init_round_robin_peer()
331 peers = ngx_pcalloc(s->connection->pool, in ngx_stream_upstream_create_round_robin_peer()
337 peer = ngx_pcalloc(s->connection->pool, in ngx_stream_upstream_create_round_robin_peer()
408 rrp->tried = ngx_pcalloc(s->connection->pool, n * sizeof(uintptr_t)); in ngx_stream_upstream_create_round_robin_peer()
H A Dngx_stream.c92 ctx = ngx_pcalloc(cf->pool, sizeof(ngx_stream_conf_ctx_t)); in ngx_stream_block()
106 ctx->main_conf = ngx_pcalloc(cf->pool, in ngx_stream_block()
118 ctx->srv_conf = ngx_pcalloc(cf->pool, in ngx_stream_block()
337 ph = ngx_pcalloc(cf->pool, in ngx_stream_init_phase_handlers()
562 stport->addrs = ngx_pcalloc(cf->pool, in ngx_stream_add_addrs()
597 stport->addrs = ngx_pcalloc(cf->pool, in ngx_stream_add_addrs6()
H A Dngx_stream_return_module.c99 ctx = ngx_pcalloc(c->pool, sizeof(ngx_stream_return_ctx_t)); in ngx_stream_return_handler()
179 conf = ngx_pcalloc(cf->pool, sizeof(ngx_stream_return_srv_conf_t)); in ngx_stream_return_create_srv_conf()
H A Dngx_stream_handler.c118 s = ngx_pcalloc(c->pool, sizeof(ngx_stream_session_t)); in ngx_stream_init_connection()
155 s->ctx = ngx_pcalloc(c->pool, sizeof(void *) * ngx_stream_max_module); in ngx_stream_init_connection()
163 s->variables = ngx_pcalloc(s->connection->pool, in ngx_stream_init_connection()
H A Dngx_stream_upstream.c333 ctx = ngx_pcalloc(cf->pool, sizeof(ngx_stream_conf_ctx_t)); in ngx_stream_upstream()
343 ctx->srv_conf = ngx_pcalloc(cf->pool, in ngx_stream_upstream()
630 uscf = ngx_pcalloc(cf->pool, sizeof(ngx_stream_upstream_srv_conf_t)); in ngx_stream_upstream_add()
676 umcf = ngx_pcalloc(cf->pool, sizeof(ngx_stream_upstream_main_conf_t)); in ngx_stream_upstream_create_main_conf()
H A Dngx_stream_core_module.c362 cmcf = ngx_pcalloc(cf->pool, sizeof(ngx_stream_core_main_conf_t)); in ngx_stream_core_create_main_conf()
411 cscf = ngx_pcalloc(cf->pool, sizeof(ngx_stream_core_srv_conf_t)); in ngx_stream_core_create_srv_conf()
523 ctx = ngx_pcalloc(cf->pool, sizeof(ngx_stream_conf_ctx_t)); in ngx_stream_core_server()
533 ctx->srv_conf = ngx_pcalloc(cf->pool, in ngx_stream_core_server()
/f-stack/app/nginx-1.16.1/src/http/
H A Dngx_http_upstream_round_robin.c64 peers = ngx_pcalloc(cf->pool, sizeof(ngx_http_upstream_rr_peers_t)); in ngx_http_upstream_init_round_robin()
69 peer = ngx_pcalloc(cf->pool, sizeof(ngx_http_upstream_rr_peer_t) * n); in ngx_http_upstream_init_round_robin()
127 backup = ngx_pcalloc(cf->pool, sizeof(ngx_http_upstream_rr_peers_t)); in ngx_http_upstream_init_round_robin()
132 peer = ngx_pcalloc(cf->pool, sizeof(ngx_http_upstream_rr_peer_t) * n); in ngx_http_upstream_init_round_robin()
203 peers = ngx_pcalloc(cf->pool, sizeof(ngx_http_upstream_rr_peers_t)); in ngx_http_upstream_init_round_robin()
208 peer = ngx_pcalloc(cf->pool, sizeof(ngx_http_upstream_rr_peer_t) * n); in ngx_http_upstream_init_round_robin()
278 rrp->tried = ngx_pcalloc(r->pool, n * sizeof(uintptr_t)); in ngx_http_upstream_init_round_robin_peer()
322 peers = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_rr_peers_t)); in ngx_http_upstream_create_round_robin_peer()
327 peer = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_rr_peer_t) in ngx_http_upstream_create_round_robin_peer()
398 rrp->tried = ngx_pcalloc(r->pool, n * sizeof(uintptr_t)); in ngx_http_upstream_create_round_robin_peer()
H A Dngx_http_request_body.c54 rb = ngx_pcalloc(r->pool, sizeof(ngx_http_request_body_t)); in ngx_http_read_client_request_body()
443 tf = ngx_pcalloc(r->pool, sizeof(ngx_temp_file_t)); in ngx_http_write_request_body()
724 rb = ngx_pcalloc(r->pool, sizeof(ngx_http_request_body_t)); in ngx_http_discard_request_body_filter()
729 rb->chunked = ngx_pcalloc(r->pool, sizeof(ngx_http_chunked_t)); in ngx_http_discard_request_body_filter()
947 rb->chunked = ngx_pcalloc(r->pool, sizeof(ngx_http_chunked_t)); in ngx_http_request_body_chunked_filter()
/f-stack/app/nginx-1.16.1/src/mail/
H A Dngx_mail.c85 ctx = ngx_pcalloc(cf->pool, sizeof(ngx_mail_conf_ctx_t)); in ngx_mail_block()
99 ctx->main_conf = ngx_pcalloc(cf->pool, in ngx_mail_block()
111 ctx->srv_conf = ngx_pcalloc(cf->pool, sizeof(void *) * ngx_mail_max_module); in ngx_mail_block()
395 mport->addrs = ngx_pcalloc(cf->pool, in ngx_mail_add_addrs()
429 mport->addrs = ngx_pcalloc(cf->pool, in ngx_mail_add_addrs6()
H A Dngx_mail_core_module.c133 cmcf = ngx_pcalloc(cf->pool, sizeof(ngx_mail_core_main_conf_t)); in ngx_mail_core_create_main_conf()
160 cscf = ngx_pcalloc(cf->pool, sizeof(ngx_mail_core_srv_conf_t)); in ngx_mail_core_create_srv_conf()
244 ctx = ngx_pcalloc(cf->pool, sizeof(ngx_mail_conf_ctx_t)); in ngx_mail_core_server()
254 ctx->srv_conf = ngx_pcalloc(cf->pool, sizeof(void *) * ngx_mail_max_module); in ngx_mail_core_server()
/f-stack/app/nginx-1.16.1/src/http/modules/
H A Dngx_http_auth_request_module.c176 ctx = ngx_pcalloc(r->pool, sizeof(ngx_http_auth_request_ctx_t)); in ngx_http_auth_request_handler()
201 sr->request_body = ngx_pcalloc(r->pool, sizeof(ngx_http_request_body_t)); in ngx_http_auth_request_handler()
307 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_auth_request_conf_t)); in ngx_http_auth_request_create_conf()
H A Dngx_http_addition_filter_module.c115 ctx = ngx_pcalloc(r->pool, sizeof(ngx_http_addition_ctx_t)); in ngx_http_addition_header_filter()
218 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_addition_conf_t)); in ngx_http_addition_create_conf()
H A Dngx_http_mirror_module.c111 ctx = ngx_pcalloc(r->pool, sizeof(ngx_http_mirror_ctx_t)); in ngx_http_mirror_handler()
183 mlcf = ngx_pcalloc(cf->pool, sizeof(ngx_http_mirror_loc_conf_t)); in ngx_http_mirror_create_loc_conf()
H A Dngx_http_charset_filter_module.c404 ctx = ngx_pcalloc(r->pool, sizeof(ngx_http_charset_ctx_t)); in ngx_http_main_request_charset()
519 ctx = ngx_pcalloc(r->pool, sizeof(ngx_http_charset_ctx_t)); in ngx_http_charset_ctx()
1225 table->src2dst = ngx_pcalloc(cf->pool, 256 * NGX_UTF_LEN); in ngx_http_charset_map_block()
1230 table->dst2src = ngx_pcalloc(cf->pool, 256 * sizeof(void *)); in ngx_http_charset_map_block()
1235 dst2src = ngx_pcalloc(cf->pool, 256); in ngx_http_charset_map_block()
1370 dst2src = ngx_pcalloc(cf->pool, 256); in ngx_http_charset_map()
1494 mcf = ngx_pcalloc(cf->pool, sizeof(ngx_http_charset_main_conf_t)); in ngx_http_charset_create_main_conf()
1528 lcf = ngx_pcalloc(cf->pool, sizeof(ngx_http_charset_loc_conf_t)); in ngx_http_charset_create_loc_conf()
1655 src = ngx_pcalloc(cf->pool, sizeof(u_char *) * mcf->charsets.nelts); in ngx_http_charset_postconfiguration()
1666 dst = ngx_pcalloc(cf->pool, sizeof(u_char *) * mcf->charsets.nelts); in ngx_http_charset_postconfiguration()
H A Dngx_http_rewrite_module.c161 e = ngx_pcalloc(r->pool, sizeof(ngx_http_script_engine_t)); in ngx_http_rewrite_handler()
166 e->sp = ngx_pcalloc(r->pool, in ngx_http_rewrite_handler()
226 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_rewrite_loc_conf_t)); in ngx_http_rewrite_create_loc_conf()
541 ctx = ngx_pcalloc(cf->pool, sizeof(ngx_http_conf_ctx_t)); in ngx_http_rewrite_if()
550 ctx->loc_conf = ngx_pcalloc(cf->pool, sizeof(void *) * ngx_http_max_module); in ngx_http_rewrite_if()
H A Dngx_http_secure_link_module.c142 ctx = ngx_pcalloc(r->pool, sizeof(ngx_http_secure_link_ctx_t)); in ngx_http_secure_link_variable()
297 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_secure_link_conf_t)); in ngx_http_secure_link_create_conf()
H A Dngx_http_try_files_module.c305 tf = ngx_pcalloc(cf->pool, cf->args->nelts * sizeof(ngx_http_try_file_t)); in ngx_http_try_files()
373 tlcf = ngx_pcalloc(cf->pool, sizeof(ngx_http_try_files_loc_conf_t)); in ngx_http_try_files_create_loc_conf()
/f-stack/app/nginx-1.16.1/src/http/modules/perl/
H A Dngx_http_perl_module.c195 ctx = ngx_pcalloc(r->pool, sizeof(ngx_http_perl_ctx_t)); in ngx_http_perl_handle_request()
311 ctx = ngx_pcalloc(r->pool, sizeof(ngx_http_perl_ctx_t)); in ngx_http_perl_variable()
374 ctx = ngx_pcalloc(r->pool, sizeof(ngx_http_perl_ctx_t)); in ngx_http_perl_ssi()
421 asv = ngx_pcalloc(r->pool, (i + 1) * sizeof(SV *)); in ngx_http_perl_ssi()
801 pmcf = ngx_pcalloc(cf->pool, sizeof(ngx_http_perl_main_conf_t)); in ngx_http_perl_create_main_conf()
884 plcf = ngx_pcalloc(cf->pool, sizeof(ngx_http_perl_loc_conf_t)); in ngx_http_perl_create_loc_conf()
/f-stack/app/nginx-1.16.1/src/misc/
H A Dngx_google_perftools_module.c71 gptcf = ngx_pcalloc(cycle->pool, sizeof(ngx_google_perftools_conf_t)); in ngx_google_perftools_create_conf()
/f-stack/app/nginx-1.16.1/src/core/
H A Dngx_log.c416 log = ngx_pcalloc(cycle->pool, sizeof(ngx_log_t));
567 new_log = ngx_pcalloc(cf->pool, sizeof(ngx_log_t));
612 buf = ngx_pcalloc(cf->pool, sizeof(ngx_log_memory_buf_t));
648 peer = ngx_pcalloc(cf->pool, sizeof(ngx_syslog_peer_t));
H A Dngx_palloc.h81 void *ngx_pcalloc(ngx_pool_t *pool, size_t size);
H A Dngx_hash.c360 hinit->hash = ngx_pcalloc(hinit->pool, sizeof(ngx_hash_wildcard_t) in ngx_hash_init()
371 buckets = ngx_pcalloc(hinit->pool, size * sizeof(ngx_hash_elt_t *)); in ngx_hash_init()
691 ha->keys_hash = ngx_pcalloc(ha->temp_pool, sizeof(ngx_array_t) * ha->hsize); in ngx_hash_keys_array_init()
696 ha->dns_wc_head_hash = ngx_pcalloc(ha->temp_pool, in ngx_hash_keys_array_init()
702 ha->dns_wc_tail_hash = ngx_pcalloc(ha->temp_pool, in ngx_hash_keys_array_init()
H A Dngx_thread_pool.c219 task = ngx_pcalloc(pool, sizeof(ngx_thread_task_t) + size); in ngx_thread_task_alloc()
402 tcf = ngx_pcalloc(cycle->pool, sizeof(ngx_thread_pool_conf_t)); in ngx_thread_pool_create_conf()
534 tp = ngx_pcalloc(cf->pool, sizeof(ngx_thread_pool_t)); in ngx_thread_pool_add()
H A Dngx_regex.c128 rc->regex = ngx_pcalloc(rc->pool, sizeof(ngx_regex_t)); in ngx_regex_compile()
379 rcf = ngx_pcalloc(cycle->pool, sizeof(ngx_regex_conf_t)); in ngx_regex_create_conf()
/f-stack/app/nginx-1.16.1/src/http/v2/
H A Dngx_http_v2_module.c320 h2mcf = ngx_pcalloc(cf->pool, sizeof(ngx_http_v2_main_conf_t)); in ngx_http_v2_create_main_conf()
347 h2scf = ngx_pcalloc(cf->pool, sizeof(ngx_http_v2_srv_conf_t)); in ngx_http_v2_create_srv_conf()
410 h2lcf = ngx_pcalloc(cf->pool, sizeof(ngx_http_v2_loc_conf_t)); in ngx_http_v2_create_loc_conf()

12345