summaryrefslogtreecommitdiffstats
path: root/public/sdk/inc/crt/share.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--public/sdk/inc/crt/share.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/public/sdk/inc/crt/share.h b/public/sdk/inc/crt/share.h
new file mode 100644
index 000000000..87e2fe16d
--- /dev/null
+++ b/public/sdk/inc/crt/share.h
@@ -0,0 +1,38 @@
+/***
+*share.h - defines file sharing modes for sopen
+*
+* Copyright (c) 1985-1995, Microsoft Corporation. All rights reserved.
+*
+*Purpose:
+* This file defines the file sharing modes for sopen().
+*
+* [Public]
+*
+****/
+
+#if _MSC_VER > 1000
+#pragma once
+#endif
+
+#ifndef _INC_SHARE
+#define _INC_SHARE
+
+#if !defined(_WIN32) && !defined(_MAC)
+#error ERROR: Only Mac or Win32 targets supported!
+#endif
+
+
+#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 */
+
+#if !__STDC__
+/* Non-ANSI names for compatibility */
+#define SH_DENYRW _SH_DENYRW
+#define SH_DENYWR _SH_DENYWR
+#define SH_DENYRD _SH_DENYRD
+#define SH_DENYNO _SH_DENYNO
+#endif
+
+#endif /* _INC_SHARE */