summaryrefslogtreecommitdiff
path: root/ev.h
diff options
context:
space:
mode:
authorroot <root>2007-11-02 16:54:34 +0000
committerroot <root>2007-11-02 16:54:34 +0000
commit0c513fd963e79da73c7d77018523ac956a5066bd (patch)
tree811c9fc8f69f24915a0aeee5200544a0c9be5bb2 /ev.h
parent6879205607d844eab17dd6c735f8e80bf1490baf (diff)
implement poll method, handle enomem by closing a 'random' fd
Diffstat (limited to 'ev.h')
-rw-r--r--ev.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/ev.h b/ev.h
index 1ffed6f..66e9bd1 100644
--- a/ev.h
+++ b/ev.h
@@ -167,12 +167,14 @@ struct ev_child
int status; /* rw, holds the exit status, use the macros from sys/wait.h */
};
-#define EVMETHOD_NONE 0
+#define EVMETHOD_AUTO 0 /* consults environment */
#define EVMETHOD_SELECT 1
-#define EVMETHOD_EPOLL 2
+#define EVMETHOD_POLL 2
+#define EVMETHOD_EPOLL 4
+#define EVMETHOD_ANY ~0 /* any method, do not consult env */
#if EV_PROTOTYPES
extern int ev_method;
-int ev_init (int flags); /* returns ev_method */
+int ev_init (int methods); /* returns ev_method */
int ev_version_major (void);
int ev_version_minor (void);