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

Frédéric Delanoy frederic.delanoy at gmail.com
Tue Feb 28 02:39:11 CST 2012


On Mon, Feb 27, 2012 at 11:23, Robert van Herk
<mijnspamboxje at hotmail.com> wrote:
>> 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

You may already be aware of this, but you can request a testbot
account to check your patches before submission to wine-patches.
See http://testbot.winehq.org/

Frédéric



More information about the wine-devel mailing list