x86-64 bug fix: Use stack with alignment just like 32bit environments.
[tinycc/kirr.git] / win32 / include / sys / locking.h
blob2ecd11628e9dc02eb32108e753f74daae55b68ba
1 /*
2 * locking.h
4 * Constants for the mode parameter of the locking function.
6 * This file is part of the Mingw32 package.
8 * Contributors:
9 * Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
11 * THIS SOFTWARE IS NOT COPYRIGHTED
13 * This source code is offered for use in the public domain. You may
14 * use, modify or distribute it freely.
16 * This code is distributed in the hope that it will be useful but
17 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
18 * DISCLAIMED. This includes but is not limited to warranties of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21 * $Revision: 1.2 $
22 * $Author: bellard $
23 * $Date: 2005/04/17 13:14:29 $
27 #ifndef __STRICT_ANSI__
29 #ifndef _LOCKING_H_
30 #define _LOCKING_H_
32 /* All the headers include this file. */
33 #include <_mingw.h>
35 #define _LK_UNLCK 0 /* Unlock */
36 #define _LK_LOCK 1 /* Lock */
37 #define _LK_NBLCK 2 /* Non-blocking lock */
38 #define _LK_RLCK 3 /* Lock for read only */
39 #define _LK_NBRLCK 4 /* Non-blocking lock for read only */
41 #ifndef NO_OLDNAMES
42 #define LK_UNLCK _LK_UNLCK
43 #define LK_LOCK _LK_LOCK
44 #define LK_NBLCK _LK_NBLCK
45 #define LK_RLCK _LK_RLCK
46 #define LK_NBRLCK _LK_NBRLCK
47 #endif /* Not NO_OLDNAMES */
49 #endif /* Not _LOCKING_H_ */
51 #endif /* Not __STRICT_ANSI__ */