home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / cppbeta / incla / share.h__ / SHARE.H
Encoding:
C/C++ Source or Header  |  1992-09-27  |  1.8 KB  |  51 lines

  1. #ifndef __share_h
  2.    #define __share_h
  3.  
  4.    #pragma info( none )
  5.    #ifndef __CHKHDR__
  6.       #pragma info( none )
  7.    #endif
  8.    #pragma info( restore )
  9.  
  10.    #ifdef __cplusplus
  11.       extern "C" {
  12.    #endif
  13.  
  14.    /********************************************************************/
  15.    /*  <share.h> header file                                           */
  16.    /*                                                                  */
  17.    /*  Licensed Materials - Property of IBM                            */
  18.    /*                                                                  */
  19.    /*  IBM C Set/2 Beta Version                                        */
  20.    /*  Copyright (C) International Business Machines Corp., 1991,1992  */
  21.    /*  All rights reserved                                             */
  22.    /*                                                                  */
  23.    /*  US Government Users Restricted Rights -                         */
  24.    /*  Use, duplication, or disclosure restricted                      */
  25.    /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  26.    /*                                                                  */
  27.    /********************************************************************/
  28.  
  29.    #if (defined( __SPC__ ) || defined(__EXTENDED__))
  30.  
  31.       /*  This file defines the file sharing modes for _sopen().       */
  32.  
  33.       #define SH_DENYRW       0x10    /* deny read/write mode */
  34.       #define SH_DENYWR       0x20    /* deny write mode */
  35.       #define SH_DENYRD       0x30    /* deny read mode */
  36.       #define SH_DENYNO       0x40    /* deny none mode */
  37.  
  38.    #endif
  39.  
  40.    #ifdef __cplusplus
  41.       }
  42.    #endif
  43.  
  44.    #pragma info( none )
  45.    #ifndef __CHKHDR__
  46.       #pragma info( restore )
  47.    #endif
  48.    #pragma info( restore )
  49.  
  50. #endif
  51.