stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <>
Subject [jira] Updated: (STDCXX-801) std::filebuf::open(0, ...) should honor TMPDIR
Date Tue, 20 May 2008 18:53:55 GMT


Martin Sebor updated STDCXX-801:

    Fix Version/s: 4.2.2

Targeting 4.2.2.

> std::filebuf::open(0, ...) should honor TMPDIR
> ----------------------------------------------
>                 Key: STDCXX-801
>                 URL:
>             Project: C++ Standard Library
>          Issue Type: Improvement
>          Components: 27. Input/Output
>    Affects Versions: 4.2.0
>            Reporter: Martin Sebor
>            Priority: Minor
>             Fix For: 4.2.2
>   Original Estimate: 2h
>  Remaining Estimate: 2h
> 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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message