This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH] [BZ #1190] Make EOF sticky in stdio.
- From: Zack Weinberg <zackw at panix dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, Joseph Myers <joseph at codesourcery dot com>, Siddhesh Poyarekar <siddhesh at gotplt dot org>
- Date: Mon, 12 Feb 2018 12:31:24 -0500
- Subject: Re: [PATCH] [BZ #1190] Make EOF sticky in stdio.
- Authentication-results: sourceware.org; auth=none
- References: <firstname.lastname@example.org> <email@example.com>
On Mon, Feb 12, 2018 at 12:22 PM, Andreas Schwab <firstname.lastname@example.org> wrote:
> On Feb 12 2018, Zack Weinberg <email@example.com> wrote:
>> That's been unchanged since before 1995. This only matters if the
>> underlying file has changed in the meantime, of course;
> Interactive devices like ttys also don't have a sticky EOF.
Right, I think that if there are any programs this change is likely to
break, it's programs that use stdio to read from a tty. I could even
see an argument for giving stdin, specifically, non-sticky EOF when
connected to a terminal (kinda like how stdout is line-buffered when
connected to a terminal). But I would want some evidence that there
_are_ programs that would break without that, before we spend any time
coding it up.