Well... >From the Posix documentation: "The mkstemp function generates a unique file name just as mktemp does, but it also opens the file for you..." So you can anyhow use the Microsoft version of mktemp to get the file name and then you just open it as you need. I believe this approach is much simpler that creating your own function.
As simple as that, Maurizio -----Original Message----- From: Andrew Piskorski [mailto:a...@piskorski.com] Sent: 27 September 2014 16:09 To: naviserver-devel@lists.sourceforge.net Subject: Re: [naviserver-devel] no mkstemp() on Windows, use TclpCreateTempFile()? On Fri, Sep 26, 2014 at 06:08:39PM +0200, Maurizio Martignano wrote: > http://msdn.microsoft.com/en-us/library/ms235413.aspx No, that is about mktemp (and thus also _mktemp and _mktemp_s), which has quite different behavior from mkstemp. They are not replacements for each other. -- Andrew Piskorski <a...@piskorski.com> ---------------------------------------------------------------------------- -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk _______________________________________________ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk _______________________________________________ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel