From owner-freebsd-arch@FreeBSD.ORG Mon Sep 20 12:09:05 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD10416A4CE for ; Mon, 20 Sep 2004 12:09:05 +0000 (GMT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA9A743D41 for ; Mon, 20 Sep 2004 12:09:04 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id i8KC92hd099368; Mon, 20 Sep 2004 14:09:02 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: netch@lucky.net From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 20 Sep 2004 14:27:33 +0300." <20040920112733.GE84228@lucky.net> Date: Mon, 20 Sep 2004 14:09:02 +0200 Message-ID: <99367.1095682142@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: arch@freebsd.org Subject: Re: [HEADSUP] naming of tty devices. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2004 12:09:05 -0000 In message <20040920112733.GE84228@lucky.net>, Valentin Nechayev writes: > 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: That is one of the reasons why I want consistency. >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. No, that is exactly the way it will work, and which today it doesn't. ttyd0 and cuad0 is the same device. The difference between "tty" and "cua" is how we react to DCD when opening. You can never be logged in vial both ttyd0 and cuad0 at the same time, so there is no logging issue. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.