[libdispatch-dev] [PATCH 00/17] portability + chainsaw

Mark Heily mark at heily.com
Sun Oct 18 19:52:20 PDT 2009


Paolo Bonzini wrote:
> 
> Because of the very precise requirements of libdispatch on kevent's
> semantics, it may be easier to go this way rather than implement kevent
> as a wrapper.  I have no answer, and libnqkqueue is very interesting,
> but anyway these patches are quite safe.
> 

Aside from a few things like EVFILT_PROC and some issues with signal 
handling, I am fairly confident that the semantics of kqueue/kevent can be 
reproduced on Linux and other non-BSD systems. The libkqueue library that I 
am writing is structurally complete, but some of the filters are buggy 
and/or incomplete.

The benefits of using a wrapper library to emulate kqueue/kevent is that you 
don't have to make any major modifications to libdispatch. All you need to 
do is add -lkqueue to LDFLAGS, add -I/usr/include/kqueue to CFLAGS, and 
you're done. I sent a patch earlier to this effect.

Regards,

  - Mark




More information about the libdispatch-dev mailing list