open RDWR so does not fail. (pragma/warnings 303 again...)
p4raw-id: //depot/perlio@7555
PerlIOUnix_read(PerlIO *f, void *vbuf, Size_t count)
{
int fd = PerlIOSelf(f,PerlIOUnix)->fd;
+ if (!(PerlIOBase(f)->flags & PERLIO_F_CANREAD))
+ return 0;
while (1)
{
SSize_t len = read(fd,vbuf,count);