Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!brl-adm!adm!LEYON_C%DICKINSN.BITNET@CUNYVM.CUNY.EDU From: LEYON_C%DICKINSN.BITNET@CUNYVM.CUNY.EDU Newsgroups: comp.lang.c Subject: Re: Closing stdout Message-ID: <10699@brl-adm.ARPA> Date: Mon, 7-Dec-87 08:11:01 EST Article-I.D.: brl-adm.10699 Posted: Mon Dec 7 08:11:01 1987 Date-Received: Sat, 12-Dec-87 09:51:00 EST Sender: news@brl-adm.ARPA Lines: 11 In _The_Unix_Programming_Environment_ (Kernighan and Pike), they say explicitly on p. 224 that "/dev/tty is opened with mode 2 -- read and write -- and then dup'ed to form the standard input and output. This is actually how the system assembles the standard input, output and error when you log in. Therefore, your standard input is writable" -- Chris Leyon LEYON_C@DICKINSN.BITNET