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 / sd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-06-26  |  1.3 KB  |  57 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. /*    Copyright (c) 1987, 1988 Microsoft Corporation    */
  9. /*      All Rights Reserved    */
  10.  
  11. /*    This Module contains Proprietary Information of Microsoft  */
  12. /*    Corporation and should be treated as Confidential.       */
  13.  
  14. #ident    "@(#)head.sys:sd.h    1.2"
  15.  
  16. /*
  17.  *    @(#) sd.h 1.3 87/06/22 
  18.  */
  19.  
  20.  
  21.  
  22.  
  23. /* Shared Data flags */
  24. #define    SD_RDONLY    0x00
  25. #define    SD_WRITE    0x01
  26. #define    SD_CREAT    0x02
  27. #define    SD_UNLOCK    0x04
  28. #define    SD_NOWAIT    0x08
  29.  
  30. #ifdef INKERNEL
  31.  
  32. #define    SD_LOCKED    0x10
  33. #define    SD_NTFY        0x20
  34. #define    SD_BTWN        0x40
  35.  
  36. #define SDI_LOCKED    0x10
  37. #define    SDI_NTFY    0x20
  38. #define SDI_DEST    0x40
  39. #define SDI_CLEAR    0x80
  40.  
  41.  
  42. struct sd {                 /* XENIX shared data table */
  43.     struct inode *sd_inode;    /* pointer to inode for segment */
  44.     char          *sd_addr;    /* address in this proc's data space */
  45.     char         *sd_cpaddr;/* version # for local copy */
  46.     char         sd_flags;    /* describing state of this proc */
  47.     struct sd    *sd_link;    /* ptr to next shared data seg for this proc */
  48. };
  49.  
  50. extern struct sd sdtab[];    /* the XENIX shared data table itself */
  51.  
  52. #else
  53.  
  54. extern char *sdget();
  55.  
  56. #endif /* INKERNEL */
  57.