Line Buffered output

Chris Torek chris at mimsy.UUCP
Wed Sep 28 06:55:39 AEST 1988


In article <1613 at ficc.uu.net> peter at ficc.uu.net (Peter da Silva) writes:
>It always depresses me when I think that people are still doing line
>buffered output. The problem of handling stdout and stdin is a solved
>problem: do a flushbuf on all interactive streams whenever you do a
>fillbuf on any interactive stream. ...

`Backwards compatibility means we get to keep all our old mistakes.'

I guarantee that if we change this in 4.4BSD, people will complain about
how we broke it.

(I am considering adding a separate macro for putc-without-newline-flush
to the local stdio.h.  This is backward-compatible.  It is also mildly
gross.  Then all we need do is convince the C compiler to migrate `=='
tests across ?: boundaries, if one of the subexpressions turns it into
a degenerate case.)
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.unix.wizards mailing list