Displaying 1 result from an estimated 1 matches for "initial_kqueue_ev".
2004 Oct 25
0
[PATCH] Request for testing: BSD kqueue ioloop handler
...ion.
+ */
+
+/* @UNSAFE: whole file */
+
+#include "lib.h"
+#include "iolist.h"
+#include "ioloop-internal.h"
+
+#ifdef IOLOOP_KQUEUE
+
+#include <sys/types.h>
+#include <sys/event.h>
+#include <sys/time.h>
+#include <unistd.h>
+
+#define INITIAL_KQUEUE_EVENTS 128
+
+struct ioloop_handler_data {
+ int kq;
+
+ unsigned int events_size, events_pos, events_changed;
+ struct kevent *events;
+
+ unsigned int idx_size;
+ struct io_list **fd_index;
+};
+
+void io_loop_handler_init(struct ioloop *ioloop)
+{
+ struct ioloop_handler_data *data;
+
+ ioloop->...