home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 202.img / SCO386N2.TD0 / usr / include / sys / xmap.h < prev   
Encoding:
C/C++ Source or Header  |  1988-05-18  |  1.5 KB  |  45 lines

  1. /*
  2.  *    @(#) xmap.h 1.1 88/05/18 
  3.  *
  4.  *    Copyright (C) The Santa Cruz Operation, 1988.
  5.  *    Copyright (C) Microsoft Corporation, 1988.
  6.  *    This Module contains Proprietary Information of
  7.  *    The Santa Cruz Operation, Microsoft Corporation
  8.  *    and AT&T, and should be treated as Confidential.
  9.  */
  10.  
  11. /*
  12.  *    xmap structure - provides a per-tty structure for recording
  13.  *    state information by emap and nmap routines.  Also used by
  14.  *    select to avoid cluttering up tty structure.
  15.  */
  16.  
  17. struct xmap {
  18.     /*
  19.      *    select fields
  20.      */
  21.     struct proc *    xm_selrd;    /* Process waiting on selwait (read) */
  22.     struct proc *    xm_selwr;    /* Process waiting on selwait (write)*/
  23.     /*
  24.       *    emap fields (used to be in tty structure)
  25.      */
  26.     struct emap *    xm_emp;        /* emapping table */
  27.     unsigned char    xm_emchar;    /* saved emapping char */
  28.     unsigned char    xm_emonmap;    /* True if should call nmmapout */
  29.     /*
  30.      *    nmap fields
  31.      */
  32.     struct nmap *    xm_nmp;        /* nmapping table */
  33. #if    defined(M_I086) || defined(M_I186) || defined(M_I286)
  34.     char far *    xm_nmiseqp;    /* Current pos in lead-in (input) */
  35.     char far *    xm_nmoseqp;    /* Current pos in lead-in (output) */
  36. #else
  37.     char *        xm_nmiseqp;    /* Current pos in lead-in (input) */
  38.     char *        xm_nmoseqp;    /* Current pos in lead-in (output) */
  39. #endif
  40.     unsigned short    xm_nmincnt;    /* # chars left in trailer (input) */
  41.     unsigned short    xm_nmoncnt;    /* # chars left in trailer (output) */
  42.     unsigned char    xm_nmiseqn;    /* Index of current lead-in (input) */
  43.     unsigned char    xm_nmoseqn;    /* Index of current lead-in (output) */
  44. };
  45.