comparison src/os/unix/ngx_files.c @ 3294:04cfc09b8b8d

export aio presence knowledge to prevent using "aio sendfile", if aio does not present
author Igor Sysoev <igor@sysoev.ru>
date Thu, 05 Nov 2009 13:12:30 +0000
parents 26784c34e8be
children e19df6e65352
comparison
equal deleted inserted replaced
3293:8abb88374c6c 3294:04cfc09b8b8d
4 */ 4 */
5 5
6 6
7 #include <ngx_config.h> 7 #include <ngx_config.h>
8 #include <ngx_core.h> 8 #include <ngx_core.h>
9
10
11 #if (NGX_HAVE_FILE_AIO)
12
13 ngx_uint_t ngx_file_aio = 1;
14
15 #endif
9 16
10 17
11 ssize_t 18 ssize_t
12 ngx_read_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset) 19 ngx_read_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset)
13 { 20 {