From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 11266 invoked from network); 22 Apr 2020 09:33:55 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with UTF8ESMTPZ; 22 Apr 2020 09:33:55 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id D3FD39C64F; Wed, 22 Apr 2020 19:33:53 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 817D494621; Wed, 22 Apr 2020 19:33:41 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id B263094621; Wed, 22 Apr 2020 19:33:39 +1000 (AEST) Received: from freefriends.org (freefriends.org [96.88.95.60]) by minnie.tuhs.org (Postfix) with ESMTPS id 1912B94617 for ; Wed, 22 Apr 2020 19:33:39 +1000 (AEST) X-Envelope-From: arnold@skeeve.com Received: from freefriends.org (freefriends.org [96.88.95.60]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 03M9XW9b002534 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 Apr 2020 03:33:33 -0600 Received: (from arnold@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 03M9XWk2002533; Wed, 22 Apr 2020 03:33:32 -0600 From: arnold@skeeve.com Message-Id: <202004220933.03M9XWk2002533@freefriends.org> X-Authentication-Warning: frenzy.freefriends.org: arnold set sender to arnold@skeeve.com using -f Date: Wed, 22 Apr 2020 03:33:32 -0600 To: robpike@gmail.com, arnold@skeeve.com References: <46EFF8FB-86D2-407A-87A7-B7A58D47C2D9@planet.nl> <202004201428.03KESrgI032002@freefriends.org> <20200420181713.GB51234@clarinet.employees.org> <202004201832.03KIWWeJ008975@freefriends.org> In-Reply-To: User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [TUHS] 8th Edition and /dev/stdio X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tuhs@minnie.tuhs.org Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Other mail in the thread credits Tom Duff with /dev/fd ... In any case, /dev/stdin et al was a great idea. Kudos. Arnold Rob Pike wrote: > I think dmr put them in, at my suggestion. I was bothered by the > inconsistent use of '-' as a name for standard input. Giving stdin a real > name meant we had a consistent mechanism. > > 8th edition sounds right. > > -rob > > > On Tue, Apr 21, 2020 at 4:33 AM wrote: > > > Derek Fawcus wrote: > > > > > On Mon, Apr 20, 2020 at 08:28:53AM -0600, arnold@skeeve.com wrote: > > > > See if there are man pages for /dev/fd/XXX. IIRC /dev/stdin was > > > > a symlink to /dev/fd/0, /dev/stdout to /dev/fd/1, /dev/stderr to > > /dev/fd/2, > > > > and, as a really nice generalization, /dev/tty to /dev/fd/4. For the > > > > latter, init(1) simply dup'ed the opened tty file descriptor one more > > > > time before exec-ing login. > > > > > > So what happened to /dev/fd/3 ? > > > > > > DF > > > > My bad. I meant /dev/fd/3. What was cute was that /dev/tty was > > no longer a special device of it's own, but just another inherited > > open file descriptor. > > > > Sadly, that generalization never made it out into other *nix systems. > > > > Arnold > >