Displaying 1 result from an estimated 1 matches for "kevent_set_size".
2003 Apr 16
1
PATCH Add support for kqueue in ioloop subsystem
...Copyright (c) 2002, Dominic Marks <dom at cus.org.uk>
*
* This code is placed in the public domain.
*/
#include "lib.h"
#include "ioloop-internal.h"
#ifdef IOLOOP_KEVENT
#include <sys/time.h>
#include <sys/types.h>
#include <sys/event.h>
#ifndef KEVENT_SET_SIZE
# define KEVENT_SET_SIZE 16
#endif
struct ioloop_handler_data {
int kq; /* kqueue descriptor */
struct kevent event; /* a kevent struct which we pass around */
};
void io_loop_handler_init(struct ioloop *ioloop)
{
struct ioloop_handler_data *data;
ioloop->handler_data = data =
p_new(io...