comparison src/core/ngx_conf_file.h @ 571:458b6c3fea65 release-0.3.7

nginx-0.3.7-RELEASE import *) Feature: the "access_log" supports the "buffer=" parameter. *) Bugfix: nginx could not be built on platforms different from i386, amd64, sparc, and ppc; the bug had appeared in 0.3.2.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 27 Oct 2005 15:46:13 +0000
parents 0148586012ab
children 58475592100c
comparison
equal deleted inserted replaced
570:2cdf120d8970 571:458b6c3fea65
32 #define NGX_CONF_TAKE12 (NGX_CONF_TAKE1|NGX_CONF_TAKE2) 32 #define NGX_CONF_TAKE12 (NGX_CONF_TAKE1|NGX_CONF_TAKE2)
33 #define NGX_CONF_TAKE13 (NGX_CONF_TAKE1|NGX_CONF_TAKE3) 33 #define NGX_CONF_TAKE13 (NGX_CONF_TAKE1|NGX_CONF_TAKE3)
34 34
35 #define NGX_CONF_TAKE23 (NGX_CONF_TAKE2|NGX_CONF_TAKE3) 35 #define NGX_CONF_TAKE23 (NGX_CONF_TAKE2|NGX_CONF_TAKE3)
36 36
37 #define NGX_CONF_TAKE123 (NGX_CONF_TAKE1|NGX_CONF_TAKE2|NGX_CONF_TAKE3)
37 #define NGX_CONF_TAKE1234 (NGX_CONF_TAKE1|NGX_CONF_TAKE2|NGX_CONF_TAKE3 \ 38 #define NGX_CONF_TAKE1234 (NGX_CONF_TAKE1|NGX_CONF_TAKE2|NGX_CONF_TAKE3 \
38 |NGX_CONF_TAKE4) 39 |NGX_CONF_TAKE4)
39 40
40 #define NGX_CONF_ARGS_NUMBER 0x000000ff 41 #define NGX_CONF_ARGS_NUMBER 0x000000ff
41 #define NGX_CONF_BLOCK 0x00000100 42 #define NGX_CONF_BLOCK 0x00000100
85 86
86 87
87 struct ngx_open_file_s { 88 struct ngx_open_file_s {
88 ngx_fd_t fd; 89 ngx_fd_t fd;
89 ngx_str_t name; 90 ngx_str_t name;
91
92 u_char *buffer;
93 u_char *pos;
94 u_char *last;
95
90 #if 0 96 #if 0
91 /* e.g. append mode, error_log */ 97 /* e.g. append mode, error_log */
92 ngx_uint_t flags; 98 ngx_uint_t flags;
93 /* e.g. reopen db file */ 99 /* e.g. reopen db file */
94 ngx_uint_t (*handler)(void *data, ngx_open_file_t *file); 100 ngx_uint_t (*handler)(void *data, ngx_open_file_t *file);
119 125
120 ngx_int_t (*init_module)(ngx_cycle_t *cycle); 126 ngx_int_t (*init_module)(ngx_cycle_t *cycle);
121 127
122 ngx_int_t (*init_process)(ngx_cycle_t *cycle); 128 ngx_int_t (*init_process)(ngx_cycle_t *cycle);
123 ngx_int_t (*init_thread)(ngx_cycle_t *cycle); 129 ngx_int_t (*init_thread)(ngx_cycle_t *cycle);
124 ngx_int_t (*exit_thread)(ngx_cycle_t *cycle); 130 void (*exit_thread)(ngx_cycle_t *cycle);
125 ngx_int_t (*exit_process)(ngx_cycle_t *cycle); 131 void (*exit_process)(ngx_cycle_t *cycle);
126 132
127 ngx_int_t (*exit_master)(ngx_cycle_t *cycle); 133 void (*exit_master)(ngx_cycle_t *cycle);
128 134
129 uintptr_t spare_hook0; 135 uintptr_t spare_hook0;
130 uintptr_t spare_hook1; 136 uintptr_t spare_hook1;
131 uintptr_t spare_hook2; 137 uintptr_t spare_hook2;
132 uintptr_t spare_hook3; 138 uintptr_t spare_hook3;