summaryrefslogtreecommitdiffstats
path: root/contrib/restricted/boost/filesystem/src/posix_tools.hpp
diff options
context:
space:
mode:
authorthegeorg <[email protected]>2022-08-29 07:42:14 +0300
committerthegeorg <[email protected]>2022-08-29 07:42:14 +0300
commit08b42c5732ff484354c4ca8adba3b002b117d122 (patch)
treee9757bdde5d9e8a10b187efffacbe8ea9282a0f5 /contrib/restricted/boost/filesystem/src/posix_tools.hpp
parent9f0fa80273f73bc1848572d7bd8a08ad530e438e (diff)
Update contrib/restricted/boost/filesystem to 1.80.0
Diffstat (limited to 'contrib/restricted/boost/filesystem/src/posix_tools.hpp')
-rw-r--r--contrib/restricted/boost/filesystem/src/posix_tools.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/contrib/restricted/boost/filesystem/src/posix_tools.hpp b/contrib/restricted/boost/filesystem/src/posix_tools.hpp
index 52426d4a36a..52cd87b0a02 100644
--- a/contrib/restricted/boost/filesystem/src/posix_tools.hpp
+++ b/contrib/restricted/boost/filesystem/src/posix_tools.hpp
@@ -19,10 +19,25 @@
#include <unistd.h>
#endif
+#include <boost/filesystem/detail/header.hpp> // must be the last #include
+
namespace boost {
namespace filesystem {
namespace detail {
+//! Platform-specific parameters for directory iterator construction
+struct directory_iterator_params
+{
+#if defined(BOOST_FILESYSTEM_HAS_POSIX_AT_APIS)
+ //! File descriptor of the base directory relative to which to interpret relative paths
+ int basedir_fd;
+#endif
+#if defined(BOOST_FILESYSTEM_HAS_FDOPENDIR_NOFOLLOW)
+ //! File descriptor of the directory over which the iterator iterates
+ int iterator_fd;
+#endif
+};
+
/*!
* Closes a file descriptor and returns the result, similar to close(2). Unlike close(2), guarantees that the file descriptor is closed even if EINTR error happens.
*
@@ -61,4 +76,6 @@ inline int close_fd(int fd)
} // namespace filesystem
} // namespace boost
+#include <boost/filesystem/detail/footer.hpp>
+
#endif // BOOST_FILESYSTEM_SRC_POSIX_TOOLS_HPP_