On Thu, 16 Jan 2025, Lasse Collin wrote:
The dirent functions are defined in POSIX, and POSIX clearly specifies
that no POSIX function shall set errno to zero.
Hmm, I haven't dug very deep for references around this, but a quick
google gave me this:
https://softwareengineering.stackexchange.com/a/209731/314542
POSIX no longer claims its libraries will not alter the value in case of
success, and the new Linux man page for errno.h reflects this:
> [...] a function that succeeds is allowed to change errno.
That said, I guess it's good practice to not reset errno in these
functions.
I think this change looks fine to me.
// Martin
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public