From owner-freebsd-arch@FreeBSD.ORG Mon Sep 20 13:03:17 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 AAA5D16A4E8 for ; Mon, 20 Sep 2004 13:03:17 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B353743D6A for ; Mon, 20 Sep 2004 13:03:16 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (oak.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i8KD3FqN042473; Mon, 20 Sep 2004 16:03:15 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 71523-04; Mon, 20 Sep 2004 16:03:14 +0300 (EEST) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i8KD3DaT042470 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 20 Sep 2004 16:03:14 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id i8KD3Gor044987; Mon, 20 Sep 2004 16:03:16 +0300 (EEST) (envelope-from ru) Date: Mon, 20 Sep 2004 16:03:16 +0300 From: Ruslan Ermilov To: Valentin Nechayev Message-ID: <20040920130316.GA44861@ip.net.ua> References: <20040920112733.GE84228@lucky.net> <99367.1095682142@critter.freebsd.dk> <20040920121913.GH89036@lucky.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7JfCtLOvnd9MIVvH" Content-Disposition: inline In-Reply-To: <20040920121913.GH89036@lucky.net> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: arch@freebsd.org cc: Poul-Henning Kamp 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 13:03:17 -0000 --7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 20, 2004 at 03:19:13PM +0300, Valentin Nechayev wrote: > Mon, Sep 20, 2004 at 14:09:02, phk wrote about "Re: [HEADSUP] naming of = tty devices.":=20 >=20 > >>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. >=20 > I say not for logging, but for restoring full terminal name from short na= me. > E.g. listing processes controlled by this terminal. Whether /bin/ps will > list processes for both callin and callout port, when got "-t d1"? >=20 I fail to see what will be different. Currently, it works like this: $ ps -tfoo ps: /dev/ttyfoo and /dev/foo: No such file or directory $ tty =20 /dev/ttypo $ ps -t/dev/ttypo PID TT STAT TIME COMMAND 11104 po Ss 0:00,07 -tcsh (tcsh) 11112 po S 0:00,01 sh 11116 po R+ 0:00,00 ps -t/dev/ttypo /*- * The user can specify a device via one of three formats: * 1) fully qualified, e.g.: /dev/ttyp0 /dev/console * 2) missing "/dev", e.g.: ttyp0 console * 3) two-letters, e.g.: p0 co * (matching letters that would be seen in the "TT" column) */ To answer your question: when given "-t d1", both now and then it will convert it to /dev/ttyd1 and /dev/d1. If you need both callout and callin devices, "-t /dev/ttyd1 -t /dev/cuaa1" should be used. And you can always use "-O tty" to see the full tty name. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --7JfCtLOvnd9MIVvH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD4DBQFBTtUUqRfpzJluFF4RAokPAJi7Hiq056pLPPp+1euIRwB4LxxBAJ4y7ezM t6S93BQNy8V+h6WSFpHnOw== =Lv11 -----END PGP SIGNATURE----- --7JfCtLOvnd9MIVvH--