Reading from stderr

John R. MacMillan john at hcr.UUCP
Wed Apr 19 07:08:12 AEST 1989


In article <1094 at vsi.COM> friedl at vsi.UUCP writes:
|In article <508 at visdc.UUCP>, jiii at visdc.UUCP (John E Van Deusen III) writes:
|> Since file
|> descriptors 0, 1, and 2 are all opened with oflag set to O_RDWR, ...
|
|An expansion here: stdin, stdout, and stderr are not opened independantly.
|the terminal device is opened and the resulting fildes is dup-ed twice
|to yield stdout and stderr.

But this isn't required of stdio, is it?  I used systems where stderr
is write-only, and programs which read from it had to be fixed.
-- 
John R. MacMillan		Sometimes you have to go for the two
HCR Corporation			in the bush.
{utzoo,utcsri}!hcr!john		



More information about the Comp.unix.wizards mailing list