Mercurial > hg > nginx-vendor-0-8
annotate src/core/ngx_palloc.h @ 50:72eb30262aac NGINX_0_1_25
nginx 0.1.25
*) Bugfix: nginx did run on Linux parisc.
*) Feature: nginx now does not start under FreeBSD if the sysctl
kern.ipc.somaxconn value is too big.
*) Bugfix: if a request was internally redirected by the
ngx_http_index_module module to the ngx_http_proxy_module or
ngx_http_fastcgi_module modules, then the index file was not closed
after request completion.
*) Feature: the "proxy_pass" can be used in location with regular
expression.
*) Feature: the ngx_http_rewrite_filter_module module supports the
condition like "if ($HTTP_USER_AGENT ~ MSIE)".
*) Bugfix: nginx started too slow if the large number of addresses and
text values were used in the "geo" directive.
*) Change: a variable name must be declared as "$name" in the "geo"
directive. The previous variant without "$" is still supported, but
will be removed soon.
*) Feature: the "%{VARIABLE}v" logging parameter.
*) Feature: the "set $name value" directive.
*) Bugfix: gcc 4.0 compatibility.
*) Feature: the --with-openssl-opt=OPTIONS autoconfiguration directive.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Sat, 19 Mar 2005 00:00:00 +0300 |
parents | aab2ea7c0458 |
children | 3050baa54a26 |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_PALLOC_H_INCLUDED_ | |
8 #define _NGX_PALLOC_H_INCLUDED_ | |
9 | |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 | |
14 | |
15 /* | |
16 * NGX_MAX_ALLOC_FROM_POOL should be (ngx_page_size - 1), i.e. 4095 on x86. | |
17 * On FreeBSD 5.x it allows to use the zero copy sending. | |
18 * On Windows NT it decreases a number of locked pages in a kernel. | |
19 */ | |
20 #define NGX_MAX_ALLOC_FROM_POOL (ngx_pagesize - 1) | |
21 | |
22 #define NGX_DEFAULT_POOL_SIZE (16 * 1024) | |
23 | |
24 | |
25 typedef struct ngx_pool_large_s ngx_pool_large_t; | |
26 | |
27 struct ngx_pool_large_s { | |
28 ngx_pool_large_t *next; | |
29 void *alloc; | |
30 }; | |
31 | |
32 | |
33 struct ngx_pool_s { | |
34 | 34 u_char *last; |
35 u_char *end; | |
0 | 36 ngx_pool_t *next; |
37 ngx_pool_large_t *large; | |
38 ngx_log_t *log; | |
39 }; | |
40 | |
41 | |
42 void *ngx_alloc(size_t size, ngx_log_t *log); | |
43 void *ngx_calloc(size_t size, ngx_log_t *log); | |
44 | |
45 ngx_pool_t *ngx_create_pool(size_t size, ngx_log_t *log); | |
46 void ngx_destroy_pool(ngx_pool_t *pool); | |
47 | |
48 void *ngx_palloc(ngx_pool_t *pool, size_t size); | |
49 void *ngx_pcalloc(ngx_pool_t *pool, size_t size); | |
50 ngx_int_t ngx_pfree(ngx_pool_t *pool, void *p); | |
51 | |
52 | |
53 #endif /* _NGX_PALLOC_H_INCLUDED_ */ |