This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] gcc cannot deal with full /tmp


Joseph S. Myers wrote:
On Mon, 28 Jul 2008, Denys Vlasenko wrote:

This is a trivial fix for
https://bugzilla.redhat.com/show_bug.cgi?id=203231

This probably needs testing for MinGW; Windows has its own error reporting mechanisms and I don't know if you'll get the desired POSIX errno values.

Thanks for pointing this out Joseph.


I did not actually test this code; however I manually tested that open() with the options that libiberty mkstemps() uses will generate EEXIST if the file already exists, and not in various other conditions I tested. Also, the documentation <http://msdn.microsoft.com/en-us/library/z0kc8e3z(VS.71).aspx> seems to indicate this will work.

So I think this is correct for MinGW.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]