home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 202.img / SCO386N2.TD0 / usr / include / sys / text.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-07-13  |  1.4 KB  |  46 lines

  1. #ifndef M_I386
  2. /*
  3.  *    @(#) text.h 2.2 88/07/13 
  4.  *
  5.  *    Copyright (C) The Santa Cruz Operation, 1984, 1985, 1986, 1987, 1988.
  6.  *    Copyright (C) Microsoft Corporation, 1984, 1985, 1986, 1987, 1988.
  7.  *    This Module contains Proprietary Information of
  8.  *    The Santa Cruz Operation, Microsoft Corporation
  9.  *    and AT&T, and should be treated as Confidential.
  10.  */
  11.  
  12. /*
  13.  * Text structure.
  14.  * One allocated per pure procedure on swap device.
  15.  * Manipulated by text.c
  16.  */
  17. struct text
  18. {
  19.     short    x_daddr;     /* disk address of segment (relative to swplo) */
  20.     short    x_size;        /* size (clicks) */
  21. #ifdef M_I386
  22.     struct proc *x_caddr;    /* ptr to linked proc, if loaded */
  23. #else
  24.     mloc_t    x_caddr;    /* ptr to linked proc, if loaded */
  25. #endif
  26.     inodep_t x_iptr;    /* inode of prototype */
  27.     char    x_count;    /* reference count */
  28.     char    x_ccount;    /* number of loaded references */
  29.     char    x_flag;        /* traced, written flags */
  30.     char    x_lcount;    /* lock count */
  31.     unsigned short    x_fcsel;/* first code selector */
  32.     unsigned short    x_lsize;/* size of the text ldt in bytes */
  33. };
  34.  
  35. extern struct text text[];
  36.  
  37. #define    XTRC    01        /* Text may be written, exclusive use */
  38. #define    XWRIT    02        /* Text written into, must swap out */
  39. #define    XLOAD    04        /* Currently being read from file */
  40. #define    XLOCK    010        /* Being swapped in or out */
  41. #define    XWANT    020        /* Wanted for swapping */
  42. #define XLARGE  040        /* large text segment 286/86 uses this flag */
  43. #define XFPU    0100            /* text uses floating point */
  44.  
  45. #endif
  46.