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►
────────────────────────────────────────────────────────────────────────────
Constant: SH_COMPAT, SH_DENYRW, SH_DENYWR, SH_DENYRD, SH_DENYNO,
O_NOINHERIT
Include: <share.h>
Context: sopen, _dos_open, _fsopen
Synopsis: 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)