home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / uccs / root.14 / udk / usr / include / ttysrv.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-19  |  2.0 KB  |  78 lines

  1. /*
  2.  * Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved. 
  3.  *                                                                         
  4.  *        THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE               
  5.  *                   SANTA CRUZ OPERATION INC.                             
  6.  *                                                                         
  7.  *   The copyright notice above does not evidence any actual or intended   
  8.  *   publication of such source code.                                      
  9.  */
  10.  
  11. #ifndef _TTYSRV_H
  12. #define _TTYSRV_H
  13.  
  14. #ident    "@(#)sgs-head:common/head/ttysrv.h    1.2"
  15. #ident    "@(#)ttysrv.h    1.3"
  16.  
  17. #define PROC_L        "/usr/net/adm/cfg/ttysrv.pl"
  18. #define    CHGE_PROC_L    "/usr/net/adm/tmp/ttysrv.cp"
  19. #define TSTAB        "/usr/net/adm/cfg/ttysrv.db"
  20.  
  21. #define    MAXTRIES    5
  22. #define DECREMENT    0
  23. #define    INCREMENT    1
  24. #define    TRUE        1
  25. #define    FALSE        0
  26.  
  27. /* Streams modules pushed by ttysrv */
  28.  
  29. #define    NTTY        "ntty"
  30. #define    LD0        "ld0"
  31. #define    RDWR        "tirdwr"
  32.  
  33. /* Control characters for the menu */
  34.  
  35. #define    DEL        0177
  36. #define    FS        034
  37. #define    ERASE        010
  38. #define    KILL        0100
  39. #define    EOT        04
  40.  
  41. /*  Maximum page sizes */
  42.  
  43. #define    MAXPAGSRV    18
  44. #define    FIELDLEN    80
  45. #define    SRVFIELD    18
  46.  
  47. #define    MAXLNLEN    512
  48. #define    MAXSYS        256
  49.  
  50. #define    TSMENU        01    /* Menu was made already */
  51. #define    TSMENUSNT    02    /* Menu of systems sent to user */
  52. #define    TSERROR        04    /* Error message to user */
  53. #define    TSWAIT        010    /* Wait for answer from user */
  54. #define    TSCHGERR    020    /* Error in changing proc file */
  55. #define    TSLOGERR    040    /* Error in opening log */
  56. #define    TSSIGHUP    0100    /* SIGHUP indication */
  57. #define    TSDEFAULT    0200    /* Execute the default entry in the database */
  58. #define    TSEDIT        0400    /* Edited the process limit file successfully*/
  59. #define TSNOLIMIT    01000    /* No process limit file */
  60. #define TSSERVICE    02000    /* Service Executed properly */
  61.  
  62. #define    HSIZE        2048
  63. #define    FDOUTBNDS    21
  64.  
  65. struct proclim {
  66.     int count;
  67.     int maxcnt;
  68. };
  69.  
  70. typedef    char    SERVICES[15];
  71.  
  72. extern char *calspace[];
  73. extern short calindex;
  74.  
  75. typedef    char    bool;
  76.  
  77. #endif /* _TTYSRV_H */
  78.