Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!homxb!hropus!ki4pv!tanner From: tanner@ki4pv.uucp (Dr. T. Andrews) Newsgroups: comp.lang.c Subject: Writing to Standard Input (was Re: Closing stdout) Summary: Don't Believe a Word of It Message-ID: <7131@ki4pv.uucp> Date: 12 Dec 87 13:21:14 GMT References: <10699@brl-adm.ARPA> Organization: CompuData, DeLand Lines: 8 In article <10699@brl-adm.ARPA>, LEYON_C%DICKINSN.BITNET@CUNYVM.CUNY.EDU (Leyon, Chris) writes: ) [quote from K&P describing opening of /dev/tty for read/write & using ) dup(2) to form stdin, stdout] ... concluding: ) Therefore, your standard input is writable This, of course, is not true if you are using pipes or re-direction. -- {allegra clyde!codas decvax!ucf-cs ihnp4!codas killer}!ki4pv!tanner