From aa741f87273f2137d9a52080593c5fe6f1d1b0ea Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Mon, 24 Dec 2018 21:07:05 +0300 Subject: 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. --- src/os/unix/ngx_files.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/os/unix') diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h index 07872b138..383e38e65 100644 --- a/src/os/unix/ngx_files.h +++ b/src/os/unix/ngx_files.h @@ -213,9 +213,6 @@ void ngx_close_file_mapping(ngx_file_mapping_t *fm); #endif -#define NGX_DIR_MASK_LEN 0 - - ngx_int_t ngx_open_dir(ngx_str_t *name, ngx_dir_t *dir); #define ngx_open_dir_n "opendir()" -- cgit v1.2.3