comparison src/os/unix/ngx_files.c @ 467:bbd6b0b4a2b1 release-0.1.8

nginx-0.1.8-RELEASE import *) 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 <igor@sysoev.ru>
date Sat, 20 Nov 2004 19:52:20 +0000
parents a88a3e4e158f
children 2ff194b74f1e
comparison
equal deleted inserted replaced
466:ee6d66462bff 467:bbd6b0b4a2b1
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;