*BSD News Article 16222


Return to BSD News archive

Newsgroups: comp.os.386bsd.development
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!xlink.net!gmd.de!mururoa!veit
From: veit@mururoa.gmd.de (Holger Veit)
Subject: Re: Naming convention for tty-like devices
Message-ID: <1993May18.103444.26378@gmd.de>
Sender: veit@mururoa (Holger Veit)
Nntp-Posting-Host: mururoa
Organization: GMD, Sankt Augustin, Germany
References: <DERAADT.93May7134937@newt.fsa.ca> <C6xyBv.845@sugar.NeoSoft.COM> <1776@lucifer.UUCP> <C74vqy.JpJ@sugar.NeoSoft.COM> <C758LK.CB0@veda.is> <C77J1C.LCI@rex.uokhsc.edu>
Date: Tue, 18 May 1993 10:34:44 GMT
Lines: 55

In article <C77J1C.LCI@rex.uokhsc.edu>, ben@rex.uokhsc.edu (Benjamin Z. Goldsteen) writes:
|> adam@veda.is (Adam David) writes:
|> 
|> >peter@NeoSoft.com (Peter da Silva) writes:
|> 
|> >>In article <1776@lucifer.UUCP> rst@liciren.li.co.uk (Richard Thombs) writes:
|> >>> 	tty[a-z]		Com ports
|> 
|> >>Because it's not obvious that 'ttyp' is a serial port and 'ttypa' is a pseudo
|> >>tty. Also, what do you do for more than 26 serial ports?
|> 
|> >Easy, let them be named tty[0-9][0-9a-z] and if there is ever a need for more
|> >than 360 serial ports just add another character to the name :-)
|> 
|> >That still does not answer what the virtual consoles should be named as.
|> >tty[0-9][0-9] like in syscons does not seem to be very appropriate.
|>
|>      Maybe it is just me and my DOS background...but I see no problem
|> with calling them com[0-9]*.  Sure, that doesn't make sense to those of
|> you who worked with BSD 2.9 on PDP's or whatever, but these are PC's! 
|> You may even want to start the numbering at one (oh no!).  Your hardware
|> vendor is going to think you don't really know what you are talking
|> about when you say com0 isn't work... 
|> 
|>      As per virtual consoles, why not console0, console1, etc?  Make
|> /dev/console a hard link to /dev/console0 (or hey, even make it follow
|> you -- that way, you won't ever be able to ignore those pesky
|> messages...)
|> 
|>      I suppose my vote doesn't count because I am not running either
|> 386BSD or NetBSD, but I hope to try again soon...
No apology necessary, this is not a vote :-)

First of all: one problem is the 'ps' process. Without changing too much
it would like to have a convention like 'tty[something][something].
Since there are only two characters reserved in the TT column, it is
difficult to distinguish processes on (co)m* and (co)nsole* 
from each other.
Another aspect is that /dev/console is not a device at all; it is 
a multiplexer that points to some real device which accepts "those
pesky messages". Never make a hard link from a real device to 
the /dev/console entry; you'll lose its functionality.

Holger

|> -- 
|> Benjamin Z. Goldsteen

-- 
         Dr. Holger Veit                   | INTERNET: Holger.Veit@gmd.de
|  |   / GMD-SET German National Research  | Phone: (+49) 2241 14 2448
|__|  /  Center for Computer Science       | Fax:   (+49) 2241 14 2342
|  | /   P.O. Box 13 16                    |    Three lines Signature space
|  |/    Schloss Birlinghoven              |    available for rent. Nearly
         DW-5205 St. Augustin, Germany     |    unused, good conditions