This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: The stdout always becomes line buffered mode.
- To: fujieda at jaist dot ac dot jp
- Subject: Re: The stdout always becomes line buffered mode.
- From: DJ Delorie <dj at delorie dot com>
- Date: Thu, 26 Apr 2001 18:27:48 -0400
- CC: newlib at sources dot redhat dot com
- References: <s1slmono1p2.fsf@jaist.ac.jp>
> The latest newlib always sets the stdout to the line buffered
> mode against the standard quoted below.
>
> ISO/IEC 9899:1999, Second Edition 1999-12-01, p.266
> As initially opened, the standard error stream is not fully buffered;
> the standard input and standard output streams are fully buffered if
> and only if the stream can be determined not to refer to an interective
> device.
The streams aren't fully buffered, they're line buffered. I think
this complies with the spec. I think your patch is correct, but not
because of that standard. The ChangeLog entry explains it enough on
its own.