aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_alloc.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-10-23 06:13:16 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-10-23 06:13:16 +0000
commitf107910a9ef3b7de8752fc4e9e34cb69c1924a09 (patch)
tree35335e8d2e15d30819f6818ebc1871ee5a74b568 /src/core/ngx_alloc.h
parentdc9dd434aa1cfd24a98265742ff0ed4aeefc1f05 (diff)
downloadnginx-f107910a9ef3b7de8752fc4e9e34cb69c1924a09.tar.gz
nginx-f107910a9ef3b7de8752fc4e9e34cb69c1924a09.zip
nginx-0.0.1-2003-10-23-10:13:16 import
Diffstat (limited to 'src/core/ngx_alloc.h')
-rw-r--r--src/core/ngx_alloc.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/ngx_alloc.h b/src/core/ngx_alloc.h
index b63f4bdc1..946361182 100644
--- a/src/core/ngx_alloc.h
+++ b/src/core/ngx_alloc.h
@@ -6,9 +6,10 @@
#include <ngx_core.h>
-/* NGX_MAX_ALLOC_FROM_POOL should be (PAGE_SIZE - 1), i.e. 4095 on x86.
- On FreeBSD 5.x it allows to use zero copy send.
- On Windows NT it decreases number of locked pages in kernel.
+/*
+ * NGX_MAX_ALLOC_FROM_POOL should be (PAGE_SIZE - 1), i.e. 4095 on x86.
+ * On FreeBSD 5.x it allows to use zero copy send.
+ * On Windows NT it decreases number of locked pages in kernel.
*/
#define NGX_MAX_ALLOC_FROM_POOL 4095
@@ -44,6 +45,8 @@ void ngx_destroy_pool(ngx_pool_t *pool);
void *ngx_palloc(ngx_pool_t *pool, size_t size);
void *ngx_pcalloc(ngx_pool_t *pool, size_t size);
+void ngx_pfree(ngx_pool_t *pool, void *p);
+
#define ngx_free free