llvm/libcxx/src
Konstantin Varlamov 3906ebf750 [libc++] Fix double file closing in std::filesystem::remove_all().
According to Linux documentation (see e.g. https://linux.die.net/man/3/closedir):

> A successful call to `closedir()` also closes the underlying file
> descriptor associated with `dirp`.

Thus, calling `close()` after a successful call to `closedir()` is at
best redundant. Worse, should a different thread open a file in-between
the calls to `closedir()` and `close()` and get the same file descriptor,
the call to `close()` might actually close a different file than was
intended.

rdar://89251874

Differential Revision: https://reviews.llvm.org/D120453
2022-02-28 12:56:36 -05:00
..
experimental [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
filesystem [libc++] Fix double file closing in std::filesystem::remove_all(). 2022-02-28 12:56:36 -05:00
include [libc++] Move everything related solely to _LIBCPP_ASSERT to its own file 2022-02-16 12:49:50 -05:00
ryu [libc++] Move everything related solely to _LIBCPP_ASSERT to its own file 2022-02-16 12:49:50 -05:00
support [libc++] Move everything related solely to _LIBCPP_ASSERT to its own file 2022-02-16 12:49:50 -05:00
algorithm.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
any.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
assert.cpp [libc++] Move everything related solely to _LIBCPP_ASSERT to its own file 2022-02-16 12:49:50 -05:00
atomic.cpp [libc++] Split a few utilities out of __threading_support 2022-01-18 12:23:44 -05:00
barrier.cpp
bind.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
charconv.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
chrono.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
chrono_system_time_init.h Ensure newlines at the end of files (NFC) 2021-12-26 08:51:06 -08:00
CMakeLists.txt [libc++] Move everything related solely to _LIBCPP_ASSERT to its own file 2022-02-16 12:49:50 -05:00
condition_variable.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
condition_variable_destructor.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
debug.cpp [libc++] Move everything related solely to _LIBCPP_ASSERT to its own file 2022-02-16 12:49:50 -05:00
exception.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
format.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
functional.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
future.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
hash.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
ios.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
ios.instantiations.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
iostream.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
iostream_init.h Ensure newlines at the end of files (NFC) 2021-12-26 08:51:06 -08:00
legacy_pointer_safety.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
locale.cpp [libcxx] Fix the error checking for wctob_l, fixing locale narrow function on Windows 2022-02-25 23:44:23 +02:00
memory.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
mutex.cpp [libc++] Move everything related solely to _LIBCPP_ASSERT to its own file 2022-02-16 12:49:50 -05:00
mutex_destructor.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
new.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
optional.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
random.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
random_shuffle.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
regex.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
shared_mutex.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
stdexcept.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
string.cpp [libc++] Move everything related solely to _LIBCPP_ASSERT to its own file 2022-02-16 12:49:50 -05:00
strstream.cpp [libc++] Move everything related solely to _LIBCPP_ASSERT to its own file 2022-02-16 12:49:50 -05:00
system_error.cpp [libc++] Move everything related solely to _LIBCPP_ASSERT to its own file 2022-02-16 12:49:50 -05:00
thread.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
typeinfo.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
utility.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
valarray.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
variant.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00
vector.cpp [libc++] Replace #include "" with <> in libcxx/src/. NFCI. 2022-02-15 13:00:46 -05:00