[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
- Rename atomicity, Derek R. Price, 2001/03/02
- Re: Rename atomicity, Jim Meyering, 2001/03/04
- Re: Rename atomicity, Assar Westerlund, 2001/03/04
- Re: Rename atomicity, Mike Castle, 2001/03/05
- Re: Rename atomicity, Assar Westerlund, 2001/03/06
- Re: Rename atomicity, Thomas E. Dickey, 2001/03/06
- Re: Rename atomicity, Paul Eggert, 2001/03/06
- Re: Rename atomicity, Mike Castle, 2001/03/07
- Re: Rename atomicity,
Earnie Boyd <=
- Re: Rename atomicity, Derek R. Price, 2001/03/22