use of _s[io]buf in stdio library

Chris Torek chris at umcp-cs.UUCP
Sat Aug 3 12:36:52 AEST 1985


Historically, _sibuf was attached to stdin and _sobuf to stdout,
voiding the need for malloc() (which could fail, giving one unbuffered
I/O, which isn't a great excuse for them anyway).  With the advent
of variable sized buffers, these should have gone away in 4.2BSD.
They are indeed gone in 4.3BSD (and in Sun 1.3).  (The 4.3 C library
still has the buffers, but they won't get linked in unless you
reference them yourself; this was kinder than Sun, where they are
completely gone....)
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251)
UUCP:	seismo!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at maryland



More information about the Comp.unix mailing list