~ubuntu-branches/ubuntu/trusty/nginx/trusty-proposed

« back to all changes in this revision

Viewing changes to src/os/unix/ngx_aio_write.c

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry
  • Date: 2013-04-25 12:51:45 UTC
  • mfrom: (1.3.28)
  • mto: (1.3.29) (15.1.2 experimental)
  • mto: This revision was merged to the branch mainline in revision 64.
  • Revision ID: package-import@ubuntu.com-20130425125145-ugl0wor6bq0u5eae
Tags: upstream-1.4.0
ImportĀ upstreamĀ versionĀ 1.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/*
3
3
 * Copyright (C) Igor Sysoev
 
4
 * Copyright (C) Nginx, Inc.
4
5
 */
5
6
 
6
7
 
7
8
#include <ngx_config.h>
8
9
#include <ngx_core.h>
9
10
#include <ngx_event.h>
10
 
#include <ngx_aio.h>
11
 
 
12
 
#if (NGX_HAVE_KQUEUE)
13
 
#include <ngx_kqueue_module.h>
14
 
#endif
15
 
 
16
 
 
17
 
/*
18
 
 * the ready data requires 3 syscalls:
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
 
 */
 
11
 
 
12
 
 
13
extern int  ngx_kqueue;
 
14
 
24
15
 
25
16
ssize_t
26
17
ngx_aio_write(ngx_connection_t *c, u_char *buf, size_t size)