home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / stermio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.9 KB  |  79 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ifndef _SYS_STERMIO_H
  11. #define _SYS_STERMIO_H
  12.  
  13. #ident    "@(#)/usr/include/sys/stermio.h.sl 1.1 4.0 12/08/90 1888 AT&T-USL"
  14. /*
  15.  * ioctl commands for control channels
  16.  */
  17. #define STSTART        1    /* start protocol */
  18. #define STHALT        2    /* cease protocol */
  19. #define STPRINT        3    /* assign device to printer */
  20. #define STENABLE    4    /* enable polling */
  21. #define STDISABLE    5    /* disable polling */
  22. #define STPOLL        6    /* set polling rate */
  23. #define STCNTRS        7    /* poke for status reports */
  24. #define STTCHAN        8    /* set trace channel number */
  25.  
  26. /*
  27.  * ioctl commands for terminal and printer channels
  28.  */
  29. #define STGET    (('X'<<8)|0)    /* get line options */
  30. #define STSET    (('X'<<8)|1)    /* set line options */
  31. #define    STTHROW    (('X'<<8)|2)    /* throw away queued input */
  32. #define    STWLINE    (('X'<<8)|3)    /* get synchronous line # */
  33. #define STTSV    (('X'<<8)|4)    /* get all line information */
  34.  
  35. struct stio {
  36.     unsigned short    ttyid;
  37.     char        row;
  38.     char        col;
  39.     char        orow;
  40.     char        ocol;
  41.     char        tab;
  42.     char        aid;
  43.     char        ss1;
  44.     char        ss2;
  45.     unsigned short    imode;
  46.     unsigned short    lmode;
  47.     unsigned short    omode;
  48. };
  49.  
  50. /*
  51. **    Mode Definitions.
  52. */
  53. #define    STFLUSH    00400    /* FLUSH mode; lmode */
  54. #define    STWRAP    01000    /* WRAP mode; lmode */
  55. #define    STAPPL    02000    /* APPLICATION mode; lmode */
  56.  
  57. struct sttsv {
  58.     char    st_major;
  59.     short    st_pcdnum;
  60.     char    st_devaddr;
  61.     int    st_csidev;
  62. };
  63.  
  64. struct stcntrs {
  65.     char    st_lrc;
  66.     char    st_xnaks;
  67.     char    st_rnaks;
  68.     char    st_xwaks;
  69.     char    st_rwaks;
  70.     char    st_scc;
  71. };
  72.  
  73. /* trace message definitions */
  74.  
  75. #define LOC    113    /* loss of carrier */
  76.  
  77.  
  78. #endif    /* _SYS_STERMIO_H */
  79.