Skip to content

Support TMP environment variables for tmp::file on POSIX#230

Open
IgnatSergeev wants to merge 1 commit into
bugdea1er:mainfrom
IgnatSergeev:respect-tmp-envvars-posix
Open

Support TMP environment variables for tmp::file on POSIX#230
IgnatSergeev wants to merge 1 commit into
bugdea1er:mainfrom
IgnatSergeev:respect-tmp-envvars-posix

Conversation

@IgnatSergeev

@IgnatSergeev IgnatSergeev commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Unfortunately std::tmpfile doesn't respect TMPDIR, TMP, and other environment variables for base tmp directories
Implementation mirrors glibc's tmpfile but uses std::filesystem::temp_directory_path to get correct base path
https://sourceware.org/git/?p=glibc.git;a=blob;f=stdio-common/tmpfile.c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant