Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_files.h @ 497:d7c90bb5ce83 release-0.1.23
nginx-0.1.23-RELEASE import
*) Feature: the ngx_http_ssi_filter_module and the ssi,
ssi_silent_errors, and ssi_min_file_chunk directives. The 'echo
var="HTTP_..." default=""' and 'echo var="REMOTE_ADDR"' commands are
supported.
*) Feature: the %request_time log parameter.
*) Feature: if the request has no the "Host" header line, then the
"proxy_preserve_host" directive set this header line to the first
server name of the "server_name" directive.
*) Bugfix: nginx could not be built on platforms different from i386,
amd64, sparc, and ppc; the bug had appeared in 0.1.22.
*) Bugfix: the ngx_http_autoindex_module now shows the information not
about the symlink, but about file or directory it points to.
*) Bugfix: the %apache_length parameter logged the negative length of
the response header if the no response was transferred to a client.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 01 Mar 2005 15:20:36 +0000 |
parents | 8e8f3af115b5 |
children | 458b6c3fea65 |
comparison
equal
deleted
inserted
replaced
496:7ce7b31c3c83 | 497:d7c90bb5ce83 |
---|---|
16 #define NGX_FILE_ERROR -1 | 16 #define NGX_FILE_ERROR -1 |
17 | 17 |
18 | 18 |
19 | 19 |
20 #define ngx_open_file(name, access, create) \ | 20 #define ngx_open_file(name, access, create) \ |
21 open((const char *) name, access|create, 0644) | 21 open((const char *) name, access|create, 0644) |
22 #define ngx_open_file_n "open()" | 22 #define ngx_open_file_n "open()" |
23 | 23 |
24 #define NGX_FILE_RDONLY O_RDONLY | 24 #define NGX_FILE_RDONLY O_RDONLY |
25 #define NGX_FILE_RDWR O_RDWR | 25 #define NGX_FILE_RDWR O_RDWR |
26 #define NGX_FILE_CREATE_OR_OPEN O_CREAT | 26 #define NGX_FILE_CREATE_OR_OPEN O_CREAT |
44 ssize_t ngx_read_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset); | 44 ssize_t ngx_read_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset); |
45 #define ngx_read_file_n "read()" | 45 #define ngx_read_file_n "read()" |
46 | 46 |
47 | 47 |
48 ssize_t ngx_write_file(ngx_file_t *file, u_char *buf, size_t size, | 48 ssize_t ngx_write_file(ngx_file_t *file, u_char *buf, size_t size, |
49 off_t offset); | 49 off_t offset); |
50 | 50 |
51 ssize_t ngx_write_chain_to_file(ngx_file_t *file, ngx_chain_t *ce, | 51 ssize_t ngx_write_chain_to_file(ngx_file_t *file, ngx_chain_t *ce, |
52 off_t offset, ngx_pool_t *pool); | 52 off_t offset, ngx_pool_t *pool); |
53 | 53 |
54 | 54 |
55 #define ngx_rename_file rename | 55 #define ngx_rename_file rename |
56 #define ngx_rename_file_n "rename" | 56 #define ngx_rename_file_n "rename" |
57 | 57 |
84 #define ngx_close_dir(d) closedir((d)->dir) | 84 #define ngx_close_dir(d) closedir((d)->dir) |
85 #define ngx_close_dir_n "closedir()" | 85 #define ngx_close_dir_n "closedir()" |
86 | 86 |
87 | 87 |
88 #define ngx_read_dir(d) \ | 88 #define ngx_read_dir(d) \ |
89 (((d)->de = readdir((d)->dir)) ? NGX_OK : NGX_ERROR) | 89 (((d)->de = readdir((d)->dir)) ? NGX_OK : NGX_ERROR) |
90 #define ngx_read_dir_n "readdir()" | 90 #define ngx_read_dir_n "readdir()" |
91 | 91 |
92 | 92 |
93 #define ngx_create_dir(name) mkdir((const char *) name, 0700) | 93 #define ngx_create_dir(name) mkdir((const char *) name, 0700) |
94 #define ngx_create_dir_n "mkdir()" | 94 #define ngx_create_dir_n "mkdir()" |
102 #if (NGX_FREEBSD) | 102 #if (NGX_FREEBSD) |
103 #define ngx_de_namelen(dir) (dir)->de->d_namlen | 103 #define ngx_de_namelen(dir) (dir)->de->d_namlen |
104 #else | 104 #else |
105 #define ngx_de_namelen(dir) ngx_strlen((dir)->de->d_name) | 105 #define ngx_de_namelen(dir) ngx_strlen((dir)->de->d_name) |
106 #endif | 106 #endif |
107 #define ngx_de_info(name, dir) lstat((const char *) name, &(dir)->info) | 107 #define ngx_de_info(name, dir) stat((const char *) name, &(dir)->info) |
108 #define ngx_de_info_n "stat()" | 108 #define ngx_de_info_n "stat()" |
109 #define ngx_de_link_info(name, dir) lstat((const char *) name, &(dir)->info) | |
110 #define ngx_de_link_info_n "lstat()" | |
109 #define ngx_de_is_dir(dir) (S_ISDIR((dir)->info.st_mode)) | 111 #define ngx_de_is_dir(dir) (S_ISDIR((dir)->info.st_mode)) |
110 #define ngx_de_is_file(dir) (S_ISREG((dir)->info.st_mode)) | 112 #define ngx_de_is_file(dir) (S_ISREG((dir)->info.st_mode)) |
113 #define ngx_de_is_link(dir) (S_ISLNK((dir)->info.st_mode)) | |
111 #define ngx_de_size(dir) (dir)->info.st_size | 114 #define ngx_de_size(dir) (dir)->info.st_size |
112 #define ngx_de_mtime(dir) (dir)->info.st_mtime | 115 #define ngx_de_mtime(dir) (dir)->info.st_mtime |
113 | 116 |
114 | 117 |
115 #endif /* _NGX_FILES_H_INCLUDED_ */ | 118 #endif /* _NGX_FILES_H_INCLUDED_ */ |