home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!casbah.acns.nwu.edu!hpa
- From: hpa@casbah.acns.nwu.edu (H. Peter Anvin N9ITP)
- Subject: /dev/tty* naming conventions [long]; /dev/lp0
- Message-ID: <1992Jul26.195137.14536@news.acns.nwu.edu>
- Sender: usenet@news.acns.nwu.edu (Usenet on news.acns)
- Reply-To: hpa@nwu.edu (H. Peter Anvin)
- Organization: You must be kidding!
- References: <1992Jul26.193854.122@csghsg5a.bitnet>
- Date: Sun, 26 Jul 1992 19:51:37 GMT
- Lines: 46
-
- First of all, a question: does anyone know of a problem with /dev/lp? in
- Linux? When booting up the system say /dev/lp0 is present, but anything I
- output to /dev/lp0 does nothing for my printer.
-
- Second, I was wondering about the naming conventions for /dev/tty*.
-
- Function BSD/Mach Linux IRIX (SysV)
-
- Virtual console console console console
- Physical console ? tty0 contty
- VTcon ? tty1-tty8 N/A
- Serial port ttya-ttyo ttys1-ttys4 ttyd1-ttyd127
- PTY master ptyp0-ptyzf ptyp0-ptyrf ptc
- PTY slave ttyp0-ttyzf ttyp0-ttyrf ttyq0-ttyz99
-
- The only problem with the Linux TTY naming scheme is that the serial ports
- conflict with the namespace used for PTY slaves. Even if the current Linux
- major/minor scheme only allows 64 PTY's, that is enough to conflict with
- the serial ports (the last 16 should be ttys?); and changing the
- device-numbering scheme to allow a separate major number for PTY masters
- and/or slaves is always a possibility.
-
- Although 64 simultaneous logins can seem like more than a 386/486 would
- ever handle; PTYs can be used quite copiously by programs such as screen
- and windowing software; besides it is never a good idea to build in a limit
- that cannot be further extended.
-
- Finally, some software, notably xterm, don't like TTY names with more than
- two characters after /dev/tty (see the -S option). Therefore, it seems to
- me as the BSD/Mach scheme would be the ideal; it would bring the added
- advantage of making different TTY types easy to distinguish.
-
- VTcons would be /dev/tty1 to /dev/tty8; could be extended up to /dev/tty99.
-
- The serial ports would be /dev/ttya to /dev/ttyd; could be extended to
- /dev/ttyo for up to 15 ports or to /dev/ttyz for up to 26 ports.
-
- The PTYs would by /dev/ttyp0 to /dev/ttysf (with /dev/ptyp0 to /dev/ptysf
- as the masters); this could be extended to /dev/ttyzf for a total of 176
- PTYs with a new numbering scheme. (SunOS uses /dev/ttyP0 to /dev/ttyTf to
- extend up to 256 although these devices rarely come into use.)
- --
- INTERNET: hpa@nwu.edu TALK: hpa@casbah.acns.nwu.edu
- BITNET: HPA@NUACC HAM RADIO: N9ITP, SM4TKN
- IRC: Scalar NeXTMAIL: hpa@lenny.acns.nwu.edu
- This is a test of the emergency USENET system.
-