[libcxx-commits] [PATCH] D132948: [SystemZ][z/OS] define REMOVE_ALL_USE_DIRECTORY_ITERATOR for z/OS (libc++)
Muiez Ahmed via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Aug 30 08:12:06 PDT 2022
muiez created this revision.
muiez added reviewers: fanbo-meng, zibi, libc++, ldionne.
Herald added a project: All.
muiez requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added 1 blocking reviewer(s): libc++.
This patch fixes the z/OS build by using the first implementation of __remove_all since we don't have access to the `openat()` family of POSIX functions.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D132948
Files:
libcxx/src/filesystem/operations.cpp
Index: libcxx/src/filesystem/operations.cpp
===================================================================
--- libcxx/src/filesystem/operations.cpp
+++ libcxx/src/filesystem/operations.cpp
@@ -1348,7 +1348,7 @@
//
// The second implementation is used on platforms where `openat()` & friends are available,
// and it threads file descriptors through recursive calls to avoid such race conditions.
-#if defined(_LIBCPP_WIN32API)
+#if defined(_LIBCPP_WIN32API) || defined (__MVS__)
# define REMOVE_ALL_USE_DIRECTORY_ITERATOR
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132948.456681.patch
Type: text/x-patch
Size: 541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220830/578f93dc/attachment.bin>
More information about the libcxx-commits
mailing list