Path: utzoo!attcan!lsuc!ncrcan!hcr!john From: john@hcr.UUCP (John R. MacMillan) Newsgroups: comp.unix.wizards Subject: Re: Reading from stderr Summary: I wouldn't Message-ID: <330@hcr.UUCP> Date: 18 Apr 89 21:08:12 GMT References: <5437@lynx.UUCP> <508@visdc.UUCP> <1094@vsi.COM> Reply-To: john@hcrvax.UUCP (John R. MacMillan) Distribution: na Organization: HCR Corporation, Toronto Lines: 15 In article <1094@vsi.COM> friedl@vsi.UUCP writes: |In article <508@visdc.UUCP>, jiii@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