[libdispatch-dev] [PATCH] use libkqueue if sys/event.h is missing
Mark Heily
mark at heily.com
Thu Nov 5 20:32:10 PST 2009
Robert N. M. Watson wrote:
>
> On a similar note, if you have kqueue regression tests, I'd love to get
> those into the FreeBSD source tree as well -- kqueue is quite a nice
> API, but the lack of thorough regression tests has always worried me. I
> think we have a few in the tree now that exercise kqueue as part of
> testing other things (such as sockets and fifos), but nothing really
> thorough.
>
The unit tests for libkqueue now work under OpenBSD 4.4 using the native
kqueue(2) and kevent(2) system calls. I rewrote the test harness to be
independent of libkqueue, so you should be able to import the test/
directory into FreeBSD without much effort.
Regards,
- Mark
More information about the libdispatch-dev
mailing list