Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.unix-wizards Subject: Re: line buffering in stdio (4.2BSD; _flsbuf) Message-ID: <5277@umcp-cs.UUCP> Date: Mon, 29-Apr-85 03:02:03 EDT Article-I.D.: umcp-cs.5277 Posted: Mon Apr 29 03:02:03 1985 Date-Received: Tue, 30-Apr-85 03:32:25 EDT References: <25@aeolus.UUCP> Organization: U of Maryland, Computer Science Dept., College Park, MD Lines: 9 4.3 has a much larger and grottier putc macro that avoids calling _flsbuf when an output file is unbuffered. However, I still favor using setbuf (not setlinebuf) and calling fflush whenever appropriate. By the way, in 4.3 stderr is also line buffered. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251) UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@maryland