On Tue, 03 Jun 2003 13:08:00 BST, Nick Ing-Simmons wrote: >Gurusamy Sarathy <[EMAIL PROTECTED]> writes: >>I'd argue that we shouldn't use File::Temp for other platforms >>either due to the bloat factor. I doubt there are any platforms >>that don't support open(f, O_CREAT|O_EXCL|O_RDWR, 0600), which >>is really the only thing that is needed to write a functional >>mkstemp(). > >If that is so wonderously portable then why does change#19667 not >use mkstemp() for Win32?
It essentially does (note win32_tmpfd() is basically mkstemp() without the template argument--we could add that if it is useful, but I did not see a need for it for the tmpfile() stuff). I use the low level APIs (rather than CRT's open()) to get the DELETE_ON_CLOSE functionality. Sarathy [EMAIL PROTECTED]
