autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rename atomicity


From: Earnie Boyd
Subject: Re: Rename atomicity
Date: Thu, 08 Mar 2001 09:41:12 -0500

Mike Castle wrote:
> 
> On Tue, Mar 06, 2001 at 05:51:45PM +0100, Assar Westerlund wrote:
> > Mike Castle <address@hidden> writes:
> > > NT.  (NT will happily rename() across disks, hardly an atomic operation).
> >
> > What rename() is that?  It's not the one in their posix library I
> > assume?  Is there a rename function in any of the ordinary set of libraries.
> 
> Well, I was mostly considering the rename() function supplied with vendor
> libraries.  Ie, Borland and MS products.  I would suppose that autoconf
> would attempt to support those products as well.  As far as the Cygwin
> stuff goes, I would have to defer to others.  Otherwise I'd have to search
> the source.
> 

The underlying code uses the Win32 API MoveFile or MoveFileEx depending
on NT or 9x/ME.  According to msdn.microsoft.com:

The MoveFile function will move (rename) either a file or a directory
(including its children) either in the same directory or across
directories. The one caveat is that the MoveFile function will fail on
directory moves when the destination is on a different volume. 

Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]