libowfat/io/io_getcookie.c
leitner a544abc39c switch io_fds from array to newly implemented (hopefully thread-safe) iarray
switch epoll from level triggering to edge triggering
2014-04-04 18:11:03 +00:00

9 lines
144 B
C

#include <unistd.h>
#include "io_internal.h"
void* io_getcookie(int64 d) {
io_entry* e;
e=iarray_get(&io_fds,d);
return e?e->cookie:0;
}