Searched refs:pool (Results 1 - 25 of 177) sorted by relevance

12345678

/tldk/app/nginx/src/core/
H A Dngx_list.h30 ngx_pool_t *pool; member in struct:__anon36
34 ngx_list_t *ngx_list_create(ngx_pool_t *pool, ngx_uint_t n, size_t size);
37 ngx_list_init(ngx_list_t *list, ngx_pool_t *pool, ngx_uint_t n, size_t size) argument
39 list->part.elts = ngx_palloc(pool, n * size);
49 list->pool = pool;
H A Dngx_array.h21 ngx_pool_t *pool; member in struct:__anon1
32 ngx_array_init(ngx_array_t *array, ngx_pool_t *pool, ngx_uint_t n, size_t size) argument
42 array->pool = pool;
44 array->elts = ngx_palloc(pool, n * size);
H A Dngx_palloc.c12 static ngx_inline void *ngx_palloc_small(ngx_pool_t *pool, size_t size,
14 static void *ngx_palloc_block(ngx_pool_t *pool, size_t size);
15 static void *ngx_palloc_large(ngx_pool_t *pool, size_t size);
47 ngx_destroy_pool(ngx_pool_t *pool) argument
53 for (c = pool->cleanup; c; c = c->next) {
55 ngx_log_debug1(NGX_LOG_DEBUG_ALLOC, pool->log, 0,
64 * we could allocate the pool->log from this pool
65 * so we cannot use this log while free()ing the pool
68 for (l = pool
100 ngx_reset_pool(ngx_pool_t *pool) argument
123 ngx_palloc(ngx_pool_t *pool, size_t size) argument
136 ngx_pnalloc(ngx_pool_t *pool, size_t size) argument
149 ngx_palloc_small(ngx_pool_t *pool, size_t size, ngx_uint_t align) argument
178 ngx_palloc_block(ngx_pool_t *pool, size_t size) argument
214 ngx_palloc_large(ngx_pool_t *pool, size_t size) argument
253 ngx_pmemalign(ngx_pool_t *pool, size_t size, size_t alignment) argument
278 ngx_pfree(ngx_pool_t *pool, void *p) argument
298 ngx_pcalloc(ngx_pool_t *pool, size_t size) argument
[all...]
H A Dngx_slab.c44 #define ngx_slab_slots(pool) \
45 (ngx_slab_page_t *) ((u_char *) (pool) + sizeof(ngx_slab_pool_t))
52 #define ngx_slab_page_addr(pool, page) \
53 ((((page) - (pool)->pages) << ngx_pagesize_shift) \
54 + (uintptr_t) (pool)->start)
72 static ngx_slab_page_t *ngx_slab_alloc_pages(ngx_slab_pool_t *pool,
74 static void ngx_slab_free_pages(ngx_slab_pool_t *pool, ngx_slab_page_t *page,
76 static void ngx_slab_error(ngx_slab_pool_t *pool, ngx_uint_t level,
86 ngx_slab_init(ngx_slab_pool_t *pool) argument
104 pool
166 ngx_slab_alloc(ngx_slab_pool_t *pool, size_t size) argument
181 ngx_slab_alloc_locked(ngx_slab_pool_t *pool, size_t size) argument
412 ngx_slab_calloc(ngx_slab_pool_t *pool, size_t size) argument
427 ngx_slab_calloc_locked(ngx_slab_pool_t *pool, size_t size) argument
441 ngx_slab_free(ngx_slab_pool_t *pool, void *p) argument
452 ngx_slab_free_locked(ngx_slab_pool_t *pool, void *p) argument
667 ngx_slab_alloc_pages(ngx_slab_pool_t *pool, ngx_uint_t pages) argument
723 ngx_slab_free_pages(ngx_slab_pool_t *pool, ngx_slab_page_t *page, ngx_uint_t pages) argument
803 ngx_slab_error(ngx_slab_pool_t *pool, ngx_uint_t level, char *text) argument
[all...]
H A Dngx_palloc.h79 void ngx_destroy_pool(ngx_pool_t *pool);
80 void ngx_reset_pool(ngx_pool_t *pool);
82 void *ngx_palloc(ngx_pool_t *pool, size_t size);
83 void *ngx_pnalloc(ngx_pool_t *pool, size_t size);
84 void *ngx_pcalloc(ngx_pool_t *pool, size_t size);
85 void *ngx_pmemalign(ngx_pool_t *pool, size_t size, size_t alignment);
86 ngx_int_t ngx_pfree(ngx_pool_t *pool, void *p);
H A Dngx_slab.h62 void ngx_slab_init(ngx_slab_pool_t *pool);
63 void *ngx_slab_alloc(ngx_slab_pool_t *pool, size_t size);
64 void *ngx_slab_alloc_locked(ngx_slab_pool_t *pool, size_t size);
65 void *ngx_slab_calloc(ngx_slab_pool_t *pool, size_t size);
66 void *ngx_slab_calloc_locked(ngx_slab_pool_t *pool, size_t size);
67 void ngx_slab_free(ngx_slab_pool_t *pool, void *p);
68 void ngx_slab_free_locked(ngx_slab_pool_t *pool, void *p);
H A Dngx_crypt.h16 ngx_int_t ngx_crypt(ngx_pool_t *pool, u_char *key, u_char *salt,
H A Dngx_buf.h106 ngx_pool_t *pool; member in struct:ngx_output_chain_ctx_s
120 ngx_pool_t *pool; member in struct:__anon3
143 ngx_buf_t *ngx_create_temp_buf(ngx_pool_t *pool, size_t size);
144 ngx_chain_t *ngx_create_chain_of_bufs(ngx_pool_t *pool, ngx_bufs_t *bufs);
147 #define ngx_alloc_buf(pool) ngx_palloc(pool, sizeof(ngx_buf_t))
148 #define ngx_calloc_buf(pool) ngx_pcalloc(pool, sizeof(ngx_buf_t))
150 ngx_chain_t *ngx_alloc_chain_link(ngx_pool_t *pool);
151 #define ngx_free_chain(pool, c
[all...]
H A Dngx_list.c13 ngx_list_create(ngx_pool_t *pool, ngx_uint_t n, size_t size) argument
17 list = ngx_palloc(pool, sizeof(ngx_list_t));
22 if (ngx_list_init(list, pool, n, size) != NGX_OK) {
42 last = ngx_palloc(l->pool, sizeof(ngx_list_part_t));
47 last->elts = ngx_palloc(l->pool, l->nalloc * l->size);
H A Dngx_crypt.c16 static ngx_int_t ngx_crypt_apr1(ngx_pool_t *pool, u_char *key, u_char *salt,
18 static ngx_int_t ngx_crypt_plain(ngx_pool_t *pool, u_char *key, u_char *salt,
20 static ngx_int_t ngx_crypt_ssha(ngx_pool_t *pool, u_char *key, u_char *salt,
22 static ngx_int_t ngx_crypt_sha(ngx_pool_t *pool, u_char *key, u_char *salt,
30 ngx_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted) argument
33 return ngx_crypt_apr1(pool, key, salt, encrypted);
36 return ngx_crypt_plain(pool, key, salt, encrypted);
39 return ngx_crypt_ssha(pool, key, salt, encrypted);
42 return ngx_crypt_sha(pool, key, salt, encrypted);
47 return ngx_libc_crypt(pool, ke
52 ngx_crypt_apr1(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted) argument
168 ngx_crypt_plain(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted) argument
188 ngx_crypt_ssha(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted) argument
240 ngx_crypt_sha(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted) argument
[all...]
H A Dngx_buf.c13 ngx_create_temp_buf(ngx_pool_t *pool, size_t size) argument
17 b = ngx_calloc_buf(pool);
22 b->start = ngx_palloc(pool, size);
48 ngx_alloc_chain_link(ngx_pool_t *pool) argument
52 cl = pool->chain;
55 pool->chain = cl->next;
59 cl = ngx_palloc(pool, sizeof(ngx_chain_t));
69 ngx_create_chain_of_bufs(ngx_pool_t *pool, ngx_bufs_t *bufs) argument
76 p = ngx_palloc(pool, bufs->num * bufs->size);
85 b = ngx_calloc_buf(pool);
127 ngx_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **chain, ngx_chain_t *in) argument
[all...]
H A Dngx_regex.c81 ngx_regex_malloc_init(ngx_pool_t *pool) argument
83 ngx_pcre_pool = pool;
103 ngx_regex_malloc_init(rc->pool);
108 /* ensure that there is no current pool */
128 rc->regex = ngx_pcalloc(rc->pool, sizeof(ngx_regex_t));
233 ngx_pool_t *pool; local
234 pool = ngx_pcre_pool;
236 if (pool) {
237 return ngx_palloc(pool, size);
313 cln = ngx_pool_cleanup_add(cycle->pool,
[all...]
H A Dngx_inet.h117 ngx_int_t ngx_parse_addr(ngx_pool_t *pool, ngx_addr_t *addr, u_char *text,
119 ngx_int_t ngx_parse_addr_port(ngx_pool_t *pool, ngx_addr_t *addr,
121 ngx_int_t ngx_parse_url(ngx_pool_t *pool, ngx_url_t *u);
122 ngx_int_t ngx_inet_resolve_host(ngx_pool_t *pool, ngx_url_t *u);
H A Dngx_syslog.h12 ngx_pool_t *pool; member in struct:__anon73
H A Dngx_thread_pool.h32 ngx_thread_task_t *ngx_thread_task_alloc(ngx_pool_t *pool, size_t size);
H A Dngx_output_chain.c36 static ngx_int_t ngx_output_chain_add_copy(ngx_pool_t *pool,
81 if (ngx_output_chain_add_copy(ctx->pool, &ctx->in, in) == NGX_ERROR) {
109 ngx_log_error(NGX_LOG_ALERT, ctx->pool->log, 0,
161 ngx_free_chain(ctx->pool, cl);
193 cl = ngx_alloc_chain_link(ctx->pool);
220 ngx_chain_update_chains(ctx->pool, &ctx->free, &ctx->busy, &out,
291 if (file->aio == NULL && ngx_file_aio_init(file, ctx->pool) != NGX_OK) {
307 ngx_output_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **chain, argument
323 cl = ngx_alloc_chain_link(pool);
338 b = ngx_calloc_buf(pool);
[all...]
/tldk/app/nginx/src/os/unix/
H A Dngx_user.h20 ngx_int_t ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt,
H A Dngx_user.c27 ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted) argument
44 *encrypted = ngx_pnalloc(pool, len);
53 ngx_log_error(NGX_LOG_CRIT, pool->log, ngx_errno, "crypt_r() failed");
61 ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted) argument
72 *encrypted = ngx_pnalloc(pool, len);
83 ngx_log_error(NGX_LOG_CRIT, pool->log, err, "crypt() failed");
/tldk/app/nginx/src/os/win32/
H A Dngx_user.c14 ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted) argument
H A Dngx_user.h21 ngx_int_t ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt,
/tldk/app/nginx/src/event/
H A Dngx_event_openssl.h191 ngx_int_t ngx_ssl_get_protocol(ngx_connection_t *c, ngx_pool_t *pool,
193 ngx_int_t ngx_ssl_get_cipher_name(ngx_connection_t *c, ngx_pool_t *pool,
195 ngx_int_t ngx_ssl_get_ciphers(ngx_connection_t *c, ngx_pool_t *pool,
197 ngx_int_t ngx_ssl_get_curves(ngx_connection_t *c, ngx_pool_t *pool,
199 ngx_int_t ngx_ssl_get_session_id(ngx_connection_t *c, ngx_pool_t *pool,
201 ngx_int_t ngx_ssl_get_session_reused(ngx_connection_t *c, ngx_pool_t *pool,
203 ngx_int_t ngx_ssl_get_server_name(ngx_connection_t *c, ngx_pool_t *pool,
205 ngx_int_t ngx_ssl_get_raw_certificate(ngx_connection_t *c, ngx_pool_t *pool,
207 ngx_int_t ngx_ssl_get_certificate(ngx_connection_t *c, ngx_pool_t *pool,
209 ngx_int_t ngx_ssl_get_subject_dn(ngx_connection_t *c, ngx_pool_t *pool,
[all...]
H A Dngx_event_acceptex.c64 c->addr_text.data = ngx_pnalloc(c->pool, ls->addr_text_max_len);
123 c->pool = ngx_create_pool(ls->pool_size, &ls->log);
124 if (c->pool == NULL) {
129 log = ngx_palloc(c->pool, sizeof(ngx_log_t));
135 c->buffer = ngx_create_temp_buf(c->pool, ls->post_accept_buffer_size
142 c->local_sockaddr = ngx_palloc(c->pool, ls->socklen);
148 c->sockaddr = ngx_palloc(c->pool, ls->socklen);
217 if (c->pool) {
218 ngx_destroy_pool(c->pool);
/tldk/app/nginx/src/http/modules/
H A Dngx_http_map_module.c163 mcf = ngx_palloc(cf->pool, sizeof(ngx_http_map_conf_t));
183 ngx_pool_t *pool; local
202 map = ngx_pcalloc(cf->pool, sizeof(ngx_http_map_ctx_t));
238 pool = ngx_create_pool(NGX_DEFAULT_POOL_SIZE, cf->log);
239 if (pool == NULL) {
243 ctx.keys.pool = cf->pool;
244 ctx.keys.temp_pool = pool;
247 ngx_destroy_pool(pool);
251 ctx.values_hash = ngx_pcalloc(pool, sizeo
[all...]
/tldk/app/nginx/src/stream/
H A Dngx_stream_map_module.c161 mcf = ngx_palloc(cf->pool, sizeof(ngx_stream_map_conf_t));
181 ngx_pool_t *pool; local
200 map = ngx_pcalloc(cf->pool, sizeof(ngx_stream_map_ctx_t));
236 pool = ngx_create_pool(NGX_DEFAULT_POOL_SIZE, cf->log);
237 if (pool == NULL) {
241 ctx.keys.pool = cf->pool;
242 ctx.keys.temp_pool = pool;
245 ngx_destroy_pool(pool);
249 ctx.values_hash = ngx_pcalloc(pool, sizeo
[all...]
/tldk/app/nginx/src/mail/
H A Dngx_mail_auth_http_module.c59 ngx_pool_t *pool; member in struct:ngx_mail_auth_http_ctx_s
75 ngx_pool_t *pool, ngx_mail_auth_http_conf_t *ahcf);
76 static ngx_int_t ngx_mail_auth_http_escape(ngx_pool_t *pool, ngx_str_t *text,
165 ngx_pool_t *pool; local
171 pool = ngx_create_pool(2048, s->connection->log);
172 if (pool == NULL) {
177 ctx = ngx_pcalloc(pool, sizeof(ngx_mail_auth_http_ctx_t));
179 ngx_destroy_pool(pool);
184 ctx->pool = pool;
1132 ngx_mail_auth_http_create_request(ngx_mail_session_t *s, ngx_pool_t *pool, ngx_mail_auth_http_conf_t *ahcf) argument
1391 ngx_mail_auth_http_escape(ngx_pool_t *pool, ngx_str_t *text, ngx_str_t *escaped) argument
[all...]

Completed in 12 milliseconds

12345678