home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6723 < prev    next >
Encoding:
Text File  |  1992-07-26  |  2.8 KB  |  59 lines

  1. Newsgroups: comp.os.linux
  2. 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
  3. From: hpa@casbah.acns.nwu.edu (H. Peter Anvin N9ITP)
  4. Subject: /dev/tty* naming conventions [long]; /dev/lp0
  5. Message-ID: <1992Jul26.195137.14536@news.acns.nwu.edu>
  6. Sender: usenet@news.acns.nwu.edu (Usenet on news.acns)
  7. Reply-To: hpa@nwu.edu (H. Peter Anvin)
  8. Organization: You must be kidding!
  9. References: <1992Jul26.193854.122@csghsg5a.bitnet>
  10. Date: Sun, 26 Jul 1992 19:51:37 GMT
  11. Lines: 46
  12.  
  13. First of all, a question: does anyone know of a problem with /dev/lp? in
  14. Linux?  When booting up the system say /dev/lp0 is present, but anything I
  15. output to /dev/lp0 does nothing for my printer.
  16.  
  17. Second, I was wondering about the naming conventions for /dev/tty*.
  18.  
  19. Function          BSD/Mach    Linux       IRIX (SysV)
  20.  
  21. Virtual console   console     console     console
  22. Physical console  ?           tty0        contty
  23. VTcon             ?           tty1-tty8   N/A
  24. Serial port       ttya-ttyo   ttys1-ttys4 ttyd1-ttyd127
  25. PTY master        ptyp0-ptyzf ptyp0-ptyrf ptc
  26. PTY slave         ttyp0-ttyzf ttyp0-ttyrf ttyq0-ttyz99
  27.  
  28. The only problem with the Linux TTY naming scheme is that the serial ports
  29. conflict with the namespace used for PTY slaves.  Even if the current Linux
  30. major/minor scheme only allows 64 PTY's, that is enough to conflict with
  31. the serial ports (the last 16 should be ttys?); and changing the
  32. device-numbering scheme to allow a separate major number for PTY masters
  33. and/or slaves is always a possibility.
  34.  
  35. Although 64 simultaneous logins can seem like more than a 386/486 would
  36. ever handle; PTYs can be used quite copiously by programs such as screen
  37. and windowing software; besides it is never a good idea to build in a limit
  38. that cannot be further extended.
  39.  
  40. Finally, some software, notably xterm, don't like TTY names with more than
  41. two characters after /dev/tty (see the -S option).  Therefore, it seems to
  42. me as the BSD/Mach scheme would be the ideal; it would bring the added
  43. advantage of making different TTY types easy to distinguish.
  44.  
  45. VTcons would be /dev/tty1 to /dev/tty8; could be extended up to /dev/tty99.
  46.  
  47. The serial ports would be /dev/ttya to /dev/ttyd; could be extended to
  48. /dev/ttyo for up to 15 ports or to /dev/ttyz for up to 26 ports.
  49.  
  50. The PTYs would by /dev/ttyp0 to /dev/ttysf (with /dev/ptyp0 to /dev/ptysf
  51. as the masters); this could be extended to /dev/ttyzf for a total of 176
  52. PTYs with a new numbering scheme.  (SunOS uses /dev/ttyP0 to /dev/ttyTf to
  53. extend up to 256 although these devices rarely come into use.)
  54. -- 
  55. INTERNET: hpa@nwu.edu   TALK:      hpa@casbah.acns.nwu.edu
  56. BITNET:   HPA@NUACC     HAM RADIO: N9ITP, SM4TKN
  57. IRC:      Scalar        NeXTMAIL:  hpa@lenny.acns.nwu.edu
  58. This is a test of the emergency USENET system.
  59.