diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-10-02 08:46:45 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-10-02 08:46:45 +0000 |
commit | 97c2f469c342566121bb792c45e8333ad941fb14 (patch) | |
tree | bcfa00dd6d977982facbd891857dd9d7e15df686 /src/os/unix/ngx_files.h | |
parent | 97c7e1a98621857a5eb2d44c477f7f6384417b52 (diff) | |
download | nginx-97c2f469c342566121bb792c45e8333ad941fb14.tar.gz nginx-97c2f469c342566121bb792c45e8333ad941fb14.zip |
glob support in include
Diffstat (limited to 'src/os/unix/ngx_files.h')
-rw-r--r-- | src/os/unix/ngx_files.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h index ff2515699..3e1e22519 100644 --- a/src/os/unix/ngx_files.h +++ b/src/os/unix/ngx_files.h @@ -130,6 +130,20 @@ ngx_int_t ngx_open_dir(ngx_str_t *name, ngx_dir_t *dir); #define ngx_de_mtime(dir) (dir)->info.st_mtime +typedef struct { + int n; + glob_t pglob; + u_char *pattern; + ngx_log_t *log; +} ngx_glob_t; + + +ngx_int_t ngx_open_glob(ngx_glob_t *gl); +#define ngx_open_glob_n "glob()" +ngx_int_t ngx_read_glob(ngx_glob_t *gl, ngx_str_t *name); +void ngx_close_glob(ngx_glob_t *gl); + + ngx_err_t ngx_trylock_fd(ngx_fd_t fd); ngx_err_t ngx_lock_fd(ngx_fd_t fd); ngx_err_t ngx_unlock_fd(ngx_fd_t fd); |