Mercurial > hg > nginx
diff src/event/ngx_event.h @ 79:eacfdd1c31b9
nginx-0.0.1-2003-04-22-19:02:58 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 22 Apr 2003 15:02:58 +0000 |
parents | 57c2e18d3572 |
children | 3973260705cc |
line wrap: on
line diff
--- a/src/event/ngx_event.h +++ b/src/event/ngx_event.h @@ -146,31 +146,33 @@ typedef struct { } ngx_event_actions_t; -/* Event filter requires to read/write the whole data - +/* The event filter requires to read/write the whole data - select, poll, /dev/poll, kqueue. */ #define NGX_HAVE_LEVEL_EVENT 1 -/* Event filter is deleted after notification - select, poll, kqueue. - Using /dev/poll it can be implemented with additional syscall */ +/* The event filter is deleted after a notification without an additional + syscall - select, poll, kqueue. */ #define NGX_HAVE_ONESHOT_EVENT 2 -/* Event filter notifies only changes and initial level - kqueue */ +/* The event filter notifies only the changes and an initial level - kqueue */ #define NGX_HAVE_CLEAR_EVENT 4 -/* Event filter has kqueue features - eof flag, errno, available data, etc */ +/* The event filter has kqueue features - the eof flag, errno, + available data, etc */ #define NGX_HAVE_KQUEUE_EVENT 8 -/* Event filter supports low water mark - kqueue's NOTE_LOWAT, - early kqueue implementations have no NOTE_LOWAT so we need a separate flag */ +/* The event filter supports low water mark - kqueue's NOTE_LOWAT. + Early kqueue implementations have no NOTE_LOWAT so we need a separate flag */ #define NGX_HAVE_LOWAT_EVENT 0x00000010 -/* Event filter notifies only changes (edges) but not initial level - epoll */ +/* The event filter notifies only the changes (the edges) + but not an initial level - epoll */ #define NGX_HAVE_EDGE_EVENT 0x00000020 -/* No need to add or delete event filters - rt signals */ +/* No need to add or delete the event filters - rt signals */ #define NGX_HAVE_SIGIO_EVENT 0x00000040 -/* No need to add or delete event filters - overlapped, aio_read, aioread */ +/* No need to add or delete the event filters - overlapped, aio_read, aioread */ #define NGX_HAVE_AIO_EVENT 0x00000080 /* Need to add socket or handle only once - i/o completion port. @@ -284,6 +286,11 @@ extern int ngx_event_f #endif +#if !(HAVE_EPOLL) +#define ngx_edge_add_event(ev) NGX_ERROR +#endif + + ssize_t ngx_event_recv_core(ngx_connection_t *c, char *buf, size_t size); int ngx_event_close_connection(ngx_event_t *ev);