Re: [committed] libstdc++: Improve directory iterator abstractions for openat

2022-06-28 Thread Jonathan Wakely via Gcc-patches
On Tue, 28 Jun 2022 at 15:24, Jonathan Wakely via Libstdc++ wrote: > --- a/libstdc++-v3/src/filesystem/dir-common.h > +++ b/libstdc++-v3/src/filesystem/dir-common.h > @@ -25,6 +25,7 @@ > #ifndef _GLIBCXX_DIR_COMMON_H > #define _GLIBCXX_DIR_COMMON_H 1 > > +#include // uint32_t > #include //

[committed] libstdc++: Improve directory iterator abstractions for openat

2022-06-28 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux, pushed to trunk. -- >8 -- Currently the _Dir::open_subdir function decides whether to construct a _Dir_base with just a pathname, or a file descriptor and pathname. But that means it is tiughtly coupled to the implementation of _Dir_base::openat, which is what actually d