| delorie.com/archives/browse.cgi | search |
| From: | anorland AT hem2 DOT passagen DOT se (Anders Norlander) |
| Subject: | incompatible rename in crtdll |
| 30 Oct 1998 14:04:02 -0800 : | |
| Message-ID: | <3638DC9E.5D11EDEE.cygnus.gnu-win32@hem2.passagen.se> |
| Mime-Version: | 1.0 |
| To: | gnu-win32 AT cygnus DOT com |
| Cc: | colin AT fu DOT is DOT saga-u DOT ac DOT jp |
Hi, I have noticed that rename in crtdll does not behave as you would expect it to do on a unix system. If the new filename already exists the function will fail. I noticed this when porting patch to mingw32. Cygwin handles this correctly. To get around it you would have to do something like this: #define rename(f,t) _ming_rename
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |