home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume25 / finger / part01 / ttylocfile.h < prev    next >
C/C++ Source or Header  |  1992-04-03  |  1KB  |  45 lines

  1. /*
  2.  * ttylocfile.h -- defns to read /etc/ttyloc (December 1985)
  3.  /*
  4.  * Copyright (C) 1986, 1990  Philip L. Budne
  5.  *
  6.  * This file is part of "Phil's Finger Program".
  7.  *
  8.  * This program is free software; you can redistribute it and/or modify
  9.  * it under the terms of the GNU General Public License as published by
  10.  * the Free Software Foundation; either version 1, or (at your option)
  11.  * any later version.
  12.  *
  13.  */
  14.  
  15. # define TTYLOCFILE_RCSID "$Id: ttylocfile.h,v 3.0 90/07/06 13:12:05 budd Rel $"
  16.  
  17. # ifndef LOCFILE
  18. # define LOCFILE "/etc/ttyloc"
  19. # endif /* LOCFILE not defined */
  20.  
  21. # ifndef NLOCFILE
  22. # define NLOCFILE "/etc/nttyloc"    /* new format file */
  23. # endif /* NLOCFILE not defined */
  24.  
  25. # ifndef MAXTTY
  26. # define MAXTTY 100            /* number of ttys on system */
  27. # endif /* MAXTTY not defined */
  28.  
  29. typedef enum { LT_HARD, LT_TTYLOC, LT_DIALUP, LT_UNKNOWN } LINETYPE;
  30.  
  31. typedef struct ttyloc {
  32.     char *t_name;            /* terminal name */
  33.     char *t_locn;            /* default (long) terminal location */
  34.     char *t_short;            /* short locn (prepended to user str) */
  35.     LINETYPE t_type;            /* line type */
  36. } TTYLOC;
  37.  
  38. extern TTYLOC *findttyloc();
  39.  
  40. /*
  41.  * Local variables:
  42.  * comment-column: 40
  43.  * End:
  44.  */
  45.