dir               181 core/ngx_file.c ngx_create_full_path(u_char *dir, ngx_uint_t access)
dir               189 core/ngx_file.c     p = dir + 3;
dir               191 core/ngx_file.c     p = dir + 1;
dir               203 core/ngx_file.c         if (ngx_create_dir(dir, access) == NGX_FILE_ERROR) {
dir               826 core/ngx_file.c     ngx_dir_t   dir;
dir               833 core/ngx_file.c     if (ngx_open_dir(tree, &dir) == NGX_ERROR) {
dir               861 core/ngx_file.c         if (ngx_read_dir(&dir) == NGX_ERROR) {
dir               876 core/ngx_file.c         len = ngx_de_namelen(&dir);
dir               877 core/ngx_file.c         name = ngx_de_name(&dir);
dir               915 core/ngx_file.c         if (!dir.valid_info) {
dir               916 core/ngx_file.c             if (ngx_de_info(file.data, &dir) == NGX_FILE_ERROR) {
dir               923 core/ngx_file.c         if (ngx_de_is_file(&dir)) {
dir               928 core/ngx_file.c             ctx->size = ngx_de_size(&dir);
dir               929 core/ngx_file.c             ctx->access = ngx_de_access(&dir);
dir               930 core/ngx_file.c             ctx->mtime = ngx_de_mtime(&dir);
dir               936 core/ngx_file.c         } else if (ngx_de_is_dir(&dir)) {
dir               941 core/ngx_file.c             ctx->access = ngx_de_access(&dir);
dir               942 core/ngx_file.c             ctx->mtime = ngx_de_mtime(&dir);
dir               952 core/ngx_file.c             ctx->access = ngx_de_access(&dir);
dir               953 core/ngx_file.c             ctx->mtime = ngx_de_mtime(&dir);
dir               985 core/ngx_file.c     if (ngx_close_dir(&dir) == NGX_ERROR) {
dir               129 core/ngx_file.h ngx_err_t ngx_create_full_path(u_char *dir, ngx_uint_t access);
dir                30 http/modules/ngx_http_autoindex_module.c     unsigned       dir:1;
dir                53 http/modules/ngx_http_autoindex_module.c     ngx_dir_t *dir, ngx_str_t *name);
dir               147 http/modules/ngx_http_autoindex_module.c     ngx_dir_t                       dir;
dir               191 http/modules/ngx_http_autoindex_module.c     if (ngx_open_dir(&path, &dir) == NGX_ERROR) {
dir               229 http/modules/ngx_http_autoindex_module.c         return ngx_http_autoindex_error(r, &dir, &path);
dir               239 http/modules/ngx_http_autoindex_module.c         if (ngx_close_dir(&dir) == NGX_ERROR) {
dir               263 http/modules/ngx_http_autoindex_module.c         if (ngx_read_dir(&dir) == NGX_ERROR) {
dir               269 http/modules/ngx_http_autoindex_module.c                 return ngx_http_autoindex_error(r, &dir, &path);
dir               276 http/modules/ngx_http_autoindex_module.c                        "http autoindex file: \"%s\"", ngx_de_name(&dir));
dir               278 http/modules/ngx_http_autoindex_module.c         len = ngx_de_namelen(&dir);
dir               280 http/modules/ngx_http_autoindex_module.c         if (ngx_de_name(&dir)[0] == '.') {
dir               284 http/modules/ngx_http_autoindex_module.c         if (!dir.valid_info) {
dir               294 http/modules/ngx_http_autoindex_module.c                     return ngx_http_autoindex_error(r, &dir, &path);
dir               301 http/modules/ngx_http_autoindex_module.c             ngx_cpystrn(last, ngx_de_name(&dir), len + 1);
dir               303 http/modules/ngx_http_autoindex_module.c             if (ngx_de_info(filename, &dir) == NGX_FILE_ERROR) {
dir               314 http/modules/ngx_http_autoindex_module.c                     return ngx_http_autoindex_error(r, &dir, &path);
dir               317 http/modules/ngx_http_autoindex_module.c                 if (ngx_de_link_info(filename, &dir) == NGX_FILE_ERROR) {
dir               321 http/modules/ngx_http_autoindex_module.c                     return ngx_http_autoindex_error(r, &dir, &path);
dir               328 http/modules/ngx_http_autoindex_module.c             return ngx_http_autoindex_error(r, &dir, &path);
dir               335 http/modules/ngx_http_autoindex_module.c             return ngx_http_autoindex_error(r, &dir, &path);
dir               338 http/modules/ngx_http_autoindex_module.c         ngx_cpystrn(entry->name.data, ngx_de_name(&dir), len + 1);
dir               340 http/modules/ngx_http_autoindex_module.c         entry->escape = 2 * ngx_escape_uri(NULL, ngx_de_name(&dir), len,
dir               351 http/modules/ngx_http_autoindex_module.c         entry->dir = ngx_de_is_dir(&dir);
dir               352 http/modules/ngx_http_autoindex_module.c         entry->mtime = ngx_de_mtime(&dir);
dir               353 http/modules/ngx_http_autoindex_module.c         entry->size = ngx_de_size(&dir);
dir               356 http/modules/ngx_http_autoindex_module.c     if (ngx_close_dir(&dir) == NGX_ERROR) {
dir               425 http/modules/ngx_http_autoindex_module.c         if (entry[i].dir) {
dir               456 http/modules/ngx_http_autoindex_module.c             if (entry[i].dir && NGX_HTTP_AUTOINDEX_NAME_LEN - len > 0) {
dir               478 http/modules/ngx_http_autoindex_module.c             if (entry[i].dir) {
dir               486 http/modules/ngx_http_autoindex_module.c             if (entry[i].dir) {
dir               559 http/modules/ngx_http_autoindex_module.c     if (first->dir && !second->dir) {
dir               564 http/modules/ngx_http_autoindex_module.c     if (!first->dir && second->dir) {
dir               612 http/modules/ngx_http_autoindex_module.c ngx_http_autoindex_error(ngx_http_request_t *r, ngx_dir_t *dir, ngx_str_t *name)
dir               614 http/modules/ngx_http_autoindex_module.c     if (ngx_close_dir(dir) == NGX_ERROR) {
dir                42 http/modules/ngx_http_dav_module.c     ngx_str_t *path, ngx_uint_t dir);
dir               288 http/modules/ngx_http_dav_module.c     ngx_uint_t                i, d, dir;
dir               351 http/modules/ngx_http_dav_module.c         dir = 1;
dir               368 http/modules/ngx_http_dav_module.c         dir = 0;
dir               371 http/modules/ngx_http_dav_module.c     rc = ngx_http_dav_delete_path(r, &path, dir);
dir               382 http/modules/ngx_http_dav_module.c ngx_http_dav_delete_path(ngx_http_request_t *r, ngx_str_t *path, ngx_uint_t dir)
dir               387 http/modules/ngx_http_dav_module.c     if (dir) {
dir               516 http/modules/ngx_http_dav_module.c     ngx_uint_t                overwrite, slash, dir, flags;
dir               703 http/modules/ngx_http_dav_module.c         dir = 0;
dir               722 http/modules/ngx_http_dav_module.c         dir = ngx_is_dir(&fi);
dir               743 http/modules/ngx_http_dav_module.c             rc = ngx_http_dav_delete_path(r, &copy.path, dir);
dir               833 http/modules/ngx_http_dav_module.c     u_char                   *p, *dir;
dir               844 http/modules/ngx_http_dav_module.c     dir = ngx_alloc(len + 1, ctx->log);
dir               845 http/modules/ngx_http_dav_module.c     if (dir == NULL) {
dir               849 http/modules/ngx_http_dav_module.c     p = ngx_cpymem(dir, copy->path.data, copy->path.len);
dir               853 http/modules/ngx_http_dav_module.c                    "http copy dir to: \"%s\"", dir);
dir               855 http/modules/ngx_http_dav_module.c     if (ngx_create_dir(dir, ngx_dir_access(ctx->access)) == NGX_FILE_ERROR) {
dir               857 http/modules/ngx_http_dav_module.c                                   dir);
dir               860 http/modules/ngx_http_dav_module.c     ngx_free(dir);
dir               869 http/modules/ngx_http_dav_module.c     u_char                   *p, *dir;
dir               880 http/modules/ngx_http_dav_module.c     dir = ngx_alloc(len + 1, ctx->log);
dir               881 http/modules/ngx_http_dav_module.c     if (dir == NULL) {
dir               885 http/modules/ngx_http_dav_module.c     p = ngx_cpymem(dir, copy->path.data, copy->path.len);
dir               889 http/modules/ngx_http_dav_module.c                    "http copy dir time to: \"%s\"", dir);
dir               895 http/modules/ngx_http_dav_module.c     fd = ngx_open_file(dir, NGX_FILE_RDWR, NGX_FILE_OPEN, 0);
dir               898 http/modules/ngx_http_dav_module.c         (void) ngx_http_dav_error(ctx->log, ngx_errno, 0, ngx_open_file_n, dir);
dir               904 http/modules/ngx_http_dav_module.c                       ngx_set_file_time_n " \"%s\" failed", dir);
dir               909 http/modules/ngx_http_dav_module.c                       ngx_close_file_n " \"%s\" failed", dir);
dir               917 http/modules/ngx_http_dav_module.c     if (ngx_set_file_time(dir, 0, ctx->mtime) != NGX_OK) {
dir               919 http/modules/ngx_http_dav_module.c                       ngx_set_file_time_n " \"%s\" failed", dir);
dir               924 http/modules/ngx_http_dav_module.c     ngx_free(dir);
dir               276 http/modules/ngx_http_index_module.c     ngx_str_t             dir;
dir               286 http/modules/ngx_http_index_module.c     dir.len = last - path;
dir               287 http/modules/ngx_http_index_module.c     dir.data = path;
dir               290 http/modules/ngx_http_index_module.c                    "http index check dir: \"%V\"", &dir);
dir               299 http/modules/ngx_http_index_module.c     if (ngx_open_cached_file(clcf->open_file_cache, &dir, &of, r->pool)
dir               306 http/modules/ngx_http_index_module.c                 return ngx_http_index_error(r, clcf, dir.data, NGX_ENOENT);
dir               323 http/modules/ngx_http_index_module.c                           "%s \"%s\" failed", of.failed, dir.data);
dir               336 http/modules/ngx_http_index_module.c                   "\"%s\" is not a directory", dir.data);
dir                21 http/modules/ngx_http_random_index_module.c     ngx_dir_t *dir, ngx_str_t *name);
dir                80 http/modules/ngx_http_random_index_module.c     ngx_dir_t                          dir;
dir               118 http/modules/ngx_http_random_index_module.c     if (ngx_open_dir(&path, &dir) == NGX_ERROR) {
dir               144 http/modules/ngx_http_random_index_module.c         return ngx_http_random_index_error(r, &dir, &path);
dir               153 http/modules/ngx_http_random_index_module.c         if (ngx_read_dir(&dir) == NGX_ERROR) {
dir               159 http/modules/ngx_http_random_index_module.c                 return ngx_http_random_index_error(r, &dir, &path);
dir               166 http/modules/ngx_http_random_index_module.c                        "http random index file: \"%s\"", ngx_de_name(&dir));
dir               168 http/modules/ngx_http_random_index_module.c         if (ngx_de_name(&dir)[0] == '.') {
dir               172 http/modules/ngx_http_random_index_module.c         len = ngx_de_namelen(&dir);
dir               174 http/modules/ngx_http_random_index_module.c         if (dir.type == 0 || ngx_de_is_link(&dir)) {
dir               184 http/modules/ngx_http_random_index_module.c                     return ngx_http_random_index_error(r, &dir, &path);
dir               191 http/modules/ngx_http_random_index_module.c             ngx_cpystrn(last, ngx_de_name(&dir), len + 1);
dir               193 http/modules/ngx_http_random_index_module.c             if (ngx_de_info(filename, &dir) == NGX_FILE_ERROR) {
dir               199 http/modules/ngx_http_random_index_module.c                     return ngx_http_random_index_error(r, &dir, &path);
dir               202 http/modules/ngx_http_random_index_module.c                 if (ngx_de_link_info(filename, &dir) == NGX_FILE_ERROR) {
dir               206 http/modules/ngx_http_random_index_module.c                     return ngx_http_random_index_error(r, &dir, &path);
dir               211 http/modules/ngx_http_random_index_module.c         if (!ngx_de_is_file(&dir)) {
dir               217 http/modules/ngx_http_random_index_module.c             return ngx_http_random_index_error(r, &dir, &path);
dir               224 http/modules/ngx_http_random_index_module.c             return ngx_http_random_index_error(r, &dir, &path);
dir               227 http/modules/ngx_http_random_index_module.c         ngx_memcpy(name->data, ngx_de_name(&dir), len);
dir               230 http/modules/ngx_http_random_index_module.c     if (ngx_close_dir(&dir) == NGX_ERROR) {
dir               260 http/modules/ngx_http_random_index_module.c ngx_http_random_index_error(ngx_http_request_t *r, ngx_dir_t *dir,
dir               263 http/modules/ngx_http_random_index_module.c     if (ngx_close_dir(dir) == NGX_ERROR) {
dir               314 os/unix/ngx_files.c ngx_open_dir(ngx_str_t *name, ngx_dir_t *dir)
dir               316 os/unix/ngx_files.c     dir->dir = opendir((const char *) name->data);
dir               318 os/unix/ngx_files.c     if (dir->dir == NULL) {
dir               322 os/unix/ngx_files.c     dir->valid_info = 0;
dir               329 os/unix/ngx_files.c ngx_read_dir(ngx_dir_t *dir)
dir               331 os/unix/ngx_files.c     dir->de = readdir(dir->dir);
dir               333 os/unix/ngx_files.c     if (dir->de) {
dir               335 os/unix/ngx_files.c         dir->type = dir->de->d_type;
dir               337 os/unix/ngx_files.c         dir->type = 0;
dir                30 os/unix/ngx_files.h     DIR                         *dir;
dir               190 os/unix/ngx_files.h ngx_int_t ngx_open_dir(ngx_str_t *name, ngx_dir_t *dir);
dir               194 os/unix/ngx_files.h #define ngx_close_dir(d)         closedir((d)->dir)
dir               198 os/unix/ngx_files.h ngx_int_t ngx_read_dir(ngx_dir_t *dir);
dir               213 os/unix/ngx_files.h #define ngx_de_name(dir)         ((u_char *) (dir)->de->d_name)
dir               215 os/unix/ngx_files.h #define ngx_de_namelen(dir)      (dir)->de->d_namlen
dir               217 os/unix/ngx_files.h #define ngx_de_namelen(dir)      ngx_strlen((dir)->de->d_name)
dir               221 os/unix/ngx_files.h ngx_de_info(u_char *name, ngx_dir_t *dir)
dir               223 os/unix/ngx_files.h     dir->type = 0;
dir               224 os/unix/ngx_files.h     return stat((const char *) name, &dir->info);
dir               228 os/unix/ngx_files.h #define ngx_de_link_info(name, dir)  lstat((const char *) name, &(dir)->info)
dir               238 os/unix/ngx_files.h #define ngx_de_is_dir(dir)                                                   \
dir               239 os/unix/ngx_files.h     (((dir)->type) ? ((dir)->type == DT_DIR) : (S_ISDIR((dir)->info.st_mode)))
dir               240 os/unix/ngx_files.h #define ngx_de_is_file(dir)                                                  \
dir               241 os/unix/ngx_files.h     (((dir)->type) ? ((dir)->type == DT_REG) : (S_ISREG((dir)->info.st_mode)))
dir               242 os/unix/ngx_files.h #define ngx_de_is_link(dir)                                                  \
dir               243 os/unix/ngx_files.h     (((dir)->type) ? ((dir)->type == DT_LNK) : (S_ISLNK((dir)->info.st_mode)))
dir               247 os/unix/ngx_files.h #define ngx_de_is_dir(dir)       (S_ISDIR((dir)->info.st_mode))
dir               248 os/unix/ngx_files.h #define ngx_de_is_file(dir)      (S_ISREG((dir)->info.st_mode))
dir               249 os/unix/ngx_files.h #define ngx_de_is_link(dir)      (S_ISLNK((dir)->info.st_mode))
dir               253 os/unix/ngx_files.h #define ngx_de_access(dir)       (((dir)->info.st_mode) & 0777)
dir               254 os/unix/ngx_files.h #define ngx_de_size(dir)         (dir)->info.st_size
dir               255 os/unix/ngx_files.h #define ngx_de_mtime(dir)        (dir)->info.st_mtime