Mercurial > hg > nginx-vendor-1-0
comparison src/os/unix/ngx_files.h @ 232:d8f5c91a5c07 NGINX_0_4_1
nginx 0.4.1
*) Bugfix: the DragonFlyBSD compatibility.
Thanks to Pavel Nazarov.
*) Workaround: of bug in 64-bit Linux sendfile(), when file is more
than 2G.
*) Feature: now on Linux nginx uses O_NOATIME flag for static
requests.
Thanks to Yusuf Goolamabbas.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 14 Sep 2006 00:00:00 +0400 |
parents | 38e7b94d63ac |
children | c16038b14e68 |
comparison
equal
deleted
inserted
replaced
231:8024b0d52263 | 232:d8f5c91a5c07 |
---|---|
26 #define NGX_FILE_CREATE_OR_OPEN O_CREAT | 26 #define NGX_FILE_CREATE_OR_OPEN O_CREAT |
27 #define NGX_FILE_OPEN 0 | 27 #define NGX_FILE_OPEN 0 |
28 #define NGX_FILE_TRUNCATE O_TRUNC | 28 #define NGX_FILE_TRUNCATE O_TRUNC |
29 #define NGX_FILE_APPEND O_APPEND | 29 #define NGX_FILE_APPEND O_APPEND |
30 | 30 |
31 #ifdef O_NOATIME | |
32 #define NGX_FILE_NOATIME O_NOATIME | |
33 #else | |
34 #define NGX_FILE_NOATIME 0 | |
35 #endif | |
31 | 36 |
32 #define ngx_close_file close | 37 #define ngx_close_file close |
33 #define ngx_close_file_n "close()" | 38 #define ngx_close_file_n "close()" |
34 | 39 |
35 | 40 |