Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_files.h @ 7433:061ec464813f
Win32: removed NGX_DIR_MASK concept.
Previous interface of ngx_open_dir() assumed that passed directory name
has a room for NGX_DIR_MASK at the end (NGX_DIR_MASK_LEN bytes). While all
direct users of ngx_dir_open() followed this interface, this also implied
similar requirements for indirect uses - in particular, via ngx_walk_tree().
Currently none of ngx_walk_tree() uses provides appropriate space, and
fixing this does not look like a right way to go. Instead, ngx_dir_open()
interface was changed to not require any additional space and use
appropriate allocations instead.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 24 Dec 2018 21:07:05 +0300 |
parents | 6e10518f95d8 |
children | 52b34c3f89b4 |
comparison
equal
deleted
inserted
replaced
7432:ecc97cb0eda4 | 7433:061ec464813f |
---|---|
211 #define NGX_MAX_PATH 4096 | 211 #define NGX_MAX_PATH 4096 |
212 | 212 |
213 #endif | 213 #endif |
214 | 214 |
215 | 215 |
216 #define NGX_DIR_MASK_LEN 0 | |
217 | |
218 | |
219 ngx_int_t ngx_open_dir(ngx_str_t *name, ngx_dir_t *dir); | 216 ngx_int_t ngx_open_dir(ngx_str_t *name, ngx_dir_t *dir); |
220 #define ngx_open_dir_n "opendir()" | 217 #define ngx_open_dir_n "opendir()" |
221 | 218 |
222 | 219 |
223 #define ngx_close_dir(d) closedir((d)->dir) | 220 #define ngx_close_dir(d) closedir((d)->dir) |