Mercurial > hg > nginx-vendor-1-0
comparison src/os/unix/ngx_files.h @ 532:f7ec98e3caeb NGINX_0_8_18
nginx 0.8.18
*) Feature: the "read_ahead" directive.
*) Feature: now several "perl_modules" directive may be used.
*) Feature: the "limit_req_log_level" and "limit_conn_log_level"
directives.
*) Bugfix: now "limit_req" directive conforms to the leaky bucket
algorithm.
Thanks to Maxim Dounin.
*) Bugfix: nginx did not work on Linux/sparc.
Thanks to Marcus Ramberg.
*) Bugfix: nginx sent '\0' in a "Location" response header line on
MKCOL request.
Thanks to Xie Zhenye.
*) Bugfix: zero status code was logged instead of 499 status code; the
bug had appeared in 0.8.11.
*) Bugfix: socket leak; the bug had appeared in 0.8.11.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 06 Oct 2009 00:00:00 +0400 |
parents | 86dad910eeb6 |
children | 0dc162a5f3e8 |
comparison
equal
deleted
inserted
replaced
531:7688992d2abb | 532:f7ec98e3caeb |
---|---|
252 #define ngx_trylock_fd_n "fcntl(F_SETLK, F_WRLCK)" | 252 #define ngx_trylock_fd_n "fcntl(F_SETLK, F_WRLCK)" |
253 #define ngx_lock_fd_n "fcntl(F_SETLKW, F_WRLCK)" | 253 #define ngx_lock_fd_n "fcntl(F_SETLKW, F_WRLCK)" |
254 #define ngx_unlock_fd_n "fcntl(F_SETLK, F_UNLCK)" | 254 #define ngx_unlock_fd_n "fcntl(F_SETLK, F_UNLCK)" |
255 | 255 |
256 | 256 |
257 #if (NGX_HAVE_F_READAHEAD) | |
258 | |
259 #define NGX_HAVE_READ_AHEAD 1 | |
260 | |
261 #define ngx_read_ahead(fd, n) fcntl(fd, F_READAHEAD, (int) n) | |
262 #define ngx_read_ahead_n "fcntl(fd, F_READAHEAD)" | |
263 | |
264 #elif (NGX_HAVE_POSIX_FADVISE) | |
265 | |
266 #define NGX_HAVE_READ_AHEAD 1 | |
267 | |
268 #define ngx_read_ahead(fd, n) posix_fadvise(fd, 0, 0, POSIX_FADV_SEQUENTIAL) | |
269 #define ngx_read_ahead_n "posix_fadvise(POSIX_FADV_SEQUENTIAL)" | |
270 | |
271 #else | |
272 | |
273 #define ngx_read_ahead(fd, n) 0 | |
274 #define ngx_read_ahead_n "ngx_read_ahead_n" | |
275 | |
276 #endif | |
277 | |
278 | |
257 #if (NGX_HAVE_O_DIRECT) | 279 #if (NGX_HAVE_O_DIRECT) |
258 | 280 |
259 ngx_int_t ngx_directio_on(ngx_fd_t fd); | 281 ngx_int_t ngx_directio_on(ngx_fd_t fd); |
260 #define ngx_directio_on_n "fcntl(O_DIRECT)" | 282 #define ngx_directio_on_n "fcntl(O_DIRECT)" |
261 | 283 |