summaryrefslogtreecommitdiffhomepage
path: root/src/event/ngx_event.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/event/ngx_event.h27
1 files changed, 17 insertions, 10 deletions
diff --git a/src/event/ngx_event.h b/src/event/ngx_event.h
index f67ae9513..c3cc9079e 100644
--- 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_flags;
#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);