diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-08-25 09:09:13 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-08-25 09:09:13 +0000 |
commit | b71610eb09a799560f1c4d42be82e3100a9d6d9a (patch) | |
tree | 47e08342f2c09d2e0b57e433b5159cb9c9bab959 /src/os/unix/ngx_aio_write.c | |
parent | 8e7e69e3517f197f369e77f3f4613135cd1f3636 (diff) | |
download | nginx-b71610eb09a799560f1c4d42be82e3100a9d6d9a.tar.gz nginx-b71610eb09a799560f1c4d42be82e3100a9d6d9a.zip |
*) move small declarations in appropriate places and delete the surplus
header files
*) delete insignificant comments
Diffstat (limited to 'src/os/unix/ngx_aio_write.c')
-rw-r--r-- | src/os/unix/ngx_aio_write.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/os/unix/ngx_aio_write.c b/src/os/unix/ngx_aio_write.c index 57e751d10..9138af16a 100644 --- a/src/os/unix/ngx_aio_write.c +++ b/src/os/unix/ngx_aio_write.c @@ -7,20 +7,10 @@ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_event.h> -#include <ngx_aio.h> -#if (NGX_HAVE_KQUEUE) -#include <ngx_kqueue_module.h> -#endif +extern int ngx_kqueue; -/* - * the ready data requires 3 syscalls: - * aio_write(), aio_error(), aio_return() - * the non-ready data requires 4 (kqueue) or 5 syscalls: - * aio_write(), aio_error(), notifiction, aio_error(), aio_return() - * timeout, aio_cancel(), aio_error() - */ ssize_t ngx_aio_write(ngx_connection_t *c, u_char *buf, size_t size) |