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

  1. /*
  2.  *    @(#) nmap.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. /* Channel mapping ioctl's */
  12.  
  13. #define    NMIOC  ('n'<< 8)    /* So not to conflict with LDIOCs */
  14. #define NMSMAP (NMIOC|1)    /* set no-map */
  15. #define NMGMAP (NMIOC|2)    /* get no-map */
  16. #define NMNMAP (NMIOC|3)    /* clear no-map */
  17.  
  18. #ifdef M_I386
  19. typedef    struct nmtab    *nmp_t;
  20. typedef    struct nmseq    *nmsp_t;
  21. typedef    unsigned char    *nmcp_t;
  22. #else
  23. typedef    struct nmtab    far *nmp_t;
  24. typedef    struct nmseq    far *nmsp_t;
  25. typedef    unsigned char    far *nmcp_t;
  26. #endif
  27.  
  28. /* Nmap control structure */
  29.  
  30. struct nmap {
  31.     unsigned char    n_count;    /* Usage count of this map */
  32.     nmp_t        n_p;        /* Ptr. to sequence table */
  33.     struct buf    *n_bp;        /* Ptr. to table buffer header */
  34. };
  35.  
  36. /* Nmap sequence table structs */
  37.  
  38. struct nmtab {
  39.     unsigned char    n_iseqs;    /* Number of input sequences */
  40.     unsigned char    n_aseqs;    /* Number of input + output sequences */
  41.     short        n_seqidx[1];    /* Array of sequence offsets */
  42. };
  43.  
  44. struct nmseq {
  45.     unsigned char    n_nmcnt;    /* Sequence trailer length */
  46.     char        n_nmseq[1];    /* Sequence lead-in(null terminated) */
  47. };
  48.  
  49. extern struct nmap nmap[];        /* Allocated in space.h */
  50.