Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / mingw / include / sys / locking.h
blobeee5e3c54134849606d2df9a9878d53c921e6cf8
1 /*
2 * locking.h
3 * This file has no copyright assigned and is placed in the Public Domain.
4 * This file is a part of the mingw-runtime package.
5 * No warranty is given; refer to the file DISCLAIMER within the package.
7 * Constants for the mode parameter of the locking function.
9 */
11 #ifndef _LOCKING_H_
12 #define _LOCKING_H_
14 /* All the headers include this file. */
15 #include <_mingw.h>
17 #define _LK_UNLCK 0 /* Unlock */
18 #define _LK_LOCK 1 /* Lock */
19 #define _LK_NBLCK 2 /* Non-blocking lock */
20 #define _LK_RLCK 3 /* Lock for read only */
21 #define _LK_NBRLCK 4 /* Non-blocking lock for read only */
23 #ifndef NO_OLDNAMES
24 #define LK_UNLCK _LK_UNLCK
25 #define LK_LOCK _LK_LOCK
26 #define LK_NBLCK _LK_NBLCK
27 #define LK_RLCK _LK_RLCK
28 #define LK_NBRLCK _LK_NBRLCK
29 #endif /* Not NO_OLDNAMES */
31 #endif /* Not _LOCKING_H_ */