home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / sd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.8 KB  |  71 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/sd.h.sl 1.1 4.0 12/08/90 26899 AT&T-USL"
  11. /*    Copyright (c) 1987, 1988 Microsoft Corporation    */
  12. /*      All Rights Reserved    */
  13.  
  14. /*    This Module contains Proprietary Information of Microsoft  */
  15. /*    Corporation and should be treated as Confidential.       */
  16.  
  17.  
  18. /*
  19.  *    @(#) sd.h 1.3 87/06/22 
  20.  */
  21.  
  22.  
  23.  
  24.  
  25. /* Shared Data flags */
  26. #define    SD_RDONLY    0x00
  27. #define    SD_WRITE    0x01
  28. #define    SD_CREAT    0x02
  29. #define    SD_UNLOCK    0x04
  30. #define    SD_NOWAIT    0x08
  31.  
  32. #if defined(_KERNEL) || defined(_KMEMUSER)
  33.  
  34. #define    SD_LOCKED    0x10
  35. #define    SD_NTFY        0x20
  36. #define    SD_BTWN        0x40
  37.  
  38. #define SDI_LOCKED    0x10
  39. #define    SDI_NTFY    0x20
  40. #define SDI_DEST    0x40
  41. #define SDI_CLEAR    0x80
  42.  
  43.  
  44. struct sd {                 /* XENIX shared data table */
  45.     struct xnamnode *sd_xnamnode;    /* pointer to inode for segment */
  46.     char          *sd_addr;    /* address in this proc's data space */
  47.     char         *sd_cpaddr;/* version # for local copy */
  48.     char         sd_flags;    /* describing state of this proc */
  49.     struct sd    *sd_link;    /* ptr to next shared data seg for this proc */
  50. };
  51.  
  52. extern struct sd sdtab[];    /* the XENIX shared data table itself */
  53. #endif /* _KERNEL || KMEMUSER */
  54.  
  55. #ifndef _KERNEL
  56. #ifdef __STDC__
  57. extern char *sdget(char *path, int flags, ...);
  58. int sdenter(char *addr, int flags);
  59. int sdleave(char *addr);
  60. int sdfree(char *addr);
  61. int sdgetv(char *addr);
  62. int sdwaitv(char *addr, int vnum);
  63. #else
  64. extern char *sdget();
  65. int sdenter();
  66. int sdfree();
  67. int sdgetv();
  68. int sdwaitv();
  69. #endif /* __STDC__  */
  70. #endif /* #ifndef _KERNEL */
  71.