This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH 5/6] Remove miscellaneous debris from libio.
On Feb 20 2018, Florian Weimer <email@example.com> wrote:
> On 02/19/2018 09:10 PM, Andreas Schwab wrote:
>> On Feb 19 2018, Florian Weimer <firstname.lastname@example.org> wrote:
>>> But is this actually observable without violating any of the stream
>>> synchronization requirements, or relying on implementation-defined
>>> behavior of file descriptors?
>> Just point the stream to a tty and type an EOF character.
> Shouldn't fgetc block and wait for more characters in this case?
No, it should get EOF immediately, since that is supposed to be sticky.
Andreas Schwab, email@example.com
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."