Re: [HEADSUP] naming of tty devices.
From: Valentin Nechayev (netch_at_lucky.net)
Date: 09/20/04
- Previous message: Poul-Henning Kamp: "Re: [HEADSUP] naming of tty devices."
- In reply to: Poul-Henning Kamp: "[HEADSUP] naming of tty devices."
- Next in thread: Poul-Henning Kamp: "Re: [HEADSUP] naming of tty devices."
- Reply: Poul-Henning Kamp: "Re: [HEADSUP] naming of tty devices."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 20 Sep 2004 14:27:33 +0300 To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Mon, Sep 20, 2004 at 09:38:45, phk wrote about "[HEADSUP] naming of tty devices.":
> My suggestion is the following:
> All drivers will offer "tty${something}" devices, and
> generally ${something} will consist of a letter followed
> by a number, possibly in base 36 ([0-9a-z]).
There are cases when cua devices are used as login devices, and too many
places where 3 first chars of device name are removed without checking them,
e.g. /bin/ps:
=== cut ===
else {
if (strncmp(ttname, "tty", 3) == 0 ||
strncmp(ttname, "cua", 3) == 0)
ttname += 3;
=== end cut ===
When restoring terminal device from this name, now it is possible yet
to determine terminal testing /dev/tty$x or /dev/cua$x; with your new
scheme this will be impossible totally.
If we suppose to remain ability of logging in via callout devices,
these code pieces must be rewritten to keep "tty"/"cua", or all callout
devices must be renamed to terminals.
On 4.* I use the latter variant on one host: /dev/cuaa$n are renamed
to /dev/ttyOd$n, n=0...3.
> This results in the following major compatibility issues:
> sio's cuaa* gets renamed to cuad*
Basing on written above I propose /dev/ttyOd*
-netch-
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Poul-Henning Kamp: "Re: [HEADSUP] naming of tty devices."
- In reply to: Poul-Henning Kamp: "[HEADSUP] naming of tty devices."
- Next in thread: Poul-Henning Kamp: "Re: [HEADSUP] naming of tty devices."
- Reply: Poul-Henning Kamp: "Re: [HEADSUP] naming of tty devices."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]