comparison src/event/modules/ngx_aio_module.c @ 1354:f69d1aab6a0f

make 64-bit ngx_int_t on 64-bit platforms
author Igor Sysoev <igor@sysoev.ru>
date Sun, 29 Jul 2007 18:24:53 +0000
parents c95800738d2c
children 0b592a68aade
comparison
equal deleted inserted replaced
1353:7443fbe0b013 1354:f69d1aab6a0f
14 #endif 14 #endif
15 15
16 16
17 static ngx_int_t ngx_aio_init(ngx_cycle_t *cycle, ngx_msec_t timer); 17 static ngx_int_t ngx_aio_init(ngx_cycle_t *cycle, ngx_msec_t timer);
18 static void ngx_aio_done(ngx_cycle_t *cycle); 18 static void ngx_aio_done(ngx_cycle_t *cycle);
19 static ngx_int_t ngx_aio_add_event(ngx_event_t *ev, int event, u_int flags); 19 static ngx_int_t ngx_aio_add_event(ngx_event_t *ev, ngx_int_t event,
20 static ngx_int_t ngx_aio_del_event(ngx_event_t *ev, int event, u_int flags); 20 ngx_uint_t flags);
21 static ngx_int_t ngx_aio_del_connection(ngx_connection_t *c, u_int flags); 21 static ngx_int_t ngx_aio_del_event(ngx_event_t *ev, ngx_int_t event,
22 ngx_uint_t flags);
23 static ngx_int_t ngx_aio_del_connection(ngx_connection_t *c, ngx_uint_t flags);
22 static ngx_int_t ngx_aio_process_events(ngx_cycle_t *cycle, ngx_msec_t timer, 24 static ngx_int_t ngx_aio_process_events(ngx_cycle_t *cycle, ngx_msec_t timer,
23 ngx_uint_t flags); 25 ngx_uint_t flags);
24 26
25 27
26 ngx_os_io_t ngx_os_aio = { 28 ngx_os_io_t ngx_os_aio = {
98 100
99 101
100 /* the event adding and deleting are needed for the listening sockets */ 102 /* the event adding and deleting are needed for the listening sockets */
101 103
102 static ngx_int_t 104 static ngx_int_t
103 ngx_aio_add_event(ngx_event_t *ev, int event, u_int flags) 105 ngx_aio_add_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags)
104 { 106 {
105 return ngx_kqueue_module_ctx.actions.add(ev, event, flags); 107 return ngx_kqueue_module_ctx.actions.add(ev, event, flags);
106 } 108 }
107 109
108 110
109 static ngx_int_t 111 static ngx_int_t
110 ngx_aio_del_event(ngx_event_t *ev, int event, u_int flags) 112 ngx_aio_del_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags)
111 { 113 {
112 return ngx_kqueue_module_ctx.actions.del(ev, event, flags); 114 return ngx_kqueue_module_ctx.actions.del(ev, event, flags);
113 } 115 }
114 116
115 117
116 static ngx_int_t 118 static ngx_int_t
117 ngx_aio_del_connection(ngx_connection_t *c, u_int flags) 119 ngx_aio_del_connection(ngx_connection_t *c, ngx_uint_t flags)
118 { 120 {
119 int rc; 121 int rc;
120 122
121 if (c->read->active == 0 && c->write->active == 0) { 123 if (c->read->active == 0 && c->write->active == 0) {
122 return NGX_OK; 124 return NGX_OK;