Skip to content

Commit

Permalink
Reworked directory iterator construction with parameters.
Browse files Browse the repository at this point in the history
Instead of passing a base directory fd, pass the directory fd to iterate over.
This simplifies code a little and makes it closer to Windows version.

Also, use unique_fd from Boost.Scope instead of a custom fd wrapper. Also
added handling of EINTR returned from open/openat in more places.
  • Loading branch information
Lastique committed Feb 18, 2024
1 parent 9f6bf1a commit e9621c0
Show file tree
Hide file tree
Showing 5 changed files with 316 additions and 192 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ target_link_libraries(boost_filesystem

PRIVATE
Boost::predef
Boost::scope
)

if(NOT BOOST_FILESYSTEM_HAS_CXX20_ATOMIC_REF)
Expand Down
Loading

0 comments on commit e9621c0

Please sign in to comment.