everywhere.
p4raw-link: @11051 on //depot/perl:
497b47a829dd93323de2c7f4f6815ab9f23d6ada
p4raw-id: //depot/perl@11503
p4raw-integrated: from //depot/maint-5.6/macperl@11502 'merge in'
doio.c (@11007..)
IoTYPE(io) = IoTYPE_RDWR;
break;
}
- writing = (result > 0);
+ writing = (result != O_RDONLY);
if (result == O_RDONLY) {
mode[ix++] = 'r';