Date: Mon, 20 Sep 2004 16:03:16 +0300 From: Ruslan Ermilov <ru@freebsd.org> To: Valentin Nechayev <netch@lucky.net> Cc: Poul-Henning Kamp <phk@phk.freebsd.dk> Subject: Re: [HEADSUP] naming of tty devices. Message-ID: <20040920130316.GA44861@ip.net.ua> In-Reply-To: <20040920121913.GH89036@lucky.net> References: <20040920112733.GE84228@lucky.net> <99367.1095682142@critter.freebsd.dk> <20040920121913.GH89036@lucky.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040920130316.GA44861>