Skip to content

Commit

Permalink
Remove code guarded by PERLIO_STD_SPECIAL
Browse files Browse the repository at this point in the history
The symbol was only defined on Symbian, and calling macros only
defined there.
  • Loading branch information
ilmari committed Jul 20, 2020
1 parent c91f661 commit 566a3e5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions perlio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2739,10 +2739,6 @@ PerlIOUnix_read(pTHX_ PerlIO *f, void *vbuf, Size_t count)
if (PerlIO_lockcnt(f)) /* in use: abort ungracefully */
return -1;
fd = PerlIOSelf(f, PerlIOUnix)->fd;
#ifdef PERLIO_STD_SPECIAL
if (fd == 0)
return PERLIO_STD_IN(fd, vbuf, count);
#endif
if (!(PerlIOBase(f)->flags & PERLIO_F_CANREAD) ||
PerlIOBase(f)->flags & (PERLIO_F_EOF|PERLIO_F_ERROR)) {
return 0;
Expand Down Expand Up @@ -2776,10 +2772,6 @@ PerlIOUnix_write(pTHX_ PerlIO *f, const void *vbuf, Size_t count)
if (PerlIO_lockcnt(f)) /* in use: abort ungracefully */
return -1;
fd = PerlIOSelf(f, PerlIOUnix)->fd;
#ifdef PERLIO_STD_SPECIAL
if (fd == 1 || fd == 2)
return PERLIO_STD_OUT(fd, vbuf, count);
#endif
while (1) {
const SSize_t len = PerlLIO_write(fd, vbuf, count);
if (len >= 0 || errno != EINTR) {
Expand Down

0 comments on commit 566a3e5

Please sign in to comment.