comparison src/os/unix/ngx_aio_read.c @ 518:86dad910eeb6 NGINX_0_8_11

nginx 0.8.11 *) Change: directive "gzip_disable msie6" enables gzipping for MSIE 6.0 SV1. *) Feature: file AIO support on FreeBSD and Linux. *) Feature: the "directio_alignment" directive.
author Igor Sysoev <http://sysoev.ru>
date Fri, 28 Aug 2009 00:00:00 +0400
parents df17fbafec8f
children d0f7a625f27c
comparison
equal deleted inserted replaced
517:15b5cddc5190 518:86dad910eeb6
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 #include <ngx_event.h> 9 #include <ngx_event.h>
10 #include <ngx_aio.h>
11
12 #if (NGX_HAVE_KQUEUE)
13 #include <ngx_kqueue_module.h>
14 #endif
15 10
16 11
17 /* 12 extern int ngx_kqueue;
18 * the ready data requires 3 syscalls: 13
19 * aio_write(), aio_error(), aio_return()
20 * the non-ready data requires 4 (kqueue) or 5 syscalls:
21 * aio_write(), aio_error(), notifiction, aio_error(), aio_return()
22 * timeout, aio_cancel(), aio_error()
23 */
24 14
25 ssize_t 15 ssize_t
26 ngx_aio_read(ngx_connection_t *c, u_char *buf, size_t size) 16 ngx_aio_read(ngx_connection_t *c, u_char *buf, size_t size)
27 { 17 {
28 int n; 18 int n;