[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: File position after fclose on a buffered input stream
From: |
Neal H Walfield |
Subject: |
Re: File position after fclose on a buffered input stream |
Date: |
05 Feb 2002 20:28:45 -0500 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 |
> > This means that glibc does not have to do anything about this,
> > however, after a glance at the libio code, it seems to me that it
> > would be possible to reposition the file position in _IO_new_fclose.
>
> This is no bug in glibc.
My intention was not to claim that the bug was in glibc but rather
that the behavior is undefined thereby permitting glibc to react
"kindly" in this situation.
> Nobody must make any such assumption and if there is such code it
> has to be fixed.
I suggested that unbuffered input be used, would you agree that this
is the best fix?