From owner-freebsd-hackers Thu Aug 17 2: 7:34 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 06BA437B511 for ; Thu, 17 Aug 2000 02:06:57 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 17 Aug 2000 10:06:54 +0100 (BST) Date: Thu, 17 Aug 2000 10:06:52 +0100 From: David Malone To: Karl Pielorz Cc: hackers@freebsd.org Subject: Re: Critical (or equivalent) section in Userland? Message-ID: <20000817100652.A31452@walton.maths.tcd.ie> References: <399BA212.A84240AE@tdx.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <399BA212.A84240AE@tdx.co.uk>; from kpielorz@tdx.co.uk on Thu, Aug 17, 2000 at 09:28:02AM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Aug 17, 2000 at 09:28:02AM +0100, Karl Pielorz wrote: > I'm writing a program under FreeBSD 3.X that has been forced into having to > make a number of rename() calls that must be completed atomically (i.e. all > together) without the process being interrupted, or any other process being > allowed to run... This isn't possible without serious hackery - you don't want to do it. If all the files exist below one directory you could swap the directories with two renames, but that won't be atomic either. I think your best bet would be rethink what you want to do. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message