source: Daodan/MinGW/include/sys/locking.h@ 1046

Last change on this file since 1046 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 818 bytes
RevLine 
[1046]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.
6 *
7 * Constants for the mode parameter of the locking function.
8 *
9 */
10
11#ifndef _LOCKING_H_
12#define _LOCKING_H_
13
14/* All the headers include this file. */
15#include <_mingw.h>
16
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 */
22
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 */
30
31#endif /* Not _LOCKING_H_ */
Note: See TracBrowser for help on using the repository browser.