Skip to main content.
home | support | download

Back to List Archive

Re: Temporary files and RAM Disk

From: Greg Ford <greg(at)not-real.reddfish.co.nz>
Date: Thu Oct 23 2003 - 10:09:22 GMT
> We discussed temp files quite a bit in the past, but I don't remember
> the issues.  I can't remember if it was a security issue or a
> portability issue.  I see in the code a reference to the
> Secure-Programs-HOWTO, and I do remember having mkstemp() recommended
> over tmpfile().  But, frankly, I don't remember the details.
>
> The other issue that comes to mind is other platforms.  IIRC, Windows
> (or perhaps some Windows versions) won't allow unlinking an open file.

I don't think mkstemp() is supported under Windows (at least not underVC++).
I can't find it in the VC++ docs.

I also suspect you are right about Windows not allowing open files being
unlinked.
Most likely all Windows versions are similar in this respect.

Greg Ford
Received on Thu Oct 23 10:09:33 2003