2002-09-02 22:48:24 +08:00
|
|
|
#ifndef _NGX_FILE_H_INCLUDED_
|
|
|
|
#define _NGX_FILE_H_INCLUDED_
|
|
|
|
|
|
|
|
|
2003-01-30 15:28:09 +08:00
|
|
|
#include <ngx_file.h>
|
2002-09-02 22:48:24 +08:00
|
|
|
#include <ngx_log.h>
|
2002-12-15 14:25:09 +08:00
|
|
|
#include <ngx_string.h>
|
2002-09-02 22:48:24 +08:00
|
|
|
|
|
|
|
typedef struct ngx_file_s ngx_file_t;
|
|
|
|
|
|
|
|
struct ngx_file_s {
|
2002-12-15 14:25:09 +08:00
|
|
|
ngx_fd_t fd;
|
|
|
|
ngx_str_t name;
|
|
|
|
ngx_file_info_t info;
|
|
|
|
|
2002-12-22 01:14:50 +08:00
|
|
|
off_t offset;
|
|
|
|
|
2002-12-15 14:25:09 +08:00
|
|
|
ngx_log_t *log;
|
|
|
|
|
|
|
|
unsigned info_valid:1;
|
2002-09-02 22:48:24 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif _NGX_FILE_H_INCLUDED_
|