From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17243 invoked from network); 30 Jan 2023 07:50:47 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 30 Jan 2023 07:50:47 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 693C0425BE; Mon, 30 Jan 2023 17:50:40 +1000 (AEST) Received: from freefriends.org (freefriends.org [96.88.95.60]) by minnie.tuhs.org (Postfix) with ESMTPS id D983C425BD for ; Mon, 30 Jan 2023 17:50:32 +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 30U7oQYe013305 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Jan 2023 00:50:27 -0700 Received: (from arnold@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 30U7oQTh013304; Mon, 30 Jan 2023 00:50:26 -0700 From: arnold@skeeve.com Message-Id: <202301300750.30U7oQTh013304@freefriends.org> X-Authentication-Warning: frenzy.freefriends.org: arnold set sender to arnold@skeeve.com using -f Date: Mon, 30 Jan 2023 00:50:26 -0700 To: ron@ronnatalie.com, imp@bsdimp.com References: 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 Message-ID-Hash: MAVE7RYCD2UIGQIWHGNZS3RH6RS4T7DA X-Message-ID-Hash: MAVE7RYCD2UIGQIWHGNZS3RH6RS4T7DA X-MailFrom: arnold@skeeve.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tuhs.tuhs.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: tuhs@tuhs.org X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: FD 2 List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: > > Where this is done is, as I posted earlier, in /etc/init. Init opens the > > tty device and dups it to 1 and then invokes either the shell (if we're in > > single user mode) or getty for interactive mode. > > This was done in V6 and PWB (1). In V7, init added a second dup for file > > descriptor 2. What I really like is how in V8 - V10 /dev/tty was a (sym)link to /dev/fd/3, and init simply did one more dup call. That eliminated the special tty device driver and was a lovely generalization / simplification. It's too bad this was never picked in the commercial Unixes or in Linux. Arnold