From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 28 19:29:38 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CAC1016A4CF; Mon, 28 Jun 2004 19:29:37 +0000 (GMT) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.12.11/8.12.11) with ESMTP id i5SJTbnq023473; Mon, 28 Jun 2004 15:29:37 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.12.11/8.12.11/Submit) id i5SJTaoc023472; Mon, 28 Jun 2004 15:29:36 -0400 (EDT) (envelope-from green) Date: Mon, 28 Jun 2004 15:29:35 -0400 From: Brian Fundakowski Feldman To: Stephen Hurd Message-ID: <20040628192935.GF5635@green.homeunix.org> References: <20040624174919.46160f9e.shurd@sasktel.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040624174919.46160f9e.shurd@sasktel.net> User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org Subject: Re: Locking: kern/50827 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2004 19:29:38 -0000 On Thu, Jun 24, 2004 at 05:49:19PM -0600, Stephen Hurd wrote: > Well, possibly due to editorial content, kern/50827 has been completely > ignored. Not sure exactly the correct method of bringing something like > this up, but am I the only one who finds flock(), dotlock, and fcntl() > locks insufficient for their needs? Originally, this patch resulted from > porting a multi-threaded Win32 program to *nix... however, I've since used > the features it in a number of programs (for FreeBSD only of course) with > good success. It really makes locking behave as expected. > > Has anyone looked at this? Does anyone have any comments? > > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/50827 I don't think you'll ever find anyone interested in file locking anymore. Since they're all advisory, anyway, you can just implement them at a higher level in your application. BSD and System V IPC mechanisms already are very good building blocks here for system-scoped locks. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\