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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 12596 invoked from network); 20 Apr 2020 15:02:39 -0000 Received-SPF: pass (minnie.tuhs.org: domain of minnie.tuhs.org designates 45.79.103.53 as permitted sender) receiver=inbox.vuxu.org; client-ip=45.79.103.53 envelope-from= Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with UTF8ESMTPZ; 20 Apr 2020 15:02:39 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 8D79E9C8C1; Tue, 21 Apr 2020 01:02:37 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 87C049B934; Tue, 21 Apr 2020 01:02:07 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (1024-bit key; unprotected) header.d=planet.nl header.i=@planet.nl header.b="fvbCyzBh"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 0C02A9B934; Tue, 21 Apr 2020 01:02:04 +1000 (AEST) Received: from cpsmtpb-ews09.kpnxchange.com (cpsmtpb-ews09.kpnxchange.com [213.75.39.14]) by minnie.tuhs.org (Postfix) with ESMTP id 8860F9B931 for ; Tue, 21 Apr 2020 01:02:01 +1000 (AEST) Received: from cpsps-ews11.kpnxchange.com ([10.94.84.178]) by cpsmtpb-ews09.kpnxchange.com with Microsoft SMTPSVC(8.5.9600.16384); Mon, 20 Apr 2020 17:01:58 +0200 X-Brand: 7abm2Q== X-KPN-SpamVerdict: e1=0;e2=0;e3=0;e4=(e1=10;e3=10;e2=11;e4=10);EVW:Whi te;BM:NotScanned;FinalVerdict:Clean X-CMAE-Analysis: v=2.3 cv=eZemg4MH c=1 sm=1 tr=0 cx=a_idp_e a=aIJzBKXFL4aO3PtWP49Erg==:117 a=soxbC+bCkqwFbqeW/W/r+Q==:17 a=x1i13A_MHe4A:10 a=IkcTkHD0fZMA:10 a=cl8xLZFz6L8A:10 a=MrCl_uNiAAAA:8 a=HNVTiTzpAAAA:8 a=p8hWPCrPAAAA:8 a=u72O05gKAAAA:8 a=POAdqkaWNKm5Rfe3j5sA:9 a=QEXdDO2ut3YA:10 a=OzC5TSNYCcQA:10 a=HG9TltYLi78LN387oQwV:22 a=cPCxIqq1RTcWAI6fvWHn:22 a=hdUzUiK6lsseaELp4_5Y:22 a=N9M9Gv0imjkMJp2kB0A3:22 X-CM-AcctID: kpn@feedback.cloudmark.com Received: from smtp.kpnmail.nl ([195.121.84.43]) by cpsps-ews11.kpnxchange.com over TLS secured channel with Microsoft SMTPSVC(8.5.9600.16384); Mon, 20 Apr 2020 17:01:58 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=planet.nl; s=planet01; h=to:message-id:date:from:subject:mime-version:content-type; bh=i5HqXl3qofNxXh1i3ojRA0BPrfsWFt1IOqTu3HEDz0U=; b=fvbCyzBhr9ceaqBRr1XOQ9nLAANrtCRhUpjpiSEd0vTnO2mncKl0cPG/ARUTTCsGSwpNhq8+a7Vqb nfjsbteP13cdAeK2tzB7Q9f6XfQ0B5Lq/P/95YTaRhdqJcy3jOju2Wcw5wO38LR1ymTRIMgJ9Asvil p5WsvXmche9r8rL8= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|IWlrTyooGpEgbXf0D96sHQ9wBb9n9xPg2GgIFb/d0tzmy8cxYtF4iuuor334VqD mnLOy64rJgWvxlauldCqbYA== X-Originating-IP: 80.101.112.122 Received: from mba2.fritz.box (sqlite.xs4all.nl [80.101.112.122]) by smtp.kpnmail.nl (Halon) with ESMTPSA id e1694cb7-8317-11ea-9fcb-005056ab1411; Mon, 20 Apr 2020 17:01:58 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) From: Paul Ruizendaal In-Reply-To: <202004201428.03KESrgI032002@freefriends.org> Date: Mon, 20 Apr 2020 17:01:57 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <46EFF8FB-86D2-407A-87A7-B7A58D47C2D9@planet.nl> <202004201428.03KESrgI032002@freefriends.org> To: arnold@skeeve.com X-Mailer: Apple Mail (2.3445.104.11) X-OriginalArrivalTime: 20 Apr 2020 15:01:58.0197 (UTC) FILETIME=[A36B0650:01D61724] X-RcptDomain: minnie.tuhs.org 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 main list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Thanks for that! Indeed they are on the /dev/fd man page of 8th Edition. I=E2=80=99m thrilled that https://unix50.org is back up and could = quickly check. They are not symlinks, but character special files (with = the same major/minor, of course). In the /dev/fd directory all 128 = possible device entries were added. It certainly suggests that a virtual /dev directory (like /proc) would = have been useful. >> Who added this neat little innovation? Googling for /dev/fd also answered my other question: = http://poincare.matf.bg.ac.rs/~ivana/courses/ps/sistemi_knjige/pomocno/apu= e/APUE/0201433079/ch03lev1sec16.html "The /dev/fd feature was developed by Tom Duff and appeared in the 8th = Edition of the Research UNIX System.=E2=80=9D > On 20 Apr 2020, at 16:28, arnold@skeeve.com wrote: >=20 > 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. >=20 > HTH, >=20 > Arnold >=20 > Paul Ruizendaal wrote: >=20 >> Whilst spelunking in the V8 source code I came across this dozen = lines: >> = http://chiselapp.com/user/pnr/repository/v8unix/artifact/2782d26fa2930724?= ln=3D174,187 >>=20 >> It implements the /dev/stdin, /dev/stdout and /dev/stderr devices = (the variable =E2=80=98file_no=E2=80=99 in above code snippet is the = constant 40, which is the major number of these devices). It would seem = that this handful of lines could have been in Unix as early as 4th = Edition =E2=80=94 but they weren=E2=80=99t. Maybe it was not seen as = useful. >>=20 >> As far as I can tell this bit of code originates in 8th Edition, with = no earlier precursors. It does not seem to be in its man pages. >>=20 >> Who added this neat little innovation? >>=20 >>=20