From owner-freebsd-questions@FreeBSD.ORG Thu Apr 3 14:12:03 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C08FA106564A for ; Thu, 3 Apr 2008 14:12:03 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 905058FC1C for ; Thu, 3 Apr 2008 14:12:03 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id B55091CC91; Thu, 3 Apr 2008 06:12:02 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org, John Conover Date: Thu, 3 Apr 2008 16:11:59 +0200 User-Agent: KMail/1.9.7 References: <20080403102555.9941.qmail@rahul.net> In-Reply-To: <20080403102555.9941.qmail@rahul.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804031612.00718.fbsd.questions@rachie.is-a-geek.net> Cc: Subject: Re: F_NOTIFY in fcntl(2)? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 14:12:03 -0000 On Thursday 03 April 2008 12:25:55 John Conover wrote: > Does freebsd support the F_NOTIFY, (i.e., File and directory change > notification,) in fcntl(2)? > > I get that it doesn't, but its an old 5X version, and I might have to > upgrade. Nope, this is a GNU extension to fcntl. File change notifications are done with EVFILT_VNODE using kqueue(2). Directory changes have no interface that I know of. You might wanna take a look at how devel/gamin handles this, specifically the kqueue implementation. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.