home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / UNIX3862.ZIP / U386-06.ZIP / U386-6.TD0 / usr / include / sys / stermio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-06-26  |  1.6 KB  |  74 lines

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