stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <>
Subject [jira] Created: (STDCXX-801) std::filebuf::open(0, ...) should honor TMPDIR
Date Fri, 28 Mar 2008 00:34:24 GMT
std::filebuf::open(0, ...) should honor TMPDIR

                 Key: STDCXX-801
             Project: C++ Standard Library
          Issue Type: Improvement
          Components: 27. Input/Output
    Affects Versions: 4.2.0
            Reporter: Martin Sebor
            Priority: Minor

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