1 /***
2 *sys/locking.h - flags for locking() function
3 *
4 *           Copyright (c) Microsoft Corporation. All rights reserved.
5 *
6 *Purpose:
7 *           This file defines the flags for the locking() function.
8 *           [System V]
9 *
10 *           [Public]
11 *
12 ****/
13
14 #if _MSC_VER > 1000
15 #pragma once
16 #endif
17
18 #ifndef _INC_LOCKING
19 #define _INC_LOCKING
20
21 #if !defined(_WIN32)
22 #error ERROR: Only Win32 target supported!
23 #endif
Lines 24 ... 29 are skipped.
30 #define _LK_NBRLCK          4           /* non-blocking lock for writing */
31
32 #if !__STDC__
33 /* Non-ANSI names for compatibility */
34 #define LK_UNLCK             _LK_UNLCK
35 #define LK_LOCK               _LK_LOCK
36 #define LK_NBLCK             _LK_NBLCK
37 #define LK_RLCK               _LK_RLCK
38 #define LK_NBRLCK           _LK_NBRLCK
39 #endif
40
41 #endif  /* _INC_LOCKING */
42