llvm-project/libcxx
Dan Albert 0b15b14096 Fix error checking in get_temp_file_name().
Checking errno without first checking that the call failed means that
if some other call prior to mkstemp failed with EINVAL prior to this,
the assert would fire even if mkstemp succeeded. If something failed
with EEXIST, it would go in to an infinite loop.

Change-Id: I3f140a3e15fe08664a38a8c9a950c4ed547eb481
llvm-svn: 229035
2015-02-13 03:02:28 +00:00
..
cmake Make ABI header not found a warning, not an error. 2015-02-10 18:46:57 +00:00
include Move the test for zero-length into the char_traits (from string_view). Add tests to char_traits specializations 2015-02-12 23:34:52 +00:00
lib [cmake/multilib] Teach libc++'s CMake build to support multilib libdir 2014-12-29 12:15:47 +00:00
src libc++: remove unused variable in random_device::operator()() 2015-02-04 20:25:57 +00:00
test Fix error checking in get_temp_file_name(). 2015-02-13 03:02:28 +00:00
utils/not [libcxx] Allow use of ShTest in libc++ tests along with other changes. 2015-01-22 18:05:58 +00:00
www Mark <experimental/system_error> as complete 2015-02-03 16:04:45 +00:00
.arcconfig Update Arcanist config to point to reviews.llvm.org 2014-06-10 18:29:36 +00:00
.gitignore [libc++] Refactor test components into modules. 2015-01-09 18:03:29 +00:00
CMakeLists.txt Adopt CMake policy CMP0042. Set MACOSX_RPATH on by default. 2015-01-26 21:56:45 +00:00
CREDITS.TXT Add myself to CREDITS.TXT. 2015-01-30 22:40:31 +00:00
LICENSE.TXT Update the copyright credits -- Happy new year 2014! 2014-01-01 08:27:31 +00:00
Makefile Revert "Fix installheaders target's permissions" 2014-12-16 05:28:07 +00:00