Mercurial > hg > nginx-vendor-1-0
annotate src/core/ngx_palloc.h @ 36:a39d1b793287 NGINX_0_1_18
nginx 0.1.18
*) Workaround: the default values of the devpoll_events and the
devpoll_changes directives changed from 512 to 32 to be compatible
with Solaris 10.
*) Bugfix: the proxy_set_x_var and fastcgi_set_var directives were not
inherited.
*) Bugfix: in the redirect rewrite directive the arguments were
concatenated with URI by the "&" rather than the "?".
*) Bugfix: the lines without trailing ";" in the file being included by
the ngx_http_geo_module were silently ignored.
*) Feature: the ngx_http_stub_status_module.
*) Bugfix: the unknown log format in the access_log directive caused
the segmentation fault.
*) Feature: the new "document_root" parameter of the fastcgi_params
directive.
*) Feature: the fastcgi_redirect_errors directive.
*) Feature: the new "break" modifier of the "rewrite" directive allows
to stop the rewrite/location cycle and sets the current
configuration to the request.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 09 Feb 2005 00:00:00 +0300 |
parents | aab2ea7c0458 |
children | 72eb30262aac |
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 #define ngx_test_null(p, alloc, rc) if ((p = alloc) == NULL) { return rc; } | |
25 | |
26 | |
27 typedef struct ngx_pool_large_s ngx_pool_large_t; | |
28 | |
29 struct ngx_pool_large_s { | |
30 ngx_pool_large_t *next; | |
31 void *alloc; | |
32 }; | |
33 | |
34 | |
35 struct ngx_pool_s { | |
34 | 36 u_char *last; |
37 u_char *end; | |
0 | 38 ngx_pool_t *next; |
39 ngx_pool_large_t *large; | |
40 ngx_log_t *log; | |
41 }; | |
42 | |
43 | |
44 void *ngx_alloc(size_t size, ngx_log_t *log); | |
45 void *ngx_calloc(size_t size, ngx_log_t *log); | |
46 | |
47 ngx_pool_t *ngx_create_pool(size_t size, ngx_log_t *log); | |
48 void ngx_destroy_pool(ngx_pool_t *pool); | |
49 | |
50 void *ngx_palloc(ngx_pool_t *pool, size_t size); | |
51 void *ngx_pcalloc(ngx_pool_t *pool, size_t size); | |
52 ngx_int_t ngx_pfree(ngx_pool_t *pool, void *p); | |
53 | |
54 | |
55 #endif /* _NGX_PALLOC_H_INCLUDED_ */ |