Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: comp.bugs.4bsd Subject: Re: read() from tty has fencepost error Message-ID: <8279@utzoo.UUCP> Date: Wed, 8-Jul-87 13:54:43 EDT Article-I.D.: utzoo.8279 Posted: Wed Jul 8 13:54:43 1987 Date-Received: Wed, 8-Jul-87 13:54:43 EDT References: <648@haddock.UUCP> Organization: U of Toronto Zoology Lines: 19 > The "streams" code described in Dennis Ritchie's paper in the BSTJ (I > have no idea if that implementation is called STREAMS or just > "streams") has a "delimiter" message type. (Probably just "streams" -- I've never seen Dennis capitalize it that I recall.) > I don't know what sort of > behavior the various V8 "streams"-based (as opposed to S5R3 > STREAMS-based) tty drivers provide... The tty drivers just put a delimiter message on after they pass a line through. However, there is some subtlety in the behavior of a stream read when the count is exactly satisfied that causes a trailing delimiter to be swallowed. So the "push" behavior is what is provided. Unless I'm much mistaken, this applies to both tty drivers. -- Mars must wait -- we have un- Henry Spencer @ U of Toronto Zoology finished business on the Moon. {allegra,ihnp4,decvax,pyramid}!utzoo!henry