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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to