diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-09-17 18:19:18 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-09-17 18:19:18 +0000 |
commit | b7a02c4fb533bb0a7ae92f82a4a660045d95669a (patch) | |
tree | 017d379de23c311d7ea065b5f6b2aa79256e6902 /doio.c | |
parent | bba8fca5dea99a6a21e43014678ed58e9acc2691 (diff) | |
download | perl-b7a02c4fb533bb0a7ae92f82a4a660045d95669a.tar.gz |
Take away the infamous io/dup.t #7.
It seems there simply is no way to portably
"flush" an input file handle.
p4raw-id: //depot/cfgperl@4176
Diffstat (limited to 'doio.c')
-rw-r--r-- | doio.c | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -283,17 +283,8 @@ Perl_do_open9(pTHX_ GV *gv, register char *name, I32 len, int as_raw, } if (IoIFP(thatio)) { PerlIO *fp = IoIFP(thatio); - /* Flush stdio buffer before dup. --mjd - * Unfortunately SEEK_CURing 0 seems to - * be optimized away on most platforms; - * only Solaris and Linux seem to flush - * on that. --jhi */ + /* Flush stdio buffer before dup */ PerlIO_seek(fp, 0, SEEK_CUR); - /* On the other hand, do all platforms - * take gracefully to flushing a read-only - * filehandle? Perhaps we should do - * fsetpos(src)+fgetpos(dst)? --nik */ - PerlIO_flush(fp); fd = PerlIO_fileno(fp); if (IoTYPE(thatio) == 's') IoTYPE(io) = 's'; |