gcc/libstdc++-v3/testsuite/experimental
Jonathan Wakely 3dbd4d94bf libstdc++: Use secure_getenv for filesystem::temp_directory_path() [PR65018]
This adds a configure check for the GNU extension secure_getenv and then
uses it for looking up TMPDIR and similar variables.

Signed-off-by: Jonathan Wakely <jwakely@redhat.com>

libstdc++-v3/ChangeLog:

	PR libstdc++/65018
	* configure.ac: Check for secure_getenv.
	* config.h.in: Regenerate.
	* configure: Regenerate.
	* src/filesystem/ops-common.h (get_temp_directory_from_env): New
	helper function to obtain path from the environment.
	* src/c++17/fs_ops.cc (fs::temp_directory_path): Use new helper.
	* src/filesystem/ops.cc (fs::temp_directory_path): Likewise.
	* testsuite/27_io/filesystem/operations/temp_directory_path.cc:
	Print messages if test cannot be run.
	* testsuite/experimental/filesystem/operations/temp_directory_path.cc:
	Likewise. Fix incorrect condition. Use "TMP" to work with
	Windows as well as POSIX.
2021-07-30 18:12:39 +01:00
..
algorithm Update copyright years. 2021-01-04 10:26:59 +01:00
any Update copyright years. 2021-01-04 10:26:59 +01:00
array Update copyright years. 2021-01-04 10:26:59 +01:00
chrono Update copyright years. 2021-01-04 10:26:59 +01:00
deque Update copyright years. 2021-01-04 10:26:59 +01:00
filesystem libstdc++: Use secure_getenv for filesystem::temp_directory_path() [PR65018] 2021-07-30 18:12:39 +01:00
forward_list Update copyright years. 2021-01-04 10:26:59 +01:00
functional Update copyright years. 2021-01-04 10:26:59 +01:00
iterator Update copyright years. 2021-01-04 10:26:59 +01:00
list Update copyright years. 2021-01-04 10:26:59 +01:00
map Update copyright years. 2021-01-04 10:26:59 +01:00
memory Update copyright years. 2021-01-04 10:26:59 +01:00
memory_resource Update copyright years. 2021-01-04 10:26:59 +01:00
net libstdc++: Use <sys/socket.h> features conditionally [PR 100285] 2021-04-30 14:29:20 +01:00
numeric Update copyright years. 2021-01-04 10:26:59 +01:00
optional Update copyright years. 2021-01-04 10:26:59 +01:00
polymorphic_allocator Update copyright years. 2021-01-04 10:26:59 +01:00
propagate_const libstdc++: Finish implementing LWG 3413 for propagate_const 2021-06-08 15:01:06 +01:00
random Update copyright years. 2021-01-04 10:26:59 +01:00
ratio Update copyright years. 2021-01-04 10:26:59 +01:00
set Update copyright years. 2021-01-04 10:26:59 +01:00
simd libstdc++: Make use of __builtin_bit_cast for simd 2021-06-25 17:32:13 +02:00
source_location Update copyright years. 2021-01-04 10:26:59 +01:00
string Update copyright years. 2021-01-04 10:26:59 +01:00
string_view Update copyright years. 2021-01-04 10:26:59 +01:00
system_error Update copyright years. 2021-01-04 10:26:59 +01:00
tuple Update copyright years. 2021-01-04 10:26:59 +01:00
type_erased_allocator Update copyright years. 2021-01-04 10:26:59 +01:00
type_traits Update copyright years. 2021-01-04 10:26:59 +01:00
unordered_map Update copyright years. 2021-01-04 10:26:59 +01:00
unordered_set Update copyright years. 2021-01-04 10:26:59 +01:00
vector Update copyright years. 2021-01-04 10:26:59 +01:00
feat-char8_t.cc libstdc++: P1423R3 char8_t remediation (3/4) 2019-11-29 17:43:46 +00:00
feat-cxx14.cc Use dg-do preprocess instead of compile for tests 2016-08-23 11:13:31 +01:00
feat-lib-fund.cc libstdc++: Fix errors from Library Fundamentals TS headers in C++11 [PR 98319] 2020-12-16 13:37:17 +00:00
names.cc libstdc++: More workarounds in 17_intro/names.cc test [PR 97088] 2021-06-25 18:41:24 +01:00