Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!vsi!friedl From: friedl@vsi.COM (Stephen J. Friedl) Newsgroups: comp.unix.wizards Subject: Re: Reading from stderr Message-ID: <1094@vsi.COM> Date: 15 Apr 89 17:26:13 GMT References: <5437@lynx.UUCP> <508@visdc.UUCP> Distribution: na Organization: V-Systems, Inc. -- Santa Ana, CA Lines: 17 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, and > stderr is unbuffered, there shouldn't be any reason why you couldn't > read from fildes 2. 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. Steve -- Stephen J. Friedl / V-Systems, Inc. / Santa Ana, CA / +1 714 545 6442 3B2-kind-of-guy / friedl@vsi.com / {attmail, uunet, etc}!vsi!friedl "I'm making a fashion statement: I'm saying I don't know how to dress." - me