line buffering in stdio (4.2BSD; _flsbuf)

Chris Torek chris at umcp-cs.UUCP
Mon Apr 29 17:02:03 AEST 1985


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 at umcp-cs		ARPA:	chris at maryland



More information about the Comp.unix.wizards mailing list