[TUHS] 8th Edition and /dev/stdio

Rob Pike robpike at gmail.com
Wed Apr 22 19:21:09 AEST 2020


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 <arnold at skeeve.com> wrote:

> Derek Fawcus <dfawcus+lists-tuhs at employees.org> wrote:
>
> > On Mon, Apr 20, 2020 at 08:28:53AM -0600, arnold at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20200422/3387557a/attachment.html>


More information about the TUHS mailing list