Three corrections for patch
v2-0001-Fixed-Windows-stat-emulation-working-with-streams.patch:
1) I see in debugger that field "st_mode" for stdout has value
_S_IFCHR (0x2000, 8192);
2) "st_rdev" feild should have the same value as "st_dev";
3) we can not use emulated stat information for stderr after call
"freopen(OutputFileName, "a", stderr);".
With best regards,
Dmitry Koval.