From: Nick Ing-Simmons Date: Thu, 22 Mar 2001 12:51:20 +0000 (+0000) Subject: Re-instate warnings for 'eof STDOUT' etc. by marking STD* as appropriate IoTYPE. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a04651f440b69a3f6af9f5fcf427068253775945;p=p5sagit%2Fp5-mst-13.2.git Re-instate warnings for 'eof STDOUT' etc. by marking STD* as appropriate IoTYPE. p4raw-id: //depot/perlio@9296 --- diff --git a/perl.c b/perl.c index bfaafd1..b3637fc 100644 --- a/perl.c +++ b/perl.c @@ -3247,6 +3247,7 @@ S_init_predump_symbols(pTHX) PL_stdingv = gv_fetchpv("STDIN",TRUE, SVt_PVIO); GvMULTI_on(PL_stdingv); io = GvIOp(PL_stdingv); + IoTYPE(io) = IoTYPE_RDONLY; IoIFP(io) = PerlIO_stdin(); tmpgv = gv_fetchpv("stdin",TRUE, SVt_PV); GvMULTI_on(tmpgv); @@ -3255,6 +3256,7 @@ S_init_predump_symbols(pTHX) tmpgv = gv_fetchpv("STDOUT",TRUE, SVt_PVIO); GvMULTI_on(tmpgv); io = GvIOp(tmpgv); + IoTYPE(io) = IoTYPE_WRONLY; IoOFP(io) = IoIFP(io) = PerlIO_stdout(); setdefout(tmpgv); tmpgv = gv_fetchpv("stdout",TRUE, SVt_PV); @@ -3264,6 +3266,7 @@ S_init_predump_symbols(pTHX) PL_stderrgv = gv_fetchpv("STDERR",TRUE, SVt_PVIO); GvMULTI_on(PL_stderrgv); io = GvIOp(PL_stderrgv); + IoTYPE(io) = IoTYPE_WRONLY; IoOFP(io) = IoIFP(io) = PerlIO_stderr(); tmpgv = gv_fetchpv("stderr",TRUE, SVt_PV); GvMULTI_on(tmpgv);