C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Sharing Constants
                                             Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
  Constant:  _SH_COMPAT, _SH_DENYRW, _SH_DENYWR, _SH_DENYRD,
             _SH_DENYNO, _O_NOINHERIT
 
  Include:   <share.h>
 
  Context:   _sopen, _dos_open, _fsopen
 
  Summary:   The <shflag> argument determines the sharing mode, which
             consists of one or more manifest constants. These can be
             combined with the <oflag> arguments above when used in
             _dos_open.
 
     The constants and their meanings are listed below:
 
     Constant         Meaning
 
     _SH_COMPAT       Sets compatibility mode
 
     _SH_DENYRW       Denies read and write access to file
 
     _SH_DENYWR       Denies write access to file
 
     _SH_DENYRD       Denies read access to file
 
     _SH_DENYNO       Permits read and write access
 
     _O_NOINHERIT     File is not inherited by child process
                      (_dos_open only)
                                    -♦-