Date: Sun, 15 Jun 2003 12:57:40 -0400 (EDT) From: Robert Watson <rwatson@freebsd.org> To: Matthew Hagerty <matthew@mundomateo.com> Cc: freebsd-hackers@freebsd.org Subject: Re: kqueue alternative? Message-ID: <Pine.NEB.3.96L.1030615125423.98988D-100000@fledge.watson.org> In-Reply-To: <1079.10.0.81.10.1055692530.squirrel@www.mundomateo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 15 Jun 2003, Matthew Hagerty wrote: > I'm writing a little application that needs to watch a file that another > process is writing to, think 'tail -F'. kqueue and kevent are going to > do it for me on *BSD, but I'm also trying to support *cough* linux and > other UN*X types OSes. > > >From what I can find on google, the linux community seems very opposed > to kqueue and has not yet implemented it (they say: blah blah blah, > aio_*, blah blah balh.) What alternatives do I have with OSes that > don't support kqueue? I'd really hate to poll with stat(), but do I > have any other choices? I was recently told about a library named libevent from Niels Provos, which abstracts a variety of underlying event mechanisms behind a common API. You can learn a bit more about it here: http://www.monkey.org/~provos/libevent/ It doesn't appear to support /dev/poll yet, but the web page suggests such support is planned. If it's not already a port, we should create one. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1030615125423.98988D-100000>