aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_alloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_alloc.h')
-rw-r--r--src/core/ngx_alloc.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/core/ngx_alloc.h b/src/core/ngx_alloc.h
deleted file mode 100644
index e64f84f4a..000000000
--- a/src/core/ngx_alloc.h
+++ /dev/null
@@ -1,54 +0,0 @@
-#ifndef _NGX_ALLOC_H_INCLUDED_
-#define _NGX_ALLOC_H_INCLUDED_
-
-
-#include <ngx_config.h>
-#include <ngx_core.h>
-
-
-/*
- * NGX_MAX_ALLOC_FROM_POOL should be (NGX_PAGE_SIZE - 1), i.e. 4095 on x86.
- * On FreeBSD 5.x it allows to use zero copy send.
- * On Windows NT it decreases a number of locked pages in a kernel.
- */
-#define NGX_MAX_ALLOC_FROM_POOL 4095
-
-#define NGX_DEFAULT_POOL_SIZE (16 * 1024)
-
-#define ngx_test_null(p, alloc, rc) if ((p = alloc) == NULL) { return rc; }
-
-
-typedef struct ngx_pool_large_s ngx_pool_large_t;
-
-struct ngx_pool_large_s {
- ngx_pool_large_t *next;
- void *alloc;
-};
-
-
-typedef struct ngx_pool_s ngx_pool_t;
-
-struct ngx_pool_s {
- char *last;
- char *end;
- ngx_pool_t *next;
- ngx_pool_large_t *large;
- ngx_log_t *log;
-};
-
-
-void *ngx_alloc(size_t size, ngx_log_t *log);
-void *ngx_calloc(size_t size, ngx_log_t *log);
-
-ngx_pool_t *ngx_create_pool(size_t size, ngx_log_t *log);
-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
-
-
-#endif /* _NGX_ALLOC_H_INCLUDED_ */