mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Richard B. Johnson" <root@chaos.analogic.com>
To: Dominik Kubla <dominik@kubla.de>
Cc: Nick Craig-Wood <ncw1@axis.demon.co.uk>,
	Jamie Lokier <jamie@shareable.org>,
	linux-kernel@vger.kernel.org
Subject: Re: Does anyone still care about BSD ptys?
Date: Mon, 9 Feb 2004 13:27:24 -0500 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.53.0402091327020.9986@chaos> (raw)
In-Reply-To: <20040209175119.GC1795@intern.kubla.de>

On Mon, 9 Feb 2004, Dominik Kubla wrote:

> On Mon, Feb 09, 2004 at 09:00:24AM -0500, Richard B. Johnson wrote:
> > > On Mon, Feb 09, 2004 at 07:17:27AM +0000, H. Peter Anvin wrote:
> > > > Does anyone still care about old-style BSD ptys, i.e. /dev/pty*?
> >
> > Only people who want to log-in from the network..... Of course
> > you could force a re-write of all the stuff like telnet, adding
> > another layer of bugs that'll take another N years to find and
> > remove.
>
> What are you talking about?  On my system (Debian Sid) there are no BSD
> pty's (i removed the device nodes) and everything works without even a
> recompile.
>
> Regards,
>   Dominik


Really? Then you don't have anybody trying to log-in
from the network using telnet, then do you?

The BSD virtual terminals go in pairs, /dev/ptyp* /dev/ttyp*

Script started on Mon Feb  9 13:19:16 2004
# ls -la /dev/ptyp*
crw-rw-rw-   1 root     root       2,   0 Feb  9 13:17 /dev/ptyp0
crw-rw-rw-   1 root     root       2,   1 Feb  9 13:19 /dev/ptyp1
crw-rw-rw-   1 root     root       2,   2 Feb  5 11:22 /dev/ptyp2
crw-rw-rw-   1 root     root       2,   3 Mar 19  2003 /dev/ptyp3
[SNIPPED...]

# ls -la /dev/ttyp0
# ls -la /dev/ttyp*
crw--w----   1 rjohnson tty        3,   0 Feb  9 13:17 /dev/ttyp0
crw-rw-rw-   1 root     root       3,   1 Feb  9 13:19 /dev/ttyp1
crw-rw-rw-   1 root     root       3,   2 Feb  5 11:22 /dev/ttyp2
crw-rw-rw-   1 root     root       3,   3 Mar 19  2003 /dev/ttyp3
Script done on Mon Feb  9 13:20:03 2004

Here, rjohnson is logged in using telnet. The code is so common
that there is even some C runtime library support in later
C libraries, it's called forkpty(). `man forkpty`. It does a lot
of the dirty-work of using BSD virtual terminals.


Cheers,
Dick Johnson
Penguin : Linux version 2.4.24 on an i686 machine (797.90 BogoMips).
            Note 96.31% of all statistics are fiction.



  reply	other threads:[~2004-02-09 18:24 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-09  7:17 H. Peter Anvin
2004-02-09  7:21 ` David Weinehall
2004-02-09  7:29   ` H. Peter Anvin
2004-02-09  8:12     ` Ricky Beam
2004-02-09  8:19       ` H. Peter Anvin
2004-02-09  8:59 ` Miquel van Smoorenburg
2004-02-09 10:09   ` viro
2004-02-09 10:47     ` Miquel van Smoorenburg
2004-02-10  1:33     ` bill davidsen
2004-02-10  2:07       ` H. Peter Anvin
2004-02-09 18:06   ` Olaf Hering
2004-02-09  9:29 ` Nick Craig-Wood
2004-02-09 12:47   ` Jamie Lokier
2004-02-09 13:40     ` Nick Craig-Wood
2004-02-09 14:00       ` Richard B. Johnson
2004-02-09 17:51         ` Dominik Kubla
2004-02-09 18:27           ` Richard B. Johnson [this message]
2004-02-09 20:59             ` Athanasius
2004-02-10 11:16             ` Dominik Kubla
2004-02-10 17:19               ` H. Peter Anvin
2004-02-10  0:47 ` Karl Tatgenhorst
2004-02-10  0:52   ` H. Peter Anvin
2004-02-10  1:35     ` Karl Tatgenhorst
2004-02-09 13:49 Albert Cahalan
2004-02-09 17:14 ` H. Peter Anvin
2004-02-09 17:18   ` Albert Cahalan
2004-02-09 20:32     ` Andries Brouwer
2004-02-10 11:40     ` Dominik Kubla
     [not found] <c07c67$vrs$1@terminus.zytor.com.suse.lists.linux.kernel>
     [not found] ` <c07i5r$ctq$1@news.cistron.nl.suse.lists.linux.kernel>
     [not found]   ` <20040209100940.GF21151@parcelfarce.linux.theplanet.co.uk.suse.lists.linux.kernel>
     [not found]     ` <20040209104729.GA19401@traveler.cistron.net.suse.lists.linux.kernel>
2004-02-09 14:45       ` Andi Kleen
2004-02-09 17:23         ` H. Peter Anvin
2004-02-09 16:57 Joerg Pommnitz
2004-02-10 17:23 ` H. Peter Anvin
     [not found] <1ne1M-1Oc-1@gated-at.bofh.it>
2004-02-10 19:47 ` Bill Davidsen
2004-02-10 19:51 ` Bill Davidsen
2004-02-10 21:52   ` Theodore Ts'o
2004-02-10 22:02     ` H. Peter Anvin
2004-02-11  5:31       ` Theodore Ts'o

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.53.0402091327020.9986@chaos \
    --to=root@chaos.analogic.com \
    --cc=dominik@kubla.de \
    --cc=jamie@shareable.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ncw1@axis.demon.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®