watching for new files: libevent vs. libev

Jann Horn jann+libev at thejh.net
Thu Apr 4 21:40:10 CEST 2013


On Thu, Apr 04, 2013 at 01:04:35PM -0400, Mikhail T. wrote:
> Hello!
> 
> By adding EV_ET to the flags, I can watch a directory for changes --
> such as files being added or removed to it -- using libevent (at least,
> on FreeBSD). Sample program attached.
> 
> Does libev provide a similar functionality? Some mailing list archives
> suggest, edge-triggered events aren't supported by libev (for
> portability?), but those pages are from 2010. Have there been
> improvements since, perhaps?

Have a look at the documentation:
<http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod#code_ev_stat_code_did_the_file_attri>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20130404/347ae56b/attachment.pgp>


More information about the libev mailing list