apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Weimer ...@deneb.enyo.de>
Subject Re: 1.6 release timetable
Date Sat, 25 Mar 2017 15:42:47 GMT
* Yann Ylavic:

>> It's been a bit of a struggle to get this right.
>
> I think the confusion comes from the term "directory stream", which
> people (at least me :p ) may read as underlying directory (i.e.
> filesystem's), though it's the term used to talk about the DIR* in the
> whole man page...

> I now realize that there is no real thread-safety issue, it indeed
> shouldn't happen to call readdir() concurrently on the same DIR, IMHO
> the doc should say that it's simply undefined behaviour (actually I
> thought it was the case with readdir_r too, so the readdir_r part is
> the misleading one I think).

Thanks for this feedback.

>> I think the Solaris manual also does not mark readdir as thread-safe,
>> implicitly suggesting to use readdir_r in multi-threaded programs.
>> But this suggestion isn't helpful on Solaris, either.
>
> So Solaris' readdir() does not return static data either.

Right.

> Any idea of which system keeps doing this?

No one who monitors the Austin Groups tracker for POSIX issues does
it, otherwise they would have spoken out against the readdir_r
deprecation.

Mime
View raw message