file              383 core/nginx.c       if (cycle->log->file->fd != ngx_stderr) {
file              385 core/nginx.c           if (ngx_set_stderr(cycle->log->file->fd) == NGX_FILE_ERROR) {
file              392 core/nginx.c       if (log->file->fd != ngx_stderr) {
file              393 core/nginx.c           if (ngx_close_file(log->file->fd) == NGX_FILE_ERROR) {
file               28 core/ngx_buf.h     ngx_file_t      *file;
file               76 core/ngx_buf.h     ngx_file_t *file);
file               86 core/ngx_conf_file.c     conf_file.file.fd = NGX_INVALID_FILE;
file               87 core/ngx_conf_file.c     conf_file.file.name.data = NULL;
file              136 core/ngx_conf_file.c         if (ngx_fd_info(fd, &cf->conf_file->file.info) == -1) {
file              153 core/ngx_conf_file.c         cf->conf_file->file.fd = fd;
file              154 core/ngx_conf_file.c         cf->conf_file->file.name.len = filename->len;
file              155 core/ngx_conf_file.c         cf->conf_file->file.name.data = filename->data;
file              156 core/ngx_conf_file.c         cf->conf_file->file.offset = 0;
file              157 core/ngx_conf_file.c         cf->conf_file->file.log = cf->log;
file              162 core/ngx_conf_file.c     } else if (cf->conf_file->file.fd != NGX_INVALID_FILE) {
file              459 core/ngx_conf_file.c     file_size = ngx_file_size(&cf->conf_file->file.info);
file              465 core/ngx_conf_file.c             if (cf->conf_file->file.offset >= file_size) {
file              469 core/ngx_conf_file.c                     if (cf->conf_file->file.fd == NGX_INVALID_FILE) {
file              513 core/ngx_conf_file.c             size = (ssize_t) (file_size - cf->conf_file->file.offset);
file              519 core/ngx_conf_file.c             n = ngx_read_file(&cf->conf_file->file, b->start + len, size,
file              520 core/ngx_conf_file.c                               cf->conf_file->file.offset);
file              745 core/ngx_conf_file.c     ngx_str_t   *value, file, name;
file              749 core/ngx_conf_file.c     file = value[1];
file              751 core/ngx_conf_file.c     ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data);
file              753 core/ngx_conf_file.c     if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK) {
file              757 core/ngx_conf_file.c     if (strpbrk((char *) file.data, "*?[") == NULL) {
file              759 core/ngx_conf_file.c         ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data);
file              761 core/ngx_conf_file.c         return ngx_conf_parse(cf, &file);
file              766 core/ngx_conf_file.c     gl.pattern = file.data;
file              772 core/ngx_conf_file.c                            ngx_open_glob_n " \"%s\" failed", file.data);
file              785 core/ngx_conf_file.c         file.len = name.len++;
file              786 core/ngx_conf_file.c         file.data = ngx_pstrdup(cf->pool, &name);
file              788 core/ngx_conf_file.c         ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data);
file              790 core/ngx_conf_file.c         rv = ngx_conf_parse(cf, &file);
file              904 core/ngx_conf_file.c     ngx_open_file_t  *file;
file              918 core/ngx_conf_file.c         file = part->elts;
file              927 core/ngx_conf_file.c                 file = part->elts;
file              931 core/ngx_conf_file.c             if (full.len != file[i].name.len) {
file              935 core/ngx_conf_file.c             if (ngx_strcmp(full.data, file[i].name.data) == 0) {
file              936 core/ngx_conf_file.c                 return &file[i];
file              941 core/ngx_conf_file.c     file = ngx_list_push(&cycle->open_files);
file              942 core/ngx_conf_file.c     if (file == NULL) {
file              947 core/ngx_conf_file.c         file->fd = NGX_INVALID_FILE;
file              948 core/ngx_conf_file.c         file->name = full;
file              951 core/ngx_conf_file.c         file->fd = ngx_stderr;
file              952 core/ngx_conf_file.c         file->name = *name;
file              955 core/ngx_conf_file.c     file->buffer = NULL;
file              957 core/ngx_conf_file.c     return file;
file              967 core/ngx_conf_file.c     ngx_open_file_t  *file;
file              972 core/ngx_conf_file.c     file = part->elts;
file              981 core/ngx_conf_file.c             file = part->elts;
file              985 core/ngx_conf_file.c         len = file[i].pos - file[i].buffer;
file              987 core/ngx_conf_file.c         if (file[i].buffer == NULL || len == 0) {
file              991 core/ngx_conf_file.c         n = ngx_write_fd(file[i].fd, file[i].buffer, len);
file              996 core/ngx_conf_file.c                           file[i].name.data);
file             1001 core/ngx_conf_file.c                           file[i].name.data, n, len);
file             1029 core/ngx_conf_file.c     if (cf->conf_file->file.fd == NGX_INVALID_FILE) {
file             1037 core/ngx_conf_file.c                   cf->conf_file->file.name.data, cf->conf_file->line);
file              101 core/ngx_conf_file.h     ngx_uint_t          (*handler)(void *data, ngx_open_file_t *file);
file              155 core/ngx_conf_file.h     ngx_file_t            file;
file               16 core/ngx_cycle.c static ngx_int_t ngx_test_lockfile(u_char *file, ngx_log_t *log);
file               54 core/ngx_cycle.c     ngx_open_file_t     *file;
file              341 core/ngx_cycle.c     if (cycle->new_log.file == NULL) {
file              342 core/ngx_cycle.c         cycle->new_log.file = ngx_conf_open_file(cycle, &error_log);
file              343 core/ngx_cycle.c         if (cycle->new_log.file == NULL) {
file              351 core/ngx_cycle.c     file = part->elts;
file              360 core/ngx_cycle.c             file = part->elts;
file              364 core/ngx_cycle.c         if (file[i].name.len == 0) {
file              368 core/ngx_cycle.c         file[i].fd = ngx_open_file(file[i].name.data,
file              375 core/ngx_cycle.c                        &file[i], file[i].fd, file[i].name.data);
file              377 core/ngx_cycle.c         if (file[i].fd == NGX_INVALID_FILE) {
file              380 core/ngx_cycle.c                           file[i].name.data);
file              385 core/ngx_cycle.c         if (fcntl(file[i].fd, F_SETFD, FD_CLOEXEC) == -1) {
file              388 core/ngx_cycle.c                           file[i].name.data);
file              587 core/ngx_cycle.c     if (!ngx_use_stderr && cycle->log->file->fd != ngx_stderr) {
file              589 core/ngx_cycle.c         if (ngx_set_stderr(cycle->log->file->fd) == NGX_FILE_ERROR) {
file              697 core/ngx_cycle.c     file = part->elts;
file              706 core/ngx_cycle.c             file = part->elts;
file              710 core/ngx_cycle.c         if (file[i].fd == NGX_INVALID_FILE || file[i].fd == ngx_stderr) {
file              714 core/ngx_cycle.c         if (ngx_close_file(file[i].fd) == NGX_FILE_ERROR) {
file              717 core/ngx_cycle.c                           file[i].name.data);
file              797 core/ngx_cycle.c     file = part->elts;
file              806 core/ngx_cycle.c             file = part->elts;
file              810 core/ngx_cycle.c         if (file[i].fd == NGX_INVALID_FILE || file[i].fd == ngx_stderr) {
file              814 core/ngx_cycle.c         if (ngx_close_file(file[i].fd) == NGX_FILE_ERROR) {
file              817 core/ngx_cycle.c                           file[i].name.data);
file              924 core/ngx_cycle.c     u_char           *file;
file              947 core/ngx_cycle.c     file = NULL;
file              951 core/ngx_cycle.c     file = ngx_pnalloc(cycle->pool, cycle->lock_file.len + zn->shm.name.len);
file              952 core/ngx_cycle.c     if (file == NULL) {
file              956 core/ngx_cycle.c     (void) ngx_sprintf(file, "%V%V%Z", &cycle->lock_file, &zn->shm.name);
file              960 core/ngx_cycle.c     if (ngx_shmtx_create(&sp->mutex, (void *) &sp->lock, file) != NGX_OK) {
file              975 core/ngx_cycle.c     ngx_file_t  file;
file              982 core/ngx_cycle.c     ngx_memzero(&file, sizeof(ngx_file_t));
file              984 core/ngx_cycle.c     file.name = *name;
file              985 core/ngx_cycle.c     file.log = log;
file              989 core/ngx_cycle.c     file.fd = ngx_open_file(file.name.data, NGX_FILE_RDWR,
file              992 core/ngx_cycle.c     if (file.fd == NGX_INVALID_FILE) {
file              994 core/ngx_cycle.c                       ngx_open_file_n " \"%s\" failed", file.name.data);
file             1001 core/ngx_cycle.c         if (ngx_write_file(&file, pid, len, 0) == NGX_ERROR) {
file             1006 core/ngx_cycle.c     if (ngx_close_file(file.fd) == NGX_FILE_ERROR) {
file             1008 core/ngx_cycle.c                       ngx_close_file_n " \"%s\" failed", file.name.data);
file             1037 core/ngx_cycle.c     ngx_file_t        file;
file             1045 core/ngx_cycle.c     file.name = ccf->pid;
file             1046 core/ngx_cycle.c     file.log = cycle->log;
file             1048 core/ngx_cycle.c     file.fd = ngx_open_file(file.name.data, NGX_FILE_RDONLY,
file             1051 core/ngx_cycle.c     if (file.fd == NGX_INVALID_FILE) {
file             1053 core/ngx_cycle.c                       ngx_open_file_n " \"%s\" failed", file.name.data);
file             1057 core/ngx_cycle.c     n = ngx_read_file(&file, buf, NGX_INT64_LEN + 2, 0);
file             1059 core/ngx_cycle.c     if (ngx_close_file(file.fd) == NGX_FILE_ERROR) {
file             1061 core/ngx_cycle.c                       ngx_close_file_n " \"%s\" failed", file.name.data);
file             1075 core/ngx_cycle.c                       n, buf, file.name.data);
file             1085 core/ngx_cycle.c ngx_test_lockfile(u_char *file, ngx_log_t *log)
file             1090 core/ngx_cycle.c     fd = ngx_open_file(file, NGX_FILE_RDWR, NGX_FILE_CREATE_OR_OPEN,
file             1095 core/ngx_cycle.c                       ngx_open_file_n " \"%s\" failed", file);
file             1101 core/ngx_cycle.c                       ngx_close_file_n " \"%s\" failed", file);
file             1104 core/ngx_cycle.c     if (ngx_delete_file(file) == NGX_FILE_ERROR) {
file             1106 core/ngx_cycle.c                       ngx_delete_file_n " \"%s\" failed", file);
file             1122 core/ngx_cycle.c     ngx_open_file_t  *file;
file             1125 core/ngx_cycle.c     file = part->elts;
file             1134 core/ngx_cycle.c             file = part->elts;
file             1138 core/ngx_cycle.c         if (file[i].name.len == 0) {
file             1142 core/ngx_cycle.c         len = file[i].pos - file[i].buffer;
file             1144 core/ngx_cycle.c         if (file[i].buffer && len != 0) {
file             1146 core/ngx_cycle.c             n = ngx_write_fd(file[i].fd, file[i].buffer, len);
file             1151 core/ngx_cycle.c                               file[i].name.data);
file             1156 core/ngx_cycle.c                           file[i].name.data, n, len);
file             1159 core/ngx_cycle.c             file[i].pos = file[i].buffer;
file             1162 core/ngx_cycle.c         fd = ngx_open_file(file[i].name.data, NGX_FILE_APPEND,
file             1167 core/ngx_cycle.c                        file[i].name.data, file[i].fd, fd);
file             1171 core/ngx_cycle.c                           ngx_open_file_n " \"%s\" failed", file[i].name.data);
file             1179 core/ngx_cycle.c             if (ngx_file_info((const char *) file[i].name.data, &fi)
file             1184 core/ngx_cycle.c                               file[i].name.data);
file             1189 core/ngx_cycle.c                                   file[i].name.data);
file             1194 core/ngx_cycle.c                 if (chown((const char *) file[i].name.data, user, -1) == -1) {
file             1197 core/ngx_cycle.c                                   file[i].name.data, user);
file             1202 core/ngx_cycle.c                                       file[i].name.data);
file             1211 core/ngx_cycle.c                 if (chmod((const char *) file[i].name.data, fi.st_mode) == -1) {
file             1213 core/ngx_cycle.c                                   "chmod() \"%s\" failed", file[i].name.data);
file             1218 core/ngx_cycle.c                                       file[i].name.data);
file             1227 core/ngx_cycle.c                           file[i].name.data);
file             1232 core/ngx_cycle.c                               file[i].name.data);
file             1239 core/ngx_cycle.c         if (ngx_close_file(file[i].fd) == NGX_FILE_ERROR) {
file             1242 core/ngx_cycle.c                           file[i].name.data);
file             1245 core/ngx_cycle.c         file[i].fd = fd;
file             1250 core/ngx_cycle.c     if (cycle->log->file->fd != STDERR_FILENO) {
file             1251 core/ngx_cycle.c         if (dup2(cycle->log->file->fd, STDERR_FILENO) == -1) {
file               21 core/ngx_file.c     if (tf->file.fd == NGX_INVALID_FILE) {
file               22 core/ngx_file.c         rc = ngx_create_temp_file(&tf->file, tf->path, tf->pool,
file               30 core/ngx_file.c             ngx_log_error(tf->log_level, tf->file.log, 0, "%s %V",
file               31 core/ngx_file.c                           tf->warn, &tf->file.name);
file               35 core/ngx_file.c     return ngx_write_chain_to_file(&tf->file, chain, tf->offset, tf->pool);
file               40 core/ngx_file.c ngx_create_temp_file(ngx_file_t *file, ngx_path_t *path, ngx_pool_t *pool,
file               48 core/ngx_file.c     file->name.len = path->name.len + 1 + path->len + 10;
file               50 core/ngx_file.c     file->name.data = ngx_pnalloc(pool, file->name.len + 1);
file               51 core/ngx_file.c     if (file->name.data == NULL) {
file               56 core/ngx_file.c     for (i = 0; i < file->name.len; i++) {
file               57 core/ngx_file.c          file->name.data[i] = 'X';
file               61 core/ngx_file.c     ngx_memcpy(file->name.data, path->name.data, path->name.len);
file               71 core/ngx_file.c         (void) ngx_sprintf(file->name.data + path->name.len + 1 + path->len,
file               74 core/ngx_file.c         ngx_create_hashed_filename(path, file->name.data, file->name.len);
file               76 core/ngx_file.c         ngx_log_debug1(NGX_LOG_DEBUG_CORE, file->log, 0,
file               77 core/ngx_file.c                        "hashed path: %s", file->name.data);
file               79 core/ngx_file.c         file->fd = ngx_open_tempfile(file->name.data, persistent, access);
file               81 core/ngx_file.c         ngx_log_debug1(NGX_LOG_DEBUG_CORE, file->log, 0,
file               82 core/ngx_file.c                        "temp fd:%d", file->fd);
file               84 core/ngx_file.c         if (file->fd != NGX_INVALID_FILE) {
file               89 core/ngx_file.c             clnf->fd = file->fd;
file               90 core/ngx_file.c             clnf->name = file->name.data;
file              104 core/ngx_file.c             ngx_log_error(NGX_LOG_CRIT, file->log, err,
file              106 core/ngx_file.c                           file->name.data);
file              110 core/ngx_file.c         if (ngx_create_path(file, path) == NGX_ERROR) {
file              118 core/ngx_file.c ngx_create_hashed_filename(ngx_path_t *path, u_char *file, size_t len)
file              125 core/ngx_file.c     file[path->name.len + path->len]  = '/';
file              135 core/ngx_file.c         file[i - 1] = '/';
file              136 core/ngx_file.c         ngx_memcpy(&file[i], &file[len], level);
file              143 core/ngx_file.c ngx_create_path(ngx_file_t *file, ngx_path_t *path)
file              158 core/ngx_file.c         file->name.data[pos] = '\0';
file              160 core/ngx_file.c         ngx_log_debug1(NGX_LOG_DEBUG_CORE, file->log, 0,
file              161 core/ngx_file.c                        "temp file: \"%s\"", file->name.data);
file              163 core/ngx_file.c         if (ngx_create_dir(file->name.data, 0700) == NGX_FILE_ERROR) {
file              166 core/ngx_file.c                 ngx_log_error(NGX_LOG_CRIT, file->log, err,
file              168 core/ngx_file.c                               file->name.data);
file              173 core/ngx_file.c         file->name.data[pos] = '/';
file              273 core/ngx_file.c     path->conf_file = cf->conf_file->file.name.data;
file              825 core/ngx_file.c     ngx_str_t   file, buf;
file              890 core/ngx_file.c         file.len = tree->len + 1 + len;
file              892 core/ngx_file.c         if (file.len + NGX_DIR_MASK_LEN > buf.len) {
file              910 core/ngx_file.c         file.data = buf.data;
file              913 core/ngx_file.c                        "tree path \"%s\"", file.data);
file              916 core/ngx_file.c             if (ngx_de_info(file.data, &dir) == NGX_FILE_ERROR) {
file              918 core/ngx_file.c                               ngx_de_info_n " \"%s\" failed", file.data);
file              926 core/ngx_file.c                            "tree file \"%s\"", file.data);
file              932 core/ngx_file.c             if (ctx->file_handler(ctx, &file) == NGX_ABORT) {
file              939 core/ngx_file.c                            "tree enter dir \"%s\"", file.data);
file              944 core/ngx_file.c             if (ctx->pre_tree_handler(ctx, &file) == NGX_ABORT) {
file              948 core/ngx_file.c             if (ngx_walk_tree(ctx, &file) == NGX_ABORT) {
file              955 core/ngx_file.c             if (ctx->post_tree_handler(ctx, &file) == NGX_ABORT) {
file              962 core/ngx_file.c                            "tree special \"%s\"", file.data);
file              964 core/ngx_file.c             if (ctx->spec_handler(ctx, &file) == NGX_ABORT) {
file               62 core/ngx_file.h     ngx_file_t                 file;
file              124 core/ngx_file.h ngx_int_t ngx_create_temp_file(ngx_file_t *file, ngx_path_t *path,
file              127 core/ngx_file.h void ngx_create_hashed_filename(ngx_path_t *path, u_char *file, size_t len);
file              128 core/ngx_file.h ngx_int_t ngx_create_path(ngx_file_t *file, ngx_path_t *path);
file               93 core/ngx_log.c     if (log->file->fd == NGX_INVALID_FILE) {
file              142 core/ngx_log.c     (void) ngx_write_fd(log->file->fd, errstr, p - errstr);
file              146 core/ngx_log.c         || log->file->fd == ngx_stderr)
file              270 core/ngx_log.c     ngx_log.file = &ngx_log_file;
file              360 core/ngx_log.c     log->file = ngx_conf_open_file(cycle, name);
file              361 core/ngx_log.c     if (log->file == NULL) {
file              428 core/ngx_log.c     if (cf->cycle->new_log.file) {
file              441 core/ngx_log.c     cf->cycle->new_log.file = ngx_conf_open_file(cf->cycle, &name);
file              442 core/ngx_log.c     if (cf->cycle->new_log.file == NULL) {
file               49 core/ngx_log.h     ngx_open_file_t     *file;
file               27 core/ngx_open_file_cache.c     ngx_cached_open_file_t *file, ngx_open_file_info_t *of, ngx_log_t *log);
file               30 core/ngx_open_file_cache.c     ngx_cached_open_file_t *file, ngx_uint_t min_uses, ngx_log_t *log);
file               31 core/ngx_open_file_cache.c static void ngx_open_file_del_event(ngx_cached_open_file_t *file);
file               80 core/ngx_open_file_cache.c     ngx_cached_open_file_t  *file;
file               93 core/ngx_open_file_cache.c         file = ngx_queue_data(q, ngx_cached_open_file_t, queue);
file               97 core/ngx_open_file_cache.c         ngx_rbtree_delete(&cache->rbtree, &file->node);
file              102 core/ngx_open_file_cache.c                        "delete cached open file: %s", file->name);
file              104 core/ngx_open_file_cache.c         if (!file->err && !file->is_dir) {
file              105 core/ngx_open_file_cache.c             file->close = 1;
file              106 core/ngx_open_file_cache.c             file->count = 0;
file              107 core/ngx_open_file_cache.c             ngx_close_cached_file(cache, file, 0, ngx_cycle->log);
file              110 core/ngx_open_file_cache.c             ngx_free(file->name);
file              111 core/ngx_open_file_cache.c             ngx_free(file);
file              138 core/ngx_open_file_cache.c     ngx_cached_open_file_t         *file;
file              194 core/ngx_open_file_cache.c     file = ngx_open_file_lookup(cache, name, hash);
file              196 core/ngx_open_file_cache.c     if (file) {
file              198 core/ngx_open_file_cache.c         file->uses++;
file              200 core/ngx_open_file_cache.c         ngx_queue_remove(&file->queue);
file              202 core/ngx_open_file_cache.c         if (file->fd == NGX_INVALID_FILE && file->err == 0 && !file->is_dir) {
file              215 core/ngx_open_file_cache.c         if (file->use_event
file              216 core/ngx_open_file_cache.c             || (file->event == NULL
file              217 core/ngx_open_file_cache.c                 && (of->uniq == 0 || of->uniq == file->uniq)
file              218 core/ngx_open_file_cache.c                 && now - file->created < of->valid))
file              220 core/ngx_open_file_cache.c             if (file->err == 0) {
file              222 core/ngx_open_file_cache.c                 of->fd = file->fd;
file              223 core/ngx_open_file_cache.c                 of->uniq = file->uniq;
file              224 core/ngx_open_file_cache.c                 of->mtime = file->mtime;
file              225 core/ngx_open_file_cache.c                 of->size = file->size;
file              227 core/ngx_open_file_cache.c                 of->is_dir = file->is_dir;
file              228 core/ngx_open_file_cache.c                 of->is_file = file->is_file;
file              229 core/ngx_open_file_cache.c                 of->is_link = file->is_link;
file              230 core/ngx_open_file_cache.c                 of->is_exec = file->is_exec;
file              231 core/ngx_open_file_cache.c                 of->is_directio = file->is_directio;
file              233 core/ngx_open_file_cache.c                 if (!file->is_dir) {
file              234 core/ngx_open_file_cache.c                     file->count++;
file              235 core/ngx_open_file_cache.c                     ngx_open_file_add_event(cache, file, of, pool->log);
file              239 core/ngx_open_file_cache.c                 of->err = file->err;
file              248 core/ngx_open_file_cache.c                        file->name, file->fd, file->count, file->err);
file              250 core/ngx_open_file_cache.c         if (file->is_dir) {
file              261 core/ngx_open_file_cache.c         of->fd = file->fd;
file              262 core/ngx_open_file_cache.c         of->uniq = file->uniq;
file              272 core/ngx_open_file_cache.c             if (file->is_dir || file->err) {
file              280 core/ngx_open_file_cache.c             if (file->is_dir || file->err) {
file              284 core/ngx_open_file_cache.c             if (of->uniq == file->uniq) {
file              286 core/ngx_open_file_cache.c                 file->count++;
file              288 core/ngx_open_file_cache.c                 if (file->event) {
file              289 core/ngx_open_file_cache.c                     file->use_event = 1;
file              299 core/ngx_open_file_cache.c             if (file->err || file->is_dir) {
file              306 core/ngx_open_file_cache.c         if (file->count == 0) {
file              308 core/ngx_open_file_cache.c             ngx_open_file_del_event(file);
file              310 core/ngx_open_file_cache.c             if (ngx_close_file(file->fd) == NGX_FILE_ERROR) {
file              319 core/ngx_open_file_cache.c         ngx_rbtree_delete(&cache->rbtree, &file->node);
file              323 core/ngx_open_file_cache.c         file->close = 1;
file              342 core/ngx_open_file_cache.c     file = ngx_alloc(sizeof(ngx_cached_open_file_t), pool->log);
file              344 core/ngx_open_file_cache.c     if (file == NULL) {
file              348 core/ngx_open_file_cache.c     file->name = ngx_alloc(name->len + 1, pool->log);
file              350 core/ngx_open_file_cache.c     if (file->name == NULL) {
file              351 core/ngx_open_file_cache.c         ngx_free(file);
file              352 core/ngx_open_file_cache.c         file = NULL;
file              356 core/ngx_open_file_cache.c     ngx_cpystrn(file->name, name->data, name->len + 1);
file              358 core/ngx_open_file_cache.c     file->node.key = hash;
file              360 core/ngx_open_file_cache.c     ngx_rbtree_insert(&cache->rbtree, &file->node);
file              364 core/ngx_open_file_cache.c     file->uses = 1;
file              365 core/ngx_open_file_cache.c     file->count = 0;
file              366 core/ngx_open_file_cache.c     file->use_event = 0;
file              367 core/ngx_open_file_cache.c     file->event = NULL;
file              371 core/ngx_open_file_cache.c     ngx_open_file_add_event(cache, file, of, pool->log);
file              375 core/ngx_open_file_cache.c     file->fd = of->fd;
file              376 core/ngx_open_file_cache.c     file->err = of->err;
file              379 core/ngx_open_file_cache.c         file->uniq = of->uniq;
file              380 core/ngx_open_file_cache.c         file->mtime = of->mtime;
file              381 core/ngx_open_file_cache.c         file->size = of->size;
file              383 core/ngx_open_file_cache.c         file->close = 0;
file              385 core/ngx_open_file_cache.c         file->is_dir = of->is_dir;
file              386 core/ngx_open_file_cache.c         file->is_file = of->is_file;
file              387 core/ngx_open_file_cache.c         file->is_link = of->is_link;
file              388 core/ngx_open_file_cache.c         file->is_exec = of->is_exec;
file              389 core/ngx_open_file_cache.c         file->is_directio = of->is_directio;
file              392 core/ngx_open_file_cache.c             file->count++;
file              398 core/ngx_open_file_cache.c     file->created = now;
file              402 core/ngx_open_file_cache.c     file->accessed = now;
file              404 core/ngx_open_file_cache.c     ngx_queue_insert_head(&cache->expire_queue, &file->queue);
file              408 core/ngx_open_file_cache.c                    file->name, file->fd, file->count, file->err, file->uses);
file              417 core/ngx_open_file_cache.c             ofcln->file = file;
file              429 core/ngx_open_file_cache.c     if (file) {
file              430 core/ngx_open_file_cache.c         ngx_rbtree_delete(&cache->rbtree, &file->node);
file              434 core/ngx_open_file_cache.c         if (file->count == 0) {
file              436 core/ngx_open_file_cache.c             if (file->fd != NGX_INVALID_FILE) {
file              437 core/ngx_open_file_cache.c                 if (ngx_close_file(file->fd) == NGX_FILE_ERROR) {
file              440 core/ngx_open_file_cache.c                                   file->name);
file              444 core/ngx_open_file_cache.c             ngx_free(file->name);
file              445 core/ngx_open_file_cache.c             ngx_free(file);
file              448 core/ngx_open_file_cache.c             file->close = 1;
file              583 core/ngx_open_file_cache.c     ngx_cached_open_file_t *file, ngx_open_file_info_t *of, ngx_log_t *log)
file              589 core/ngx_open_file_cache.c         || file->event
file              591 core/ngx_open_file_cache.c         || file->uses < of->min_uses)
file              596 core/ngx_open_file_cache.c     file->use_event = 0;
file              598 core/ngx_open_file_cache.c     file->event = ngx_calloc(sizeof(ngx_event_t), log);
file              599 core/ngx_open_file_cache.c     if (file->event== NULL) {
file              605 core/ngx_open_file_cache.c         ngx_free(file->event);
file              606 core/ngx_open_file_cache.c         file->event = NULL;
file              611 core/ngx_open_file_cache.c     fev->file = file;
file              614 core/ngx_open_file_cache.c     file->event->handler = ngx_open_file_cache_remove;
file              615 core/ngx_open_file_cache.c     file->event->data = fev;
file              623 core/ngx_open_file_cache.c     file->event->log = ngx_cycle->log;
file              625 core/ngx_open_file_cache.c     if (ngx_add_event(file->event, NGX_VNODE_EVENT, NGX_ONESHOT_EVENT)
file              628 core/ngx_open_file_cache.c         ngx_free(file->event->data);
file              629 core/ngx_open_file_cache.c         ngx_free(file->event);
file              630 core/ngx_open_file_cache.c         file->event = NULL;
file              650 core/ngx_open_file_cache.c     c->file->count--;
file              652 core/ngx_open_file_cache.c     ngx_close_cached_file(c->cache, c->file, c->min_uses, c->log);
file              661 core/ngx_open_file_cache.c     ngx_cached_open_file_t *file, ngx_uint_t min_uses, ngx_log_t *log)
file              665 core/ngx_open_file_cache.c                    file->name, file->fd, file->count, file->uses, file->close);
file              667 core/ngx_open_file_cache.c     if (!file->close) {
file              669 core/ngx_open_file_cache.c         file->accessed = ngx_time();
file              671 core/ngx_open_file_cache.c         ngx_queue_remove(&file->queue);
file              673 core/ngx_open_file_cache.c         ngx_queue_insert_head(&cache->expire_queue, &file->queue);
file              675 core/ngx_open_file_cache.c         if (file->uses >= min_uses || file->count) {
file              680 core/ngx_open_file_cache.c     ngx_open_file_del_event(file);
file              682 core/ngx_open_file_cache.c     if (file->count) {
file              686 core/ngx_open_file_cache.c     if (file->fd != NGX_INVALID_FILE) {
file              688 core/ngx_open_file_cache.c         if (ngx_close_file(file->fd) == NGX_FILE_ERROR) {
file              690 core/ngx_open_file_cache.c                           ngx_close_file_n " \"%s\" failed", file->name);
file              693 core/ngx_open_file_cache.c         file->fd = NGX_INVALID_FILE;
file              696 core/ngx_open_file_cache.c     if (!file->close) {
file              700 core/ngx_open_file_cache.c     ngx_free(file->name);
file              701 core/ngx_open_file_cache.c     ngx_free(file);
file              706 core/ngx_open_file_cache.c ngx_open_file_del_event(ngx_cached_open_file_t *file)
file              708 core/ngx_open_file_cache.c     if (file->event == NULL) {
file              712 core/ngx_open_file_cache.c     (void) ngx_del_event(file->event, NGX_VNODE_EVENT,
file              713 core/ngx_open_file_cache.c                          file->count ? NGX_FLUSH_EVENT : NGX_CLOSE_EVENT);
file              715 core/ngx_open_file_cache.c     ngx_free(file->event->data);
file              716 core/ngx_open_file_cache.c     ngx_free(file->event);
file              717 core/ngx_open_file_cache.c     file->event = NULL;
file              718 core/ngx_open_file_cache.c     file->use_event = 0;
file              728 core/ngx_open_file_cache.c     ngx_cached_open_file_t  *file;
file              746 core/ngx_open_file_cache.c         file = ngx_queue_data(q, ngx_cached_open_file_t, queue);
file              748 core/ngx_open_file_cache.c         if (n++ != 0 && now - file->accessed <= cache->inactive) {
file              754 core/ngx_open_file_cache.c         ngx_rbtree_delete(&cache->rbtree, &file->node);
file              759 core/ngx_open_file_cache.c                        "expire cached open file: %s", file->name);
file              761 core/ngx_open_file_cache.c         if (!file->err && !file->is_dir) {
file              762 core/ngx_open_file_cache.c             file->close = 1;
file              763 core/ngx_open_file_cache.c             ngx_close_cached_file(cache, file, 0, log);
file              766 core/ngx_open_file_cache.c             ngx_free(file->name);
file              767 core/ngx_open_file_cache.c             ngx_free(file);
file              778 core/ngx_open_file_cache.c     ngx_cached_open_file_t    *file, *file_temp;
file              792 core/ngx_open_file_cache.c             file = (ngx_cached_open_file_t *) node;
file              795 core/ngx_open_file_cache.c             p = (ngx_strcmp(file->name, file_temp->name) < 0)
file              820 core/ngx_open_file_cache.c     ngx_cached_open_file_t  *file;
file              840 core/ngx_open_file_cache.c             file = (ngx_cached_open_file_t *) node;
file              842 core/ngx_open_file_cache.c             rc = ngx_strcmp(name->data, file->name);
file              845 core/ngx_open_file_cache.c                 return file;
file              862 core/ngx_open_file_cache.c     ngx_cached_open_file_t       *file;
file              866 core/ngx_open_file_cache.c     file = fev->file;
file              868 core/ngx_open_file_cache.c     ngx_queue_remove(&file->queue);
file              870 core/ngx_open_file_cache.c     ngx_rbtree_delete(&fev->cache->rbtree, &file->node);
file              875 core/ngx_open_file_cache.c     file->event = NULL;
file              876 core/ngx_open_file_cache.c     file->use_event = 0;
file              878 core/ngx_open_file_cache.c     file->close = 1;
file              880 core/ngx_open_file_cache.c     ngx_close_cached_file(fev->cache, file, 0, ev->log);
file               92 core/ngx_open_file_cache.h     ngx_cached_open_file_t  *file;
file              106 core/ngx_open_file_cache.h     ngx_cached_open_file_t  *file;
file              109 core/ngx_output_chain.c                               ctx->in->buf->file,
file              226 core/ngx_output_chain.c     if (buf->in_file && buf->file->directio) {
file              338 core/ngx_output_chain.c     if (in->file == NULL || !in->file->directio) {
file              489 core/ngx_output_chain.c                 dst->file = src->file;
file              514 core/ngx_output_chain.c             if (ngx_directio_off(src->file->fd) == NGX_FILE_ERROR) {
file              517 core/ngx_output_chain.c                               src->file->name.data);
file              526 core/ngx_output_chain.c             n = ngx_file_aio_read(src->file, dst->pos, (size_t) size,
file              529 core/ngx_output_chain.c                 ctx->aio_handler(ctx, src->file);
file              534 core/ngx_output_chain.c             n = ngx_read_file(src->file, dst->pos, (size_t) size,
file              539 core/ngx_output_chain.c         n = ngx_read_file(src->file, dst->pos, (size_t) size, src->file_pos);
file              550 core/ngx_output_chain.c             if (ngx_directio_on(src->file->fd) == NGX_FILE_ERROR) {
file              553 core/ngx_output_chain.c                               src->file->name.data);
file              570 core/ngx_output_chain.c                           n, size, src->file->name.data);
file              578 core/ngx_output_chain.c             dst->file = src->file;
file              197 event/ngx_event.h     ngx_file_t                *file;
file              400 event/ngx_event_openssl.c ngx_ssl_dhparam(ngx_conf_t *cf, ngx_ssl_t *ssl, ngx_str_t *file)
file              430 event/ngx_event_openssl.c     if (file->len == 0) {
file              454 event/ngx_event_openssl.c     if (ngx_conf_full_name(cf->cycle, file, 1) != NGX_OK) {
file              458 event/ngx_event_openssl.c     bio = BIO_new_file((char *) file->data, "r");
file              461 event/ngx_event_openssl.c                       "BIO_new_file(\"%s\") failed", file->data);
file              468 event/ngx_event_openssl.c                       "PEM_read_bio_DHparams(\"%s\") failed", file->data);
file              103 event/ngx_event_openssl.h ngx_int_t ngx_ssl_dhparam(ngx_conf_t *cf, ngx_ssl_t *ssl, ngx_str_t *file);
file              433 event/ngx_event_pipe.c     ngx_chain_t       *out, **ll, *cl, file;
file              494 event/ngx_event_pipe.c                 file.buf = p->buf_to_file;
file              495 event/ngx_event_pipe.c                 file.next = NULL;
file              497 event/ngx_event_pipe.c                 if (ngx_write_chain_to_temp_file(p->temp_file, &file)
file              763 event/ngx_event_pipe.c         b->file = &p->temp_file->file;
file               31 http/modules/ngx_http_auth_basic_module.c static void ngx_http_auth_basic_close(ngx_file_t *file);
file              106 http/modules/ngx_http_auth_basic_module.c     ngx_file_t                       file;
file              167 http/modules/ngx_http_auth_basic_module.c     ngx_memzero(&file, sizeof(ngx_file_t));
file              169 http/modules/ngx_http_auth_basic_module.c     file.fd = fd;
file              170 http/modules/ngx_http_auth_basic_module.c     file.name = user_file;
file              171 http/modules/ngx_http_auth_basic_module.c     file.log = r->connection->log;
file              182 http/modules/ngx_http_auth_basic_module.c         n = ngx_read_file(&file, buf + left, NGX_HTTP_AUTH_BUF_SIZE - left,
file              186 http/modules/ngx_http_auth_basic_module.c             ngx_http_auth_basic_close(&file);
file              228 http/modules/ngx_http_auth_basic_module.c                     ngx_http_auth_basic_close(&file);
file              261 http/modules/ngx_http_auth_basic_module.c     ngx_http_auth_basic_close(&file);
file              358 http/modules/ngx_http_auth_basic_module.c ngx_http_auth_basic_close(ngx_file_t *file)
file              360 http/modules/ngx_http_auth_basic_module.c     if (ngx_close_file(file->fd) == NGX_FILE_ERROR) {
file              361 http/modules/ngx_http_auth_basic_module.c         ngx_log_error(NGX_LOG_ALERT, file->log, ngx_errno,
file              362 http/modules/ngx_http_auth_basic_module.c                       ngx_close_file_n " \"%s\" failed", file->name.data);
file              218 http/modules/ngx_http_dav_module.c     temp = &r->request_body->temp_file->file.name;
file              256 http/modules/ngx_http_dav_module.c             ext.fd = r->request_body->temp_file->file.fd;
file              933 http/modules/ngx_http_dav_module.c     u_char                   *p, *file;
file              945 http/modules/ngx_http_dav_module.c     file = ngx_alloc(len + 1, ctx->log);
file              946 http/modules/ngx_http_dav_module.c     if (file == NULL) {
file              950 http/modules/ngx_http_dav_module.c     p = ngx_cpymem(file, copy->path.data, copy->path.len);
file              954 http/modules/ngx_http_dav_module.c                    "http copy file to: \"%s\"", file);
file              962 http/modules/ngx_http_dav_module.c     (void) ngx_copy_file(path->data, file, &cf);
file              964 http/modules/ngx_http_dav_module.c     ngx_free(file);
file              212 http/modules/ngx_http_flv_module.c     b->file = ngx_pcalloc(r->pool, sizeof(ngx_file_t));
file              213 http/modules/ngx_http_flv_module.c     if (b->file == NULL) {
file              232 http/modules/ngx_http_flv_module.c     b->file->fd = of.fd;
file              233 http/modules/ngx_http_flv_module.c     b->file->name = path;
file              234 http/modules/ngx_http_flv_module.c     b->file->log = log;
file              235 http/modules/ngx_http_flv_module.c     b->file->directio = of.is_directio;
file             1092 http/modules/ngx_http_geo_module.c     ngx_str_t   file;
file             1094 http/modules/ngx_http_geo_module.c     file.len = name->len + 4;
file             1095 http/modules/ngx_http_geo_module.c     file.data = ngx_pnalloc(ctx->temp_pool, name->len + 5);
file             1096 http/modules/ngx_http_geo_module.c     if (file.data == NULL) {
file             1100 http/modules/ngx_http_geo_module.c     ngx_sprintf(file.data, "%V.bin%Z", name);
file             1102 http/modules/ngx_http_geo_module.c     if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK) {
file             1107 http/modules/ngx_http_geo_module.c         ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data);
file             1109 http/modules/ngx_http_geo_module.c         switch (ngx_http_geo_include_binary_base(cf, ctx, &file)) {
file             1119 http/modules/ngx_http_geo_module.c     file.len -= 4;
file             1120 http/modules/ngx_http_geo_module.c     file.data[file.len] = '\0';
file             1122 http/modules/ngx_http_geo_module.c     ctx->include_name = file;
file             1128 http/modules/ngx_http_geo_module.c     ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data);
file             1130 http/modules/ngx_http_geo_module.c     rv = ngx_conf_parse(cf, &file);
file             1151 http/modules/ngx_http_geo_module.c     ngx_file_t                  file;
file             1157 http/modules/ngx_http_geo_module.c     ngx_memzero(&file, sizeof(ngx_file_t));
file             1158 http/modules/ngx_http_geo_module.c     file.name = *name;
file             1159 http/modules/ngx_http_geo_module.c     file.log = cf->log;
file             1161 http/modules/ngx_http_geo_module.c     file.fd = ngx_open_file(name->data, NGX_FILE_RDONLY, 0, 0);
file             1162 http/modules/ngx_http_geo_module.c     if (file.fd == NGX_INVALID_FILE) {
file             1187 http/modules/ngx_http_geo_module.c     if (ngx_fd_info(file.fd, &fi) == NGX_FILE_ERROR) {
file             1218 http/modules/ngx_http_geo_module.c     n = ngx_read_file(&file, base, size, 0);
file             1303 http/modules/ngx_http_geo_module.c     if (ngx_close_file(file.fd) == NGX_FILE_ERROR) {
file              224 http/modules/ngx_http_gzip_static_module.c     b->file = ngx_pcalloc(r->pool, sizeof(ngx_file_t));
file              225 http/modules/ngx_http_gzip_static_module.c     if (b->file == NULL) {
file              242 http/modules/ngx_http_gzip_static_module.c     b->file->fd = of.fd;
file              243 http/modules/ngx_http_gzip_static_module.c     b->file->name = path;
file              244 http/modules/ngx_http_gzip_static_module.c     b->file->log = log;
file              245 http/modules/ngx_http_gzip_static_module.c     b->file->directio = of.is_directio;
file               31 http/modules/ngx_http_index_module.c     ngx_http_core_loc_conf_t *clcf, u_char *file, ngx_err_t err);
file              344 http/modules/ngx_http_index_module.c     u_char *file, ngx_err_t err)
file              348 http/modules/ngx_http_index_module.c                       "\"%s\" is forbidden", file);
file              355 http/modules/ngx_http_index_module.c                       "\"%s\" is not found", file);
file               49 http/modules/ngx_http_log_module.c     ngx_open_file_t            *file;
file              223 http/modules/ngx_http_log_module.c     ngx_open_file_t          *file;
file              265 http/modules/ngx_http_log_module.c         file = log[l].file;
file              267 http/modules/ngx_http_log_module.c         if (file && file->buffer) {
file              269 http/modules/ngx_http_log_module.c             if (len > (size_t) (file->last - file->pos)) {
file              271 http/modules/ngx_http_log_module.c                 ngx_http_log_write(r, &log[l], file->buffer,
file              272 http/modules/ngx_http_log_module.c                                    file->pos - file->buffer);
file              274 http/modules/ngx_http_log_module.c                 file->pos = file->buffer;
file              277 http/modules/ngx_http_log_module.c             if (len <= (size_t) (file->last - file->pos)) {
file              279 http/modules/ngx_http_log_module.c                 p = file->pos;
file              287 http/modules/ngx_http_log_module.c                 file->pos = p;
file              323 http/modules/ngx_http_log_module.c         name = log->file->name.data;
file              324 http/modules/ngx_http_log_module.c         n = ngx_write_fd(log->file->fd, buf, len);
file              831 http/modules/ngx_http_log_module.c     log->file = ngx_conf_open_file(cf->cycle, &ngx_http_access_log);
file              832 http/modules/ngx_http_log_module.c     if (log->file == NULL) {
file              896 http/modules/ngx_http_log_module.c         log->file = ngx_conf_open_file(cf->cycle, &value[1]);
file              897 http/modules/ngx_http_log_module.c         if (log->file == NULL) {
file              978 http/modules/ngx_http_log_module.c         if (log->file->buffer && log->file->last - log->file->pos != buf) {
file              985 http/modules/ngx_http_log_module.c         log->file->buffer = ngx_palloc(cf->pool, buf);
file              986 http/modules/ngx_http_log_module.c         if (log->file->buffer == NULL) {
file              990 http/modules/ngx_http_log_module.c         log->file->pos = log->file->buffer;
file              991 http/modules/ngx_http_log_module.c         log->file->last = log->file->buffer + buf;
file              375 http/modules/ngx_http_map_module.c     ngx_str_t                  *value, file, name;
file              397 http/modules/ngx_http_map_module.c         file = value[1];
file              399 http/modules/ngx_http_map_module.c         if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK) {
file              403 http/modules/ngx_http_map_module.c         ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data);
file              405 http/modules/ngx_http_map_module.c         return ngx_conf_parse(cf, &file);
file              784 http/modules/ngx_http_range_filter_module.c         b->file = buf->file;
file             1829 http/modules/ngx_http_ssi_filter_module.c     ngx_str_t                   *uri, *file, *wait, *set, *stub, args;
file             1840 http/modules/ngx_http_ssi_filter_module.c     file = params[NGX_HTTP_SSI_INCLUDE_FILE];
file             1845 http/modules/ngx_http_ssi_filter_module.c     if (uri && file) {
file             1848 http/modules/ngx_http_ssi_filter_module.c                       uri, file);
file             1852 http/modules/ngx_http_ssi_filter_module.c     if (uri == NULL && file == NULL) {
file             1868 http/modules/ngx_http_ssi_filter_module.c                           "\"wait\" may not be used with file=\"%V\"", file);
file             1888 http/modules/ngx_http_ssi_filter_module.c         uri = file;
file              374 http/modules/ngx_http_ssl_module.c                           conf->file, conf->line);
file              382 http/modules/ngx_http_ssl_module.c                           conf->file, conf->line);
file              508 http/modules/ngx_http_ssl_module.c     sscf->file = cf->conf_file->file.name.data;
file               42 http/modules/ngx_http_ssl_module.h     u_char                         *file;
file              229 http/modules/ngx_http_static_module.c     b->file = ngx_pcalloc(r->pool, sizeof(ngx_file_t));
file              230 http/modules/ngx_http_static_module.c     if (b->file == NULL) {
file              247 http/modules/ngx_http_static_module.c     b->file->fd = of.fd;
file              248 http/modules/ngx_http_static_module.c     b->file->name = path;
file              249 http/modules/ngx_http_static_module.c     b->file->log = log;
file              250 http/modules/ngx_http_static_module.c     b->file->directio = of.is_directio;
file              713 http/modules/ngx_http_xslt_filter_module.c     ngx_http_xslt_file_t              *file;
file              724 http/modules/ngx_http_xslt_filter_module.c     file = xmcf->dtd_files.elts;
file              726 http/modules/ngx_http_xslt_filter_module.c         if (ngx_strcmp(file[i].name, &value[1].data) == 0) {
file              727 http/modules/ngx_http_xslt_filter_module.c             xlcf->dtd = file[i].data;
file              747 http/modules/ngx_http_xslt_filter_module.c     file = ngx_array_push(&xmcf->dtd_files);
file              748 http/modules/ngx_http_xslt_filter_module.c     if (file == NULL) {
file              752 http/modules/ngx_http_xslt_filter_module.c     file->name = value[1].data;
file              753 http/modules/ngx_http_xslt_filter_module.c     file->data = xlcf->dtd;
file              768 http/modules/ngx_http_xslt_filter_module.c     ngx_http_xslt_file_t              *file;
file              798 http/modules/ngx_http_xslt_filter_module.c     file = xmcf->sheet_files.elts;
file              800 http/modules/ngx_http_xslt_filter_module.c         if (ngx_strcmp(file[i].name, &value[1].data) == 0) {
file              801 http/modules/ngx_http_xslt_filter_module.c             sheet->stylesheet = file[i].data;
file              822 http/modules/ngx_http_xslt_filter_module.c     file = ngx_array_push(&xmcf->sheet_files);
file              823 http/modules/ngx_http_xslt_filter_module.c     if (file == NULL) {
file              827 http/modules/ngx_http_xslt_filter_module.c     file->name = value[1].data;
file              828 http/modules/ngx_http_xslt_filter_module.c     file->data = sheet->stylesheet;
file              879 http/ngx_http.c     lq->file_name = cf->conf_file->file.name.data;
file               58 http/ngx_http_cache.h     ngx_file_t                       file;
file               19 http/ngx_http_copy_filter_module.c     ngx_file_t *file);
file              158 http/ngx_http_copy_filter_module.c             ngx_file_t            *file;
file              161 http/ngx_http_copy_filter_module.c             file = c->busy_sendfile->file;
file              164 http/ngx_http_copy_filter_module.c             if (file->aio) {
file              165 http/ngx_http_copy_filter_module.c                 c->aio_sendfile = (offset != file->aio->last_offset);
file              166 http/ngx_http_copy_filter_module.c                 file->aio->last_offset = offset;
file              171 http/ngx_http_copy_filter_module.c                                   &file->name);
file              178 http/ngx_http_copy_filter_module.c             n = ngx_file_aio_read(file, &e->aio_preload, 1, offset, r->pool);
file              187 http/ngx_http_copy_filter_module.c             if (file->aio) {
file              188 http/ngx_http_copy_filter_module.c                 file->aio->data = r;
file              189 http/ngx_http_copy_filter_module.c                 file->aio->handler = ngx_http_copy_aio_sendfile_event_handler;
file              205 http/ngx_http_copy_filter_module.c ngx_http_copy_aio_handler(ngx_output_chain_ctx_t *ctx, ngx_file_t *file)
file              211 http/ngx_http_copy_filter_module.c     file->aio->data = r;
file              212 http/ngx_http_copy_filter_module.c     file->aio->handler = ngx_http_copy_aio_event_handler;
file             1395 http/ngx_http_core_module.c         r->connection->log->file = clcf->error_log->file;
file             2827 http/ngx_http_core_module.c     ngx_str_t       *value, *content_type, *old, file;
file             2834 http/ngx_http_core_module.c         file = value[1];
file             2836 http/ngx_http_core_module.c         if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK) {
file             2840 http/ngx_http_core_module.c         ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data);
file             2842 http/ngx_http_core_module.c         return ngx_conf_parse(cf, &file);
file              163 http/ngx_http_file_cache.c     c->file.log = r->connection->log;
file              164 http/ngx_http_file_cache.c     c->file.fd = NGX_INVALID_FILE;
file              326 http/ngx_http_file_cache.c     if (ngx_open_cached_file(clcf->open_file_cache, &c->file.name, &of, r->pool)
file              340 http/ngx_http_file_cache.c                           ngx_open_file_n " \"%s\" failed", c->file.name.data);
file              348 http/ngx_http_file_cache.c     c->file.fd = of.fd;
file              349 http/ngx_http_file_cache.c     c->file.log = r->connection->log;
file              379 http/ngx_http_file_cache.c                       "cache file \"%s\" is too small", c->file.name.data);
file              387 http/ngx_http_file_cache.c                       "cache file \"%s\" has md5 collision", c->file.name.data);
file              465 http/ngx_http_file_cache.c     n = ngx_file_aio_read(&c->file, c->buf->pos, c->body_start, 0, r->pool);
file              471 http/ngx_http_file_cache.c     c->file.aio->data = r;
file              472 http/ngx_http_file_cache.c     c->file.aio->handler = ngx_http_cache_aio_event_handler;
file              483 http/ngx_http_file_cache.c     return ngx_read_file(&c->file, c->buf->pos, c->body_start, 0);
file              625 http/ngx_http_file_cache.c     c->file.name.len = path->name.len + 1 + path->len
file              628 http/ngx_http_file_cache.c     c->file.name.data = ngx_pnalloc(r->pool, c->file.name.len + 1);
file              629 http/ngx_http_file_cache.c     if (c->file.name.data == NULL) {
file              633 http/ngx_http_file_cache.c     ngx_memcpy(c->file.name.data, path->name.data, path->name.len);
file              635 http/ngx_http_file_cache.c     p = c->file.name.data + path->name.len + 1 + path->len;
file              639 http/ngx_http_file_cache.c     ngx_create_hashed_filename(path, c->file.name.data, c->file.name.len);
file              642 http/ngx_http_file_cache.c                    "cache file: \"%s\"", c->file.name.data);
file              807 http/ngx_http_file_cache.c                    tf->file.name.data, c->file.name.data);
file              816 http/ngx_http_file_cache.c     rc = ngx_ext_rename_file(&tf->file.name, &c->file.name, &ext);
file              820 http/ngx_http_file_cache.c         if (ngx_fd_info(tf->file.fd, &fi) == NGX_FILE_ERROR) {
file              822 http/ngx_http_file_cache.c                           ngx_fd_info_n " \"%s\" failed", tf->file.name.data);
file              867 http/ngx_http_file_cache.c                   "http file cache send: %s", c->file.name.data);
file              876 http/ngx_http_file_cache.c     b->file = ngx_pcalloc(r->pool, sizeof(ngx_file_t));
file              877 http/ngx_http_file_cache.c     if (b->file == NULL) {
file              896 http/ngx_http_file_cache.c     b->file->fd = c->file.fd;
file              897 http/ngx_http_file_cache.c     b->file->name = c->file.name;
file              898 http/ngx_http_file_cache.c     b->file->log = r->connection->log;
file              919 http/ngx_http_file_cache.c     ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->file.log, 0,
file              920 http/ngx_http_file_cache.c                    "http file cache free, fd: %d", c->file.fd);
file              952 http/ngx_http_file_cache.c         if (tf && tf->file.fd != NGX_INVALID_FILE) {
file              953 http/ngx_http_file_cache.c             ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->file.log, 0,
file              955 http/ngx_http_file_cache.c                            tf->file.name.data);
file              957 http/ngx_http_file_cache.c             if (ngx_delete_file(tf->file.name.data) == NGX_FILE_ERROR) {
file              958 http/ngx_http_file_cache.c                 ngx_log_error(NGX_LOG_CRIT, c->file.log, ngx_errno,
file              960 http/ngx_http_file_cache.c                               tf->file.name.data);
file              976 http/ngx_http_file_cache.c     ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->file.log, 0,
file              980 http/ngx_http_file_cache.c         ngx_log_error(NGX_LOG_ALERT, c->file.log, 0,
file             1358 http/ngx_http_file_cache.c     c.file.fd = fd;
file             1359 http/ngx_http_file_cache.c     c.file.name = *name;
file             1360 http/ngx_http_file_cache.c     c.file.log = ctx->log;
file             1362 http/ngx_http_file_cache.c     n = ngx_read_file(&c.file, (u_char *) &h,
file              434 http/ngx_http_request.c     c->log->file = clcf->error_log->file;
file             1770 http/ngx_http_request.c     r->connection->log->file = clcf->error_log->file;
file               72 http/ngx_http_request_body.c             tf->file.fd = NGX_INVALID_FILE;
file               73 http/ngx_http_request_body.c             tf->file.log = r->connection->log;
file               87 http/ngx_http_request_body.c             if (ngx_create_temp_file(&tf->file, tf->path, tf->pool,
file              363 http/ngx_http_request_body.c         b->file_last = rb->temp_file->file.offset;
file              364 http/ngx_http_request_body.c         b->file = &rb->temp_file->file;
file              402 http/ngx_http_request_body.c         tf->file.fd = NGX_INVALID_FILE;
file              403 http/ngx_http_request_body.c         tf->file.log = r->connection->log;
file             2042 http/ngx_http_upstream.c         ngx_pool_run_cleanup_file(r->pool, r->request_body->temp_file->file.fd);
file             2043 http/ngx_http_upstream.c         r->request_body->temp_file->file.fd = NGX_INVALID_FILE;
file             2119 http/ngx_http_upstream.c     if (r->cache && r->cache->file.fd != NGX_INVALID_FILE) {
file             2120 http/ngx_http_upstream.c         ngx_pool_run_cleanup_file(r->pool, r->cache->file.fd);
file             2121 http/ngx_http_upstream.c         r->cache->file.fd = NGX_INVALID_FILE;
file             2222 http/ngx_http_upstream.c     p->temp_file->file.fd = NGX_INVALID_FILE;
file             2223 http/ngx_http_upstream.c     p->temp_file->file.log = c->log;
file             2647 http/ngx_http_upstream.c             if (del && tf->file.fd != NGX_INVALID_FILE) {
file             2649 http/ngx_http_upstream.c                 if (ngx_delete_file(tf->file.name.data) == NGX_FILE_ERROR) {
file             2653 http/ngx_http_upstream.c                                   u->pipe->temp_file->file.name.data);
file             2711 http/ngx_http_upstream.c     if (tf->file.fd == NGX_INVALID_FILE) {
file             2720 http/ngx_http_upstream.c         tf->file.fd = NGX_INVALID_FILE;
file             2721 http/ngx_http_upstream.c         tf->file.log = r->connection->log;
file             2726 http/ngx_http_upstream.c         if (ngx_create_temp_file(&tf->file, tf->path, tf->pool,
file             2750 http/ngx_http_upstream.c             ext.fd = tf->file.fd;
file             2771 http/ngx_http_upstream.c                    tf->file.name.data, path.data);
file             2773 http/ngx_http_upstream.c     (void) ngx_ext_rename_file(&tf->file.name, &path, &ext);
file             2992 http/ngx_http_upstream.c                        u->pipe->temp_file->file.fd);
file             4266 http/ngx_http_upstream.c     uscf->file_name = cf->conf_file->file.name.data;
file             1604 http/ngx_http_variables.c     v->len = r->request_body->temp_file->file.name.len;
file             1608 http/ngx_http_variables.c     v->data = r->request_body->temp_file->file.name.data;
file               92 http/ngx_http_write_filter_module.c                           cl->buf->file,
file              144 http/ngx_http_write_filter_module.c                           cl->buf->file,
file               25 mail/ngx_mail_auth_http_module.c     u_char                         *file;
file             1309 mail/ngx_mail_auth_http_module.c     ahcf->file = cf->conf_file->file.name.data;
file             1335 mail/ngx_mail_auth_http_module.c                           conf->file, conf->line);
file              165 mail/ngx_mail_core_module.c     cscf->file_name = cf->conf_file->file.name.data;
file              228 mail/ngx_mail_ssl_module.c                           mode, conf->file, conf->line);
file              236 mail/ngx_mail_ssl_module.c                           mode, conf->file, conf->line);
file              335 mail/ngx_mail_ssl_module.c     scf->file = cf->conf_file->file.name.data;
file              361 mail/ngx_mail_ssl_module.c     scf->file = cf->conf_file->file.name.data;
file               42 mail/ngx_mail_ssl_module.h     u_char          *file;
file               47 os/unix/ngx_darwin_sendfile_chain.c     ngx_buf_t       *file;
file               90 os/unix/ngx_darwin_sendfile_chain.c         file = NULL;
file              143 os/unix/ngx_darwin_sendfile_chain.c             file = cl->buf;
file              169 os/unix/ngx_darwin_sendfile_chain.c                      && file->file->fd == cl->buf->file->fd
file              173 os/unix/ngx_darwin_sendfile_chain.c         if (file && header.nelts == 0) {
file              216 os/unix/ngx_darwin_sendfile_chain.c         if (file) {
file              232 os/unix/ngx_darwin_sendfile_chain.c                            file->file_pos, sent, header_size);
file              234 os/unix/ngx_darwin_sendfile_chain.c             rc = sendfile(file->file->fd, c->fd, file->file_pos,
file              268 os/unix/ngx_darwin_sendfile_chain.c                               file->file->name.data);
file              275 os/unix/ngx_darwin_sendfile_chain.c                            rc, file->file_pos, sent, file_size + header_size);
file               33 os/unix/ngx_file_aio_read.c static ssize_t ngx_file_aio_result(ngx_file_t *file, ngx_event_aio_t *aio,
file               39 os/unix/ngx_file_aio_read.c ngx_file_aio_read(ngx_file_t *file, u_char *buf, size_t size, off_t offset,
file               47 os/unix/ngx_file_aio_read.c         return ngx_read_file(file, buf, size, offset);
file               50 os/unix/ngx_file_aio_read.c     aio = file->aio;
file               58 os/unix/ngx_file_aio_read.c         aio->file = file;
file               59 os/unix/ngx_file_aio_read.c         aio->fd = file->fd;
file               62 os/unix/ngx_file_aio_read.c         aio->event.log = file->log;
file               66 os/unix/ngx_file_aio_read.c         file->aio = aio;
file               72 os/unix/ngx_file_aio_read.c         ngx_log_error(NGX_LOG_ALERT, file->log, 0,
file               73 os/unix/ngx_file_aio_read.c                       "second aio post for \"%V\"", &file->name);
file               77 os/unix/ngx_file_aio_read.c     ngx_log_debug4(NGX_LOG_DEBUG_CORE, file->log, 0,
file               79 os/unix/ngx_file_aio_read.c                    ev->complete, offset, size, &file->name);
file               94 os/unix/ngx_file_aio_read.c     aio->aiocb.aio_fildes = file->fd;
file              111 os/unix/ngx_file_aio_read.c             return ngx_read_file(file, buf, size, offset);
file              114 os/unix/ngx_file_aio_read.c         ngx_log_error(NGX_LOG_CRIT, file->log, n,
file              115 os/unix/ngx_file_aio_read.c                       "aio_read(\"%V\") failed", &file->name);
file              119 os/unix/ngx_file_aio_read.c             return ngx_read_file(file, buf, size, offset);
file              125 os/unix/ngx_file_aio_read.c     ngx_log_debug2(NGX_LOG_DEBUG_CORE, file->log, 0,
file              126 os/unix/ngx_file_aio_read.c                    "aio_read: fd:%d %d", file->fd, n);
file              132 os/unix/ngx_file_aio_read.c     return ngx_file_aio_result(aio->file, aio, ev);
file              137 os/unix/ngx_file_aio_read.c ngx_file_aio_result(ngx_file_t *file, ngx_event_aio_t *aio, ngx_event_t *ev)
file              144 os/unix/ngx_file_aio_read.c     ngx_log_debug2(NGX_LOG_DEBUG_CORE, file->log, 0,
file              145 os/unix/ngx_file_aio_read.c                    "aio_error: fd:%d %d", file->fd, n);
file              151 os/unix/ngx_file_aio_read.c         ngx_log_error(NGX_LOG_ALERT, file->log, err,
file              152 os/unix/ngx_file_aio_read.c                       "aio_error(\"%V\") failed", &file->name);
file              160 os/unix/ngx_file_aio_read.c                 ngx_log_error(NGX_LOG_ALERT, file->log, n,
file              162 os/unix/ngx_file_aio_read.c                               &file->name);
file              171 os/unix/ngx_file_aio_read.c         ngx_log_error(NGX_LOG_CRIT, file->log, n,
file              172 os/unix/ngx_file_aio_read.c                       "aio_read(\"%V\") failed", &file->name);
file              183 os/unix/ngx_file_aio_read.c         ngx_log_error(NGX_LOG_ALERT, file->log, err,
file              184 os/unix/ngx_file_aio_read.c                       "aio_return(\"%V\") failed", &file->name);
file              193 os/unix/ngx_file_aio_read.c     ngx_log_debug2(NGX_LOG_DEBUG_CORE, file->log, 0,
file              194 os/unix/ngx_file_aio_read.c                    "aio_return: fd:%d %d", file->fd, n);
file              208 os/unix/ngx_file_aio_read.c                    "aio event handler fd:%d %V", aio->fd, &aio->file->name);
file              210 os/unix/ngx_file_aio_read.c     if (ngx_file_aio_result(aio->file, aio, ev) != NGX_AGAIN) {
file               19 os/unix/ngx_files.c ngx_read_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset)
file               23 os/unix/ngx_files.c     ngx_log_debug4(NGX_LOG_DEBUG_CORE, file->log, 0,
file               24 os/unix/ngx_files.c                    "read: %d, %p, %uz, %O", file->fd, buf, size, offset);
file               28 os/unix/ngx_files.c     n = pread(file->fd, buf, size, offset);
file               31 os/unix/ngx_files.c         ngx_log_error(NGX_LOG_CRIT, file->log, ngx_errno,
file               32 os/unix/ngx_files.c                       "pread() \"%s\" failed", file->name.data);
file               38 os/unix/ngx_files.c     if (file->sys_offset != offset) {
file               39 os/unix/ngx_files.c         if (lseek(file->fd, offset, SEEK_SET) == -1) {
file               40 os/unix/ngx_files.c             ngx_log_error(NGX_LOG_CRIT, file->log, ngx_errno,
file               41 os/unix/ngx_files.c                           "lseek() \"%s\" failed", file->name.data);
file               45 os/unix/ngx_files.c         file->sys_offset = offset;
file               48 os/unix/ngx_files.c     n = read(file->fd, buf, size);
file               51 os/unix/ngx_files.c         ngx_log_error(NGX_LOG_CRIT, file->log, ngx_errno,
file               52 os/unix/ngx_files.c                       "read() \"%s\" failed", file->name.data);
file               56 os/unix/ngx_files.c     file->sys_offset += n;
file               60 os/unix/ngx_files.c     file->offset += n;
file               67 os/unix/ngx_files.c ngx_write_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset)
file               71 os/unix/ngx_files.c     ngx_log_debug4(NGX_LOG_DEBUG_CORE, file->log, 0,
file               72 os/unix/ngx_files.c                    "write: %d, %p, %uz, %O", file->fd, buf, size, offset);
file               79 os/unix/ngx_files.c         n = pwrite(file->fd, buf + written, size, offset);
file               82 os/unix/ngx_files.c             ngx_log_error(NGX_LOG_CRIT, file->log, ngx_errno,
file               83 os/unix/ngx_files.c                           "pwrite() \"%s\" failed", file->name.data);
file               87 os/unix/ngx_files.c         file->offset += n;
file              100 os/unix/ngx_files.c     if (file->sys_offset != offset) {
file              101 os/unix/ngx_files.c         if (lseek(file->fd, offset, SEEK_SET) == -1) {
file              102 os/unix/ngx_files.c             ngx_log_error(NGX_LOG_CRIT, file->log, ngx_errno,
file              103 os/unix/ngx_files.c                           "lseek() \"%s\" failed", file->name.data);
file              107 os/unix/ngx_files.c         file->sys_offset = offset;
file              111 os/unix/ngx_files.c         n = write(file->fd, buf + written, size);
file              114 os/unix/ngx_files.c             ngx_log_error(NGX_LOG_CRIT, file->log, ngx_errno,
file              115 os/unix/ngx_files.c                           "write() \"%s\" failed", file->name.data);
file              119 os/unix/ngx_files.c         file->offset += n;
file              151 os/unix/ngx_files.c ngx_write_chain_to_file(ngx_file_t *file, ngx_chain_t *cl, off_t offset,
file              163 os/unix/ngx_files.c         return ngx_write_file(file, cl->buf->pos,
file              205 os/unix/ngx_files.c             return ngx_write_file(file, (u_char *) iov[0].iov_base,
file              209 os/unix/ngx_files.c         if (file->sys_offset != offset) {
file              210 os/unix/ngx_files.c             if (lseek(file->fd, offset, SEEK_SET) == -1) {
file              211 os/unix/ngx_files.c                 ngx_log_error(NGX_LOG_CRIT, file->log, ngx_errno,
file              212 os/unix/ngx_files.c                               "lseek() \"%s\" failed", file->name.data);
file              216 os/unix/ngx_files.c             file->sys_offset = offset;
file              219 os/unix/ngx_files.c         n = writev(file->fd, vec.elts, vec.nelts);
file              222 os/unix/ngx_files.c             ngx_log_error(NGX_LOG_CRIT, file->log, ngx_errno,
file              223 os/unix/ngx_files.c                           "writev() \"%s\" failed", file->name.data);
file              228 os/unix/ngx_files.c             ngx_log_error(NGX_LOG_CRIT, file->log, 0,
file              230 os/unix/ngx_files.c                           file->name.data, n, size);
file              234 os/unix/ngx_files.c         file->sys_offset += n;
file              235 os/unix/ngx_files.c         file->offset += n;
file               95 os/unix/ngx_files.h ssize_t ngx_read_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset);
file              102 os/unix/ngx_files.h ssize_t ngx_write_file(ngx_file_t *file, u_char *buf, size_t size,
file              105 os/unix/ngx_files.h ssize_t ngx_write_chain_to_file(ngx_file_t *file, ngx_chain_t *ce,
file              145 os/unix/ngx_files.h #define ngx_file_info(file, sb)  stat((const char *) file, sb)
file              151 os/unix/ngx_files.h #define ngx_link_info(file, sb)  lstat((const char *) file, sb)
file              330 os/unix/ngx_files.h ssize_t ngx_file_aio_read(ngx_file_t *file, u_char *buf, size_t size,
file               49 os/unix/ngx_freebsd_sendfile_chain.c     ngx_buf_t       *file;
file               94 os/unix/ngx_freebsd_sendfile_chain.c         file = NULL;
file              147 os/unix/ngx_freebsd_sendfile_chain.c             file = cl->buf;
file              173 os/unix/ngx_freebsd_sendfile_chain.c                      && file->file->fd == cl->buf->file->fd
file              178 os/unix/ngx_freebsd_sendfile_chain.c         if (file) {
file              221 os/unix/ngx_freebsd_sendfile_chain.c         if (file) {
file              269 os/unix/ngx_freebsd_sendfile_chain.c             rc = sendfile(file->file->fd, c->fd, file->file_pos,
file              286 os/unix/ngx_freebsd_sendfile_chain.c                     c->busy_sendfile = file;
file              314 os/unix/ngx_freebsd_sendfile_chain.c                          file->file->name.data, file->file_pos);
file              321 os/unix/ngx_freebsd_sendfile_chain.c                            rc, file->file_pos, sent, file_size + header_size);
file               27 os/unix/ngx_linux_aio_read.c ngx_file_aio_read(ngx_file_t *file, u_char *buf, size_t size, off_t offset,
file               36 os/unix/ngx_linux_aio_read.c         return ngx_read_file(file, buf, size, offset);
file               39 os/unix/ngx_linux_aio_read.c     aio = file->aio;
file               47 os/unix/ngx_linux_aio_read.c         aio->file = file;
file               48 os/unix/ngx_linux_aio_read.c         aio->fd = file->fd;
file               51 os/unix/ngx_linux_aio_read.c         aio->event.log = file->log;
file               52 os/unix/ngx_linux_aio_read.c         file->aio = aio;
file               58 os/unix/ngx_linux_aio_read.c         ngx_log_error(NGX_LOG_ALERT, file->log, 0,
file               59 os/unix/ngx_linux_aio_read.c                       "second aio post for \"%V\"", &file->name);
file               63 os/unix/ngx_linux_aio_read.c     ngx_log_debug4(NGX_LOG_DEBUG_CORE, file->log, 0,
file               65 os/unix/ngx_linux_aio_read.c                    ev->complete, offset, size, &file->name);
file               84 os/unix/ngx_linux_aio_read.c     aio->aiocb.aio_fildes = file->fd;
file              108 os/unix/ngx_linux_aio_read.c         return ngx_read_file(file, buf, size, offset);
file              111 os/unix/ngx_linux_aio_read.c     ngx_log_error(NGX_LOG_CRIT, file->log, n,
file              112 os/unix/ngx_linux_aio_read.c                   "io_submit(\"%V\") failed", &file->name);
file              116 os/unix/ngx_linux_aio_read.c         return ngx_read_file(file, buf, size, offset);
file              131 os/unix/ngx_linux_aio_read.c                    "aio event handler fd:%d %V", aio->fd, &aio->file->name);
file               44 os/unix/ngx_linux_sendfile_chain.c     ngx_buf_t     *file;
file               78 os/unix/ngx_linux_sendfile_chain.c         file = NULL;
file              110 os/unix/ngx_linux_sendfile_chain.c                               cl->buf->file,
file              215 os/unix/ngx_linux_sendfile_chain.c             file = cl->buf;
file              241 os/unix/ngx_linux_sendfile_chain.c                      && file->file->fd == cl->buf->file->fd
file              245 os/unix/ngx_linux_sendfile_chain.c         if (file) {
file              253 os/unix/ngx_linux_sendfile_chain.c             offset = file->file_pos;
file              255 os/unix/ngx_linux_sendfile_chain.c             offset = (int32_t) file->file_pos;
file              259 os/unix/ngx_linux_sendfile_chain.c                            "sendfile: @%O %uz", file->file_pos, file_size);
file              261 os/unix/ngx_linux_sendfile_chain.c             rc = sendfile(c->fd, file->file->fd, &offset, file_size);
file              288 os/unix/ngx_linux_sendfile_chain.c                            rc, file->file_pos, sent, file_size);
file              702 os/unix/ngx_process_cycle.c     ngx_exit_log_file.fd = ngx_cycle->log->file->fd;
file              705 os/unix/ngx_process_cycle.c     ngx_exit_log.file = &ngx_exit_log_file;
file             1055 os/unix/ngx_process_cycle.c     ngx_exit_log_file.fd = ngx_cycle->log->file->fd;
file             1058 os/unix/ngx_process_cycle.c     ngx_exit_log.file = &ngx_exit_log_file;
file              145 os/unix/ngx_solaris_sendfilev_chain.c                 if (fd == cl->buf->file->fd && fprev == cl->buf->file_pos) {
file              154 os/unix/ngx_solaris_sendfilev_chain.c                     fd = cl->buf->file->fd;