On Sat, Nov 14, 2009 at 03:06:35AM +0200, Dmitri Gribenko wrote:
> On Sat, Nov 14, 2009 at 12:15 AM, Andrew Ross
> <andrewr...@users.sourceforge.net> wrote:
> > The temporary file will be created in the directory given by TMPDIR (UNIX) 
> > or
> > TEMP (windows) if they are set. Otherwise it will try P_tmpdir (if defined).
> > Finally it will try the default /tmp (UNIX) or c:\windows\temp (windows)
> > directory.
> 
> If you are already using conditional compilation for different
> platforms, you could try using Windows API functions designed for the
> task:
> 
> http://msdn.microsoft.com/en-us/library/aa363875%28VS.85%29.aspx
> 
> Dmitri

We could, although I prefer to keep cross-platform differences as small as
possible and to stick to standards compliant functions where possible. 
This tends to make dealing with new platforms easier.

Judging from what I have read I think that the (windows specific) O_TEMPORARY 
and O_SHORT_LIVED options translate to windows API calls anyway. If this proves
to be a problem then we may have to revert to your suggestion. As I say, I
don't have easy access to a windows development environment to test this 
on so I'm reliant on feedback.

Andrew

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to