Mercurial > hg > nginx
comparison src/os/unix/ngx_aio_read.c @ 3044:a1d54c705f38
*) move small declarations in appropriate places and delete the surplus
header files
*) delete insignificant comments
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 25 Aug 2009 09:09:13 +0000 |
parents | 4d9ea73a627a |
children | d620f497c50f |
comparison
equal
deleted
inserted
replaced
3043:a66d6dfd53f1 | 3044:a1d54c705f38 |
---|---|
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; |