From: Greg C. <gch...@sb...> - 2009-03-20 01:06:15
|
On 2009-03-20 00:02Z, Michel Boaventura wrote: > > On linux implementation of rename() is possible to rename an open > file, but on mingw seems like it is not. > Looking at Posix, theres nothing about it, so I really don't know > which is the "right" version. Posix allows rename(2) to return EBUSY: http://www.opengroup.org/onlinepubs/009695399/functions/rename.html if "the implementation considers this an error", as msw does. So the behavior you want is not guaranteed anyway. See, e.g.: http://miksovsky.blogs.com/flowstate/2005/11/why_not_allow_t.html Furthermore, MinGW does not provide a posix libc: it uses the msvc runtime library, which is documented by msdn, not posix. |