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=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 9960 invoked from network); 22 Apr 2020 09:21:54 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with UTF8ESMTPZ; 22 Apr 2020 09:21:54 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 9BC3B94623; Wed, 22 Apr 2020 19:21:52 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 1028F94622; Wed, 22 Apr 2020 19:21:26 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="p7O6STiR"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 8002294622; Wed, 22 Apr 2020 19:21:22 +1000 (AEST) Received: from mail-vk1-f178.google.com (mail-vk1-f178.google.com [209.85.221.178]) by minnie.tuhs.org (Postfix) with ESMTPS id E1EB294617 for ; Wed, 22 Apr 2020 19:21:21 +1000 (AEST) Received: by mail-vk1-f178.google.com with SMTP id n207so436728vkf.8 for ; Wed, 22 Apr 2020 02:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xEJjs3/FxG1HCBAa6Vu3mjQi2mtJFkRl6v5ClhCQBL0=; b=p7O6STiRwJksTx+S6kgMwZGMGbC8NltoTMOi2ml+XKOmRYqmWcPY7bPvQHhUuBWh9X cfSrpK3aBLzuuLWHM92r0EnPJN/NgiO5FbVdsGdLpUrPC9VbfP51Dh99R4pEucVRYckg 9MVNzjqQiKM9nRVIoaW7uscOS6XenmcMr4+2ZYEn0y3w1KRu4g2wKy8RTbd8Je/GGMs5 AVJ960HZawLypXb992N4H9h5XjTas8Q4Bo82Mwqn6kkO4flicbghiwXzGZBFlXjXQzdO /f+64d+kGXSLWQIAgZq8sCg5RMO1LlplGSiuz95KKzskmoGkQQPY9R8d11EylXolZcrc V2fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xEJjs3/FxG1HCBAa6Vu3mjQi2mtJFkRl6v5ClhCQBL0=; b=WqaFRjC0qYzKuj9j52Q4XKD7lkH9IAtqbrzqkxs9i5x/NQ+iiCVcoVdF7Sz1EdCVbh qfUTvB5/Z+2zpS6/mFyPQKC4c3wVw2o989FldE+pJO897GYcn/ChTz/cCrW9kePPoBDJ 96wBDpZqqRMeg9WzydUk6s+SKv6C2jqlMD4S3nSqifcnknH9kYT57H29rD1EYjVsC1Kq QZ5lJrGWUcf8j3BhtCAfNakzylhMgNw2PMRQso+1R2n80btpdjHS9h1p6DNam90QOG/p Hqbk9KprifevuEtDDydXZUoVhRXxYEpg/LmcMx2Ru4V4sz/MBa0H5ThZuq0PQwW6rO6v IU7A== X-Gm-Message-State: AGi0Pub4bs0FG1r5PDhWCFx4+N5Dc76Iovq6swRKmHpksJ7unhSMfMkp vp4KjlP+MsA16cnLUr77q3pNI+BhGc6mURPr+jxvog== X-Google-Smtp-Source: APiQypK0E3v+fyFXv2JdX4ER+uwyVCPqJ3dTHnXfd+9eNABN1kquJtNq/eIPcrozQrtHPU6fFMBsB4/gV2EHvTiM/48= X-Received: by 2002:a1f:3210:: with SMTP id y16mr18382635vky.89.1587547280866; Wed, 22 Apr 2020 02:21:20 -0700 (PDT) MIME-Version: 1.0 References: <46EFF8FB-86D2-407A-87A7-B7A58D47C2D9@planet.nl> <202004201428.03KESrgI032002@freefriends.org> <20200420181713.GB51234@clarinet.employees.org> <202004201832.03KIWWeJ008975@freefriends.org> In-Reply-To: <202004201832.03KIWWeJ008975@freefriends.org> From: Rob Pike Date: Wed, 22 Apr 2020 19:21:09 +1000 Message-ID: To: Aharon Robbins Content-Type: multipart/alternative; boundary="000000000000bd831a05a3dda721" 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" --000000000000bd831a05a3dda721 Content-Type: text/plain; charset="UTF-8" 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 > --000000000000bd831a05a3dda721 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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

<= /div>

On Tue, Apr 21, 2020 at 4:33 AM <arnold@skeeve.com> wrote:
Derek Fawcus <dfawcus+lists-tuhs@employees.org> = 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.=C2=A0 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.=C2= =A0 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.=C2=A0 What was cute was that /dev/tty was
no longer a special device of it's own, but just another inherited
open file descriptor.=C2=A0

Sadly, that generalization never made it out into other *nix systems.

Arnold
--000000000000bd831a05a3dda721--