Oh -- also libevent, described at <a href="http://www.monkey.org/~provos/libevent/">http://www.monkey.org/~provos/libevent/</a> :<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">

Currently, <i>libevent</i> supports
<i><a href="http://access1.sun.com/techarticles/devpoll.html">/dev/poll</a></i>,
<i><a href="http://www.freebsd.org/cgi/man.cgi?query=kqueue&amp;apropos=0&amp;sektion=0&amp;format=html">kqueue(2)</a></i>,
<i><a href="http://developers.sun.com/solaris/articles/event_completion.html">event ports</a></i>,
<i>select(2)</i>,
<i>poll(2)</i> and <i><a href="http://www.xmailserver.org/linux-patches/epoll.txt">epoll(4)</a></i>.

The internal event mechanism is completely independent of the exposed
event API, and a simple update of libevent can provide new
functionality without having to redesign the applications.  As a
result, <i>Libevent</i> allows for portable application development
and provides the most scalable event notification mechanism available
on an operating system. 
Libevent can also be used for multi-threaded
applications; see Steven Grimm&#39;s <a href="http://monkeymail.org/archives/libevent-users/2007-January/000450.html">explanation</a>. 
<i>Libevent</i> should compile on Linux, *BSD,
Mac OS X, Solaris and Windows.<br></blockquote><br><div class="gmail_quote">On Fri, Dec 4, 2009 at 10:52 PM, Conal Elliott <span dir="ltr">&lt;<a href="mailto:conal@conal.net">conal@conal.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Thanks, Matt.  I see libev is available via macports.  - Conal<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Fri, Dec 4, 2009 at 3:03 PM, Matt Morrow <span dir="ltr">&lt;<a href="mailto:moonpatio@gmail.com" target="_blank">moonpatio@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Conal,<br>
<br>
If I were looking to do this, I&#39;d read the relevant parts of the libev code.<br>
<font color="#888888"><br>
Matt<br>
</font><div><div></div><div><br>
<br>
On 12/3/09, Conal Elliott &lt;<a href="mailto:conal@conal.net" target="_blank">conal@conal.net</a>&gt; wrote:<br>
&gt; I&#39;d like to make some FRPish toys that keep files updated to have functional<br>
&gt; relationships with other files.  hinotify looks like just the sort of<br>
&gt; underlying magic I could use for efficient implementation on linux.  Is<br>
&gt; there any support for mac os x?  Could support be either added to hinotify<br>
&gt; or maybe inotify and a mac-friendly library be abstracted into a common<br>
&gt; Haskell interface?  I&#39;m fine with an imperative interface, since I can<br>
&gt; abstract into a functional library, which I guess would be a sort of<br>
&gt; persistent simplified FRP.<br>
&gt;<br>
&gt;    - Conal<br>
&gt;<br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>