home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 9.ddi / usr / include / sys / ttcompat.h < prev    next >
Encoding:
Text File  |  1990-12-08  |  2.2 KB  |  64 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. #ident    "@(#)/usr/include/sys/ttcompat.h.sl 1.1 4.0 12/08/90 41070 AT&T-USL"
  11.  
  12. /*
  13.  * BSD/XENIX/V7 ttcompat module header file
  14.  */
  15.  
  16. /*
  17.  * Old-style terminal state.
  18.  */
  19. typedef struct {
  20.     int    t_flags;        /* flags */
  21.     char    t_ispeed, t_ospeed;    /* speeds */
  22.     char    t_erase;        /* erase last character */
  23.     char    t_kill;            /* erase entire line */
  24.     char    t_intrc;        /* interrupt */
  25.     char    t_quitc;        /* quit */
  26.     char    t_startc;        /* start output */
  27.     char    t_stopc;        /* stop output */
  28.     char    t_eofc;            /* end-of-file */
  29.     char    t_brkc;            /* input delimiter (like nl) */
  30.     char    t_suspc;        /* stop process signal */
  31.     char    t_dsuspc;        /* delayed stop process signal */
  32.     char    t_rprntc;        /* reprint line */
  33.     char    t_flushc;        /* flush output (toggles) */
  34.     char    t_werasc;        /* word erase */
  35.     char    t_lnextc;        /* literal next character */
  36.     int    t_xflags;        /* XXX extended flags */
  37.     tcflag_t t_lflag;        /* saved lflag(s) */
  38.     tcflag_t t_iflag;        /* saved iflag(s) */
  39. } compat_state_t;
  40.  
  41. /*
  42.  * Per-tty structure.
  43.  */
  44. typedef struct {
  45.     mblk_t    *t_savbp;
  46.     mblk_t    *t_iocpending;        /* ioctl pending successful allocation */
  47.     compat_state_t t_curstate;    /* current emulated state */
  48.     struct sgttyb t_new_sgttyb;    /* new sgttyb from TIOCSET[PN] */
  49.     struct tchars t_new_tchars;    /* new tchars from TIOCSETC */
  50.     struct ltchars t_new_ltchars;    /* new ltchars from TIOCSLTC */
  51.     int    t_new_lflags;        /* new lflags from TIOCLSET/LBIS/LBIC */
  52.     int    t_state;        /* state bits */
  53.     int    t_iocid;        /* ID of "ioctl" we handle specially */
  54.     int    t_ioccmd;        /* ioctl code for that "ioctl" */
  55. } ttcompat_state_t;
  56.  
  57.  
  58. #define TS_FREE     0x00    /* not in use */
  59. #define TS_INUSE 0x01    /* allocated */
  60. #define TS_W_IN     0x02    /* waiting for an M_IOCDATA response to an M_COPYIN request */
  61. #define TS_W_OUT 0x04    /* waiting for an M_IOCDATA response to an M_COPYOUT request */
  62. #define TS_IOCWAIT 0x08    /* waiting for an M_IOCACK/M_IOCNAK from downstream */
  63.  
  64.