Try making PerlIO errors more consistent.
authorJarkko Hietaniemi <jhi@iki.fi>
Mon, 7 Jul 2003 09:38:28 +0000 (09:38 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 7 Jul 2003 09:38:28 +0000 (09:38 +0000)
commit1f376c7ce977bb89362f73c478e0b87765bc5b5b
treeec33acf1f00586fdeca0b333ab6c0f26e889ac02
parentc0a503cc6b3faa34b3edb5cd8b57d31f88b4baae
Try making PerlIO errors more consistent.
(1) Check early whether the filehandle is capable of
    the requested action.
(2) PerlIO_read() really can return -1, and so can
    PerlIOUnix_read().
(3) Some stdio implementations are more forgiving
    than others, so check also for errors recorded
    by PerlIO in PerlStdio_errno().

p4raw-id: //depot/perl@20050
perlio.c