[TUHS] SYSTEM V R1 HELP

Clem cole clemc at ccc.com
Sat Dec 23 22:26:58 AEST 2017


V1.  

Sent from my PDP-7 Running UNIX V0 expect things to be almost but not quite. 

> On Dec 22, 2017, at 7:21 PM, Larry McVoy <lm at mcvoy.com> wrote:
> 
>> On Sat, Dec 23, 2017 at 11:19:30AM +1100, Dave Horsfall wrote:
>>> On Fri, 22 Dec 2017, Random832 wrote:
>>> 
>>> I've got it. The problem is with putc (actually _flsbuf), and it is
>>> precisely *because* stderr is unbuffered.
>>> 
>>> #define putc(x, p)    (--(p)->_cnt >= 0 ? \
>>>            ((int) (*(p)->_ptr++ = (unsigned char) (x))) : \
>>>            _flsbuf((unsigned char) (x), (p)))
>> 
>> [...]
>> 
>> That, sir, is one brilliant piece of analysis; well done!  Of course, in
>> hindsight it's bleedin' obvious :-)
> 
> I'm curious as to which release of System V fixed this.  The SVR4 was the
> release that gained (some) traction, was it busted until then?


More information about the TUHS mailing list