msvcrt/file.c: file mode T (temporary file) (try 3)

Robert van Herk mijnspamboxje at hotmail.com
Mon Feb 27 04:23:01 CST 2012




> So what actually prevents you from properly implementing this? Especially 
> that Wine already supports temporary files. Search for MSVCRT__O_TEMPORARY
>
> Vitaliy.

I wrote a new version that maps
'D' -> MSVCRT__O_TEMPORARY, and
'T' -> MSVCRT__O_SHORT_LIVED | MSVCRT__O_TEMPORARY

I deliberately included MSVCRT__O_TEMPORARY in 'T': on Windows, when a file is opened in 'T' mode, a subsequent call to GetFileAttributes(tempfile) show that the FILE_ATTRIBUTE_TEMPORARY flag is set, so this seemed like to most sensible thing to do.

I updated the conformance test such that it checks that the file is actually deleted after fclose.

Kind regards,
Robert van Herk
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120227/d66815ab/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Fix-T-filemode.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120227/d66815ab/attachment-0001.txt>


More information about the wine-patches mailing list