> 2025-06-12 Bruno Haible
>
> stat, lstat, fstat tests: Enhance tests regarding /dev/null or NUL.
> * tests/test-fstat.c: Include .
> (main): Check that fstat reports /dev/null or NUL as a character device.
> * tests/test-stat.h (test_stat_func): Likewise for stat.
>
+1,8 @@
+2025-06-12 Bruno Haible
+
+ stat: Document mingw bug.
+ * doc/posix-functions/stat.texi: Mention the bug with NUL on mingw.
+
2025-06-12 Bruno Haible
stat: Add support for mingw 13 in 32-bit mode.
diff --git a/doc/posix-functions/stat.texi b/doc/posix-functions/stat.texi
index 160e8
thus arranges to
write the output to a temporary file and, at the end, attempts to
move/rename that temporary file to "NUL" — which fails.
The fix is to map _stat32i64 to rpl_stat, because rpl_stat() has
extra code for handling "NUL" and other character devices.
[1] https:/