ReactOS 0.4.16-dev-927-g467dec4
locking.h
Go to the documentation of this file.
1//
2// sys/locking.h
3//
4// Copyright (c) Microsoft Corporation. All rights reserved.
5//
6// This file defines the flags for the locking() function.
7//
8#pragma once
9
10#include <corecrt.h>
11
12#pragma warning(push)
13#pragma warning(disable: _UCRT_DISABLED_WARNINGS)
15
16#define _LK_UNLCK 0 // unlock the file region
17#define _LK_LOCK 1 // lock the file region
18#define _LK_NBLCK 2 // non-blocking lock
19#define _LK_RLCK 3 // lock for writing
20#define _LK_NBRLCK 4 // non-blocking lock for writing
21
22#if (defined _CRT_DECLARE_NONSTDC_NAMES && _CRT_DECLARE_NONSTDC_NAMES) || (!defined _CRT_DECLARE_NONSTDC_NAMES && !__STDC__)
23 #define LK_UNLCK _LK_UNLCK
24 #define LK_LOCK _LK_LOCK
25 #define LK_NBLCK _LK_NBLCK
26 #define LK_RLCK _LK_RLCK
27 #define LK_NBRLCK _LK_NBRLCK
28#endif
29
31#pragma warning(pop) // _UCRT_DISABLED_WARNINGS
#define _UCRT_DISABLE_CLANG_WARNINGS
Definition: corecrt.h:109
#define _UCRT_RESTORE_CLANG_WARNINGS
Definition: corecrt.h:117