mirror of
https://github.com/reactos/reactos.git
synced 2025-06-04 17:00:31 +00:00

Imported from https://www.nuget.org/packages/Microsoft.Windows.SDK.CRTSource/10.0.22621.3 License: MIT
33 lines
972 B
C
33 lines
972 B
C
//
|
|
// corecrt_share.h
|
|
//
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//
|
|
// Defines the file sharing modes for the sopen() family of functions. These
|
|
// declarations are split out to support the Windows build.
|
|
//
|
|
#pragma once
|
|
|
|
#include <corecrt.h>
|
|
|
|
#pragma warning(push)
|
|
#pragma warning(disable: _UCRT_DISABLED_WARNINGS)
|
|
_UCRT_DISABLE_CLANG_WARNINGS
|
|
|
|
#define _SH_DENYRW 0x10 // deny read/write mode
|
|
#define _SH_DENYWR 0x20 // deny write mode
|
|
#define _SH_DENYRD 0x30 // deny read mode
|
|
#define _SH_DENYNO 0x40 // deny none mode
|
|
#define _SH_SECURE 0x80 // secure mode
|
|
|
|
|
|
|
|
#if (defined _CRT_DECLARE_NONSTDC_NAMES && _CRT_DECLARE_NONSTDC_NAMES) || (!defined _CRT_DECLARE_NONSTDC_NAMES && !__STDC__)
|
|
#define SH_DENYRW _SH_DENYRW
|
|
#define SH_DENYWR _SH_DENYWR
|
|
#define SH_DENYRD _SH_DENYRD
|
|
#define SH_DENYNO _SH_DENYNO
|
|
#endif
|
|
|
|
_UCRT_RESTORE_CLANG_WARNINGS
|
|
#pragma warning(pop) // _UCRT_DISABLED_WARNINGS
|