From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 15 08:55:32 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A293537B401 for ; Sun, 15 Jun 2003 08:55:32 -0700 (PDT) Received: from mail.mundomateo.com (24-56-193-117.mdmmi.voyager.net [24.56.193.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id E398143FBF for ; Sun, 15 Jun 2003 08:55:31 -0700 (PDT) (envelope-from matthew@mundomateo.com) Received: from mundomateo.com (localhost.mundomateo.com [127.0.0.1]) by mail.mundomateo.com (Postfix) with SMTP id 50CEF5CB7 for ; Sun, 15 Jun 2003 11:55:30 -0400 (EDT) Received: from 10.0.81.10 (SquirrelMail authenticated user matthew) by www.mundomateo.com with HTTP; Sun, 15 Jun 2003 11:55:30 -0400 (EDT) Message-ID: <1079.10.0.81.10.1055692530.squirrel@www.mundomateo.com> Date: Sun, 15 Jun 2003 11:55:30 -0400 (EDT) From: "Matthew Hagerty" To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.4.0 RC2a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal Subject: kqueue alternative? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: matthew@mundomateo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jun 2003 15:55:33 -0000 Greetings, 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? Thanks, Matthew