Mercurial > hg > nginx-vendor-0-8
annotate src/core/ngx_palloc.h @ 22:8b6db3bda591 NGINX_0_1_11
nginx 0.1.11
*) Feature: the worker_priority directive.
*) Change: both tcp_nopush and tcp_nodelay directives affect the
transferred response.
*) Bugfix: nginx did not call initgroups().
Thanks to Andrew Sitnikov and Andrei Nigmatulin.
*) Change: now the ngx_http_autoindex_module shows the file size in the
bytes.
*) Bugfix: the ngx_http_autoindex_module returned the 500 error if the
broken symlink was in a directory.
*) Bugfix: the files bigger than 4G could not be transferred using
sendfile.
*) Bugfix: if the backend was resolved to several backends and there
was an error while the response waiting then process may got caught
in an endless loop.
*) Bugfix: the worker process may exit with the "unknown cycle" message
when the /dev/poll method was used.
*) Bugfix: "close() channel failed" errors.
*) Bugfix: the autodetection of the "nobody" and "nogroup" groups.
*) Bugfix: the send_lowat directive did not work on Linux.
*) Bugfix: the segmentation fault occurred if there was no events
section in configuration.
*) Bugfix: nginx could not be built on OpenBSD.
*) Bugfix: the double slashes in "://" in the URI were converted to
":/".
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 02 Dec 2004 00:00:00 +0300 |
parents | f0b350454894 |
children | aab2ea7c0458 |
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 { | |
36 char *last; | |
37 char *end; | |
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_ */ |