home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / uccs / root.14 / udk / usr / include / sgtty.h < prev    next >
C/C++ Source or Header  |  1998-08-19  |  3KB  |  135 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. #ident    "@(#)sgs-head:common/head/sgtty.h    1.3.3.1"
  12.  
  13. #ifndef _SGTTY_H
  14. #define _SGTTY_H
  15.  
  16. /*
  17.  * Modes
  18.  */
  19. #define    HUPCL    01
  20. #ifndef _SYS_IOCTL_H
  21. #define    XTABS    02
  22. #define    LCASE    04
  23. #define    ECHO    010
  24. #define    CRMOD    020
  25. #define    RAW    040
  26. #define    ODDP    0100
  27. #define    EVENP    0200
  28. #define ANYP    0300
  29. #define    NLDELAY    001400
  30. #define    TBDELAY    002000
  31. #define    CRDELAY    030000
  32. #define    VTDELAY    040000
  33. #define BSDELAY 0100000
  34. #define ALLDELAY 0177400
  35.  
  36. /*
  37.  * Delay algorithms
  38.  */
  39. #define    CR0    0
  40. #define    CR1    010000
  41. #define    CR2    020000
  42. #define    CR3    030000
  43. #define    NL0    0
  44. #define    NL1    000400
  45. #define    NL2    001000
  46. #define    NL3    001400
  47. #define    TAB0    0
  48. #define    TAB1    002000
  49. #endif /* _SYS_IOCTL_H */
  50. #define    NOAL    004000
  51. #ifndef _SYS_IOCTL_H
  52. #define    FF0    0
  53. #define    FF1    040000
  54. #define    BS0    0
  55. #define    BS1    0100000
  56. #endif /* _SYS_IOCTL_H */
  57.  
  58. #ifndef _SYS_TTOLD_H
  59.  
  60. /*
  61.  * Structure for stty and gtty system calls.
  62.  */
  63. struct sgttyb {
  64.     char    sg_ispeed;        /* input speed */
  65.     char    sg_ospeed;        /* output speed */
  66.     char    sg_erase;        /* erase character */
  67.     char    sg_kill;        /* kill character */
  68.     int    sg_flags;        /* mode flags */
  69. };
  70.  
  71. /* BSD local special chars. Structure for TIOCSLTC/TIOCGLTC */
  72. struct ltchars {
  73.     char    t_suspc;    /* stop process signal */
  74.     char    t_dsuspc;    /* delayed stop process signal */
  75.     char    t_rprntc;    /* reprint line */
  76.     char    t_flushc;    /* flush output (toggles) */
  77.     char    t_werasc;    /* word erase */
  78.     char    t_lnextc;    /* literal next character */
  79. };
  80.  
  81. /*
  82.  * Speeds
  83.  */
  84. #ifdef m88k
  85. #define    B0    0
  86. #define    B50    000000200000
  87. #define    B75    000000400000
  88. #define    B110    000000600000
  89. #define    B134    000001000000
  90. #define    B150    000001200000
  91. #define    B200    000001400000
  92. #define    B300    000001600000
  93. #define    B600    000002000000
  94. #define    B1200    000002200000
  95. #define    B1800    000002400000
  96. #define    B2400    000002600000
  97. #define    B4800    000003000000
  98. #define    B9600    000003200000
  99. #define    B19200    000003400000
  100. #define EXTA    000003400000
  101. #define    B38400    000003600000
  102. #define EXTB    000003600000
  103. #else
  104. #define B0    0
  105. #define B50    1
  106. #define B75    2
  107. #define B110    3
  108. #define B134    4
  109. #define B150    5
  110. #define B200    6
  111. #define B300    7
  112. #define B600    8
  113. #define B1200    9
  114. #define    B1800    10
  115. #define B2400    11
  116. #define B4800    12
  117. #define B9600    13
  118. #define EXTA    14
  119. #define EXTB    15
  120. #endif
  121.  
  122. /*
  123.  *    ioctl arguments
  124.  */
  125. #define FIOCLEX        (('f'<<8)|1)
  126. #define FIONCLEX    (('f'<<8)|2)
  127. #define    TIOCHPCL    (('t'<<8)|2)
  128. #define    TIOCGETP    (('t'<<8)|8)
  129. #define    TIOCSETP    (('t'<<8)|9)
  130. #define    TIOCEXCL    (('t'<<8)|13)
  131. #define    TIOCNXCL    (('t'<<8)|14)
  132. #endif /*_SYS_TTOLD_H */
  133.  
  134. #endif     /* _SGTTY_H */
  135.