Issue Details (XML | Word | Printable)

Key: STDCXX-801
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Martin Sebor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

std::filebuf::open(0, ...) should honor TMPDIR

Created: 28/Mar/08 12:32 AM   Updated: 20/May/08 06:53 PM
Return to search
Component/s: 27. Input/Output
Affects Version/s: 4.2.0
Fix Version/s: 4.2.2

Time Tracking:
Original Estimate: 2h
Original Estimate - 2h
Remaining Estimate: 2h
Remaining Estimate - 2h
Time Spent: Not Specified
Remaining Estimate - 2h

Issue Links:
Reference
 

Severity: Usability


 Description  « Hide
The std::filebuf::open() function implements, as an extension, the ability to create a temporary file that is automatically deleted on process exit (regardless of whether the exit is normal or otherwise). The function uses the mkstemp function on POISX platforms and tempnam function on Windows. In both cases, the function uses the P_tmpdir macro for the directory where to create the temporary file. On POSIX systems it's customary to be able to set the TMPDIR environment variable to a directory where temporary files should be created by programs. We should change our implementation so as to honor this convention. On Windows, there is an analogous environment variable TMP. We should change our implementation on Windows to honor TMP if it's set and use P_tmpdir only when it's not.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Martin Sebor added a comment - 28/Mar/08 12:33 AM
This is related to STDCXX-401 which deals with a similar issue in the test suite.

Martin Sebor added a comment - 20/May/08 06:53 PM
Targeting 4.2.2.