delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2010/05/05/17:47:42

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Wed, 5 May 2010 17:47:38 -0400
Message-Id: <201005052147.o45Llcf7018193@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <hrsmbr$a4j$1@speranza.aioe.org> (do_not_have@havenone.cmm)
Subject: Re: redirect stderr to stdout/file in djgpp 2.x
References: <97e7dd63-3c51-4796-a5ba-c8a1cddaabbc AT w17g2000yqj DOT googlegroups DOT com> <E1NztLP-0001Fs-6b AT fencepost DOT gnu DOT org> <57a05b96-b688-4c09-93b5-f2bd3d2501a1 AT r18g2000yqd DOT googlegroups DOT com> <hq513o$54j$1 AT speranza DOT aioe DOT org> <83633tye60 DOT fsf AT gnu DOT org> <hrsmbr$a4j$1 AT speranza DOT aioe DOT org>
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

It's a requirement of ANSI C.  When sent to a file, stdout is block
buffered but stderr is always unbuffered.  When sent to a device
(i.e. the screen), stdout is line buffered instead, which makes it
seem "right".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019