~steve-sk2/mingw-w64/oneiric

« back to all changes in this revision

Viewing changes to mingw-w64-headers/include/sys/locking.h

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Kitt
  • Date: 2010-11-18 00:04:46 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101118000446-xe24b423su55onyl
Tags: 1.0+20101003-1
* New maintainer. (Closes: #594371.)
* New upstream snapshot:
  - Includes getopt.h. (Closes: #569914.)
* Build g++ for Win64. (Closes: #600451.)
* Standards-Version 3.9.1 (new packaging).
* Include patch from
  http://mingw-w64.svn.sourceforge.net/viewvc/mingw-w64?view=revision&revision=3715
  as suggested by Rafaël Carré.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * This file has no copyright assigned and is placed in the Public Domain.
 
3
 * This file is part of the w64 mingw-runtime package.
 
4
 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 
5
 */
 
6
#ifndef _INC_LOCKING
 
7
#define _INC_LOCKING
 
8
 
 
9
#ifndef _WIN32
 
10
#error Only Win32 target is supported!
 
11
#endif
 
12
 
 
13
/* All the headers include this file. */
 
14
#include <_mingw.h>
 
15
 
 
16
#define _LK_UNLCK 0
 
17
#define _LK_LOCK 1
 
18
#define _LK_NBLCK 2
 
19
#define _LK_RLCK 3
 
20
#define _LK_NBRLCK 4
 
21
 
 
22
#ifndef NO_OLDNAMES
 
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
 
 
30
#endif