Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4425351 By: keithmarshall
[quote]The problem as I understand it is that MS interprets the ANSI C99 standard to say that tmpfile should create the file in the root directory `C:\'.[/quote] No, that isn't strictly correct. Microsoft's tmpfile() implementation has [b]always[/b] been -- to say the least -- "odd". It will usually prefix a single backslash to the generated unique file name. However, this does [b]not[/b] imply that the file should be created in the root (C:\) directory; according to the MS documentation on MSDN, it indicates that the file may be safely created [b]in the current working directory[/b], but the onus is placed on the programmer, to adjust the returned path name accordingly. [quote]I am afraid the burden is on the programmer to be aware of this issue, including for Windows XP limited users, not just Vista and Windows 7.[/quote] That burden applies for [b]all[/b] MS-Windows versions, from the dawn of MS-Windows time, not just to XP and later. There are many -- myself among them -- who have been bitten by this quirky behaviour, and consider it to be broken. However, it is "as documented", so technically it isn't a bug; we just have to live with and work around it. [quote]You may want to download a copy of glibc version 2.14 and look at <libio/stdio.h>. You probably compiled using mingw <stdio.h>[/quote] Well, that's standard behaviour for MinGW -- it uses Microsoft's runtime services [b]by design[/b]. A study of the glibc implementation (as used by Linux?) may be instructive, but it's hardly relevant in the MinGW context. _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4425351/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ GnuWin32-Users mailing list GnuWin32-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnuwin32-users