comparison src/os/unix/ngx_files.c @ 186:c1f3a3c7c5db

nginx-0.0.1-2003-11-17-00:49:42 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 16 Nov 2003 21:49:42 +0000
parents 3c49eaf3f522
children 02a715e85df1
comparison
equal deleted inserted replaced
185:d5f50cefc322 186:c1f3a3c7c5db
164 } 164 }
165 165
166 file->offset += n; 166 file->offset += n;
167 167
168 return n; 168 return n;
169 }
170
171
172 int ngx_open_dir(ngx_str_t *name, ngx_dir_t *dir)
173 {
174 dir->dir = opendir(name->data);
175
176 if (dir->dir == NULL) {
177 return NGX_ERROR;
178 }
179
180 dir->info_valid = 0;
181
182 return NGX_OK;
169 } 183 }
170 184
171 185
172 #if 0 186 #if 0
173 187