On Wed, Feb 17, 2021 at 11:51:04PM +0000, David A. Holland wrote:
 > Also, Someone(TM) should check if POSIX permits this or if we ought to
 > improve the implementation.

Unsurprisingly, POSIX is silent. It just says "rewinddir shall also
cause the directory stream to refer to the current state of the
corresponding directory, as a call to opendir() would have done,"
basically the same text we had previously.

This could be read as _mandating_ reopening it, but that is almost
certainly not what they intended, so I think we're ok.

https://pubs.opengroup.org/onlinepubs/9699919799/functions/opendir.html
https://pubs.opengroup.org/onlinepubs/9699919799/functions/rewinddir.html

-- 
David A. Holland
dholl...@netbsd.org

Reply via email to