On Wed, Apr 26, 2017 at 08:51:42PM +0100, Daniel Silverstone wrote:
(a) older glibcs which have no statement regarding the safety of
In what way, other than thread safety, is readdir() unsafe on older glibcs?
and (b) many other platforms such as Solaris, and the *BSDs which
don't even use glibc.
But these platforms also have readdir()?
I am concerned that while this patch might eliminate warnings on modern glibc
based systems, it may in fact create portability issues unless you use
an #ifdef approach to ensure that on non-modern-glibc systems you continue
with the fpathconf+readdir_r approach.
I don't see what the portability issue is,
since all the other things have readdir() as well,
this code should work fine on Solaris and BSD?