xref: /reactos/sdk/include/ucrt/corecrt_share.h (revision 53d808d2)
1 //
2 // corecrt_share.h
3 //
4 //      Copyright (c) Microsoft Corporation. All rights reserved.
5 //
6 // Defines the file sharing modes for the sopen() family of functions.  These
7 // declarations are split out to support the Windows build.
8 //
9 #pragma once
10 
11 #include <corecrt.h>
12 
13 #pragma warning(push)
14 #pragma warning(disable: _UCRT_DISABLED_WARNINGS)
15 _UCRT_DISABLE_CLANG_WARNINGS
16 
17 #define _SH_DENYRW      0x10    // deny read/write mode
18 #define _SH_DENYWR      0x20    // deny write mode
19 #define _SH_DENYRD      0x30    // deny read mode
20 #define _SH_DENYNO      0x40    // deny none mode
21 #define _SH_SECURE      0x80    // secure mode
22 
23 
24 
25 #if (defined _CRT_DECLARE_NONSTDC_NAMES && _CRT_DECLARE_NONSTDC_NAMES) || (!defined _CRT_DECLARE_NONSTDC_NAMES && !__STDC__)
26     #define SH_DENYRW _SH_DENYRW
27     #define SH_DENYWR _SH_DENYWR
28     #define SH_DENYRD _SH_DENYRD
29     #define SH_DENYNO _SH_DENYNO
30 #endif
31 
32 _UCRT_RESTORE_CLANG_WARNINGS
33 #pragma warning(pop) // _UCRT_DISABLED_WARNINGS
34