[Top][All Lists]

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

Re: fix for rename function on Mingw, take 2

From: Ben Pfaff
Subject: Re: fix for rename function on Mingw, take 2
Date: Wed, 08 Apr 2009 08:34:47 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Michael Haubenwallner <address@hidden> writes:

> On Tue, 2009-04-07 at 20:23 -0700, Ben Pfaff wrote:
>> On the Windows platform, Microsoft documents the rename function
>> as refusing to replace existing destination files.  This is
>> allowed by C89 (and C99) but it is not POSIX-compliant, and it
>> can be quite surprising to programs that want to atomically
>> replace files.
> What about moving across mountpoints/filesystems?
> Even it may just work now, shouldn't it be documented somewhere?

The flags that I specified to MoveFileEx should not, as I
understand it, allow renaming files across mount points.  As far
as I'm concerned, that is just fine, because POSIX allows failure
in that case.
"Implementation details are beyond the scope of the Java virtual
 machine specification.  One should not assume that every virtual
 machine implementation contains a giant squid."
--"Mr. Bunny's Big Cup o' Java"

reply via email to

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