On Sat 30 Jul 2011 07:02, Ken Raeburn <[email protected]> writes:

> On Jul 29, 2011, at 12:04, Chris K. Jester-Young wrote:
>> 2. Use tmpfile as before, dup the file descriptor, and close the stdio
>>   stream unconditionally. This is wasteful of a file stream in that
>>   one gets created only to be immediately destroyed, but it's more
>>   faithful to the system-provided tmpfile, quirks and all.

I have applied something like this; thanks.

> Better check whether these will work on Windows, where file deletion
> interacts differently than on UNIX.

It won't work there.  We'd need to set up some sort of deferred thing to
delete the file.  Perhaps better to not provide tmpfile on mingw.

Andy
-- 
http://wingolog.org/

Reply via email to