Mercurial > hg > nginx-quic
comparison src/core/ngx_conf_file.c @ 99:a059e1aa65d4
nginx-0.0.1-2003-06-02-19:24:30 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 02 Jun 2003 15:24:30 +0000 |
parents | c9b243802a17 |
children | 7ebc8b7fb816 |
comparison
equal
deleted
inserted
replaced
98:c9b243802a17 | 99:a059e1aa65d4 |
---|---|
30 | 30 |
31 if (filename) { | 31 if (filename) { |
32 | 32 |
33 /* open configuration file */ | 33 /* open configuration file */ |
34 | 34 |
35 fd = ngx_open_file(filename->data, NGX_FILE_RDONLY); | 35 fd = ngx_open_file(filename->data, NGX_FILE_RDONLY, NGX_FILE_OPEN); |
36 if (fd == NGX_INVALID_FILE) { | 36 if (fd == NGX_INVALID_FILE) { |
37 ngx_log_error(NGX_LOG_EMERG, cf->log, ngx_errno, | 37 ngx_log_error(NGX_LOG_EMERG, cf->log, ngx_errno, |
38 ngx_open_file_n " %s failed", filename->data); | 38 ngx_open_file_n " %s failed", filename->data); |
39 return NGX_CONF_ERROR; | 39 return NGX_CONF_ERROR; |
40 } | 40 } |
140 /* is the directive's argument count right ? */ | 140 /* is the directive's argument count right ? */ |
141 | 141 |
142 if (cmd->type & argument_number[cf->args->nelts - 1]) { | 142 if (cmd->type & argument_number[cf->args->nelts - 1]) { |
143 valid = 1; | 143 valid = 1; |
144 | 144 |
145 } else if (cmd->type & NGX_CONF_ANY1) { | 145 } else if (cmd->type & NGX_CONF_1MORE) { |
146 | 146 |
147 if (cf->args->nelts != 1) { | 147 if (cf->args->nelts != 1) { |
148 valid = 1; | 148 valid = 1; |
149 } else { | 149 } else { |
150 valid = 0; | 150 valid = 0; |