home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / bsd / ttyloc.h < prev    next >
Text File  |  1990-01-22  |  1KB  |  38 lines

  1. /* ttyloc.h -- describes the format of the binary ttyloc file */
  2.  
  3. #define TTYLOCFILE    "/etc/ttyloc.bin"
  4.  
  5. /* All integers are sizeof(long) bytes long, and are stored in the native
  6.    byte order of the machi7'
  7.    The file has three sequences of tables: the host table, the terminal
  8.    tables and the location strings.
  9.  
  10.    The prelude comes first in the file.
  11.  */
  12.  
  13. #define TTYMAGIC    0x10c10ccc
  14.  
  15. struct TTYPrelude {
  16.     long magic;            /* should be == TTYMAGIC */
  17.     long timestamp;        /* from TOPS-20 */
  18. };
  19.  
  20. /* Next comes the count of the number of host entries, followed by the
  21.    entries themselves. */
  22.  
  23. struct HostEntry {
  24.     long hostID;        /* host address */
  25.     long termOffset;        /* offset of the terminal table */
  26. };
  27.  
  28. /* Then we have the terminal tables for each host.  Each contains an entry
  29.    count followed by a number of terminal entries. */
  30.  
  31. struct TermEntry {
  32.     long termID;
  33.     long locOffset;        /* offset of description */
  34. };
  35.  
  36. /* The locOffset field points into the location part of the file which has a
  37.    number of null-terminated terminal locations. */
  38.