[PATCH 5/6] Remove miscellaneous debris from libio.

Andreas Schwab schwab@linux-m68k.org
Tue Feb 20 18:38:00 GMT 2018


On Feb 20 2018, Florian Weimer <fweimer@redhat.com> wrote:

> On 02/19/2018 09:10 PM, Andreas Schwab wrote:
>> On Feb 19 2018, Florian Weimer <fweimer@redhat.com> 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.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Libc-alpha mailing list