v2 / vlib / os / notify / kqueue.h
12 lines · 9 sloc · 405 bytes · 301320f4b00036cbd4600426f40af2bc6bd8e98f
Raw
1#ifndef __KQUEUE_H
2#define __KQUEUE_H
3
4#include <sys/event.h>
5
6// Due to the renaming of 'struct kevent' and function 'kevent',
7// they are wrapped here to avoid conflicts.
8int __kevent__(int handle, const struct kevent* changelist, int nchanges, struct kevent* eventlist, int nevents, const struct timespec* timeout) {
9 return kevent(handle, changelist, nchanges, eventlist, nevents, timeout);
10}
11
12#endif
13