comparison src/os/unix/ngx_files.c @ 16:74b1868dd3cd NGINX_0_1_8

nginx 0.1.8 *) Bugfix: in the ngx_http_autoindex_module if the long file names were in the listing. *) Feature: the "^~" modifier in the location directive. *) Feature: the proxy_max_temp_file_size directive.
author Igor Sysoev <http://sysoev.ru>
date Sat, 20 Nov 2004 00:00:00 +0300
parents 46833bd150cb
children 6f8b0dc0f8dd
comparison
equal deleted inserted replaced
15:0503cb60c4e4 16:74b1868dd3cd
107 107
108 return n; 108 return n;
109 } 109 }
110 110
111 111
112 int ngx_open_tempfile(u_char *name, ngx_uint_t persistent) 112 ngx_fd_t ngx_open_tempfile(u_char *name, ngx_uint_t persistent)
113 { 113 {
114 ngx_fd_t fd; 114 ngx_fd_t fd;
115 115
116 fd = open((const char *) name, O_CREAT|O_EXCL|O_RDWR, 0600); 116 fd = open((const char *) name, O_CREAT|O_EXCL|O_RDWR, 0600);
117 117
214 214
215 return n; 215 return n;
216 } 216 }
217 217
218 218
219 int ngx_open_dir(ngx_str_t *name, ngx_dir_t *dir) 219 ngx_int_t ngx_open_dir(ngx_str_t *name, ngx_dir_t *dir)
220 { 220 {
221 dir->dir = opendir((const char *) name->data); 221 dir->dir = opendir((const char *) name->data);
222 222
223 if (dir->dir == NULL) { 223 if (dir->dir == NULL) {
224 return NGX_ERROR; 224 return NGX_ERROR;