aboutsummaryrefslogtreecommitdiff
path: root/contrib/Win32/flock.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/Win32/flock.h')
-rw-r--r--contrib/Win32/flock.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/Win32/flock.h b/contrib/Win32/flock.h
new file mode 100644
index 00000000..0ea72cf1
--- /dev/null
+++ b/contrib/Win32/flock.h
@@ -0,0 +1,31 @@
1/* Copyrights 2002 Luis Figueiredo (stdio@netc.pt) All rights reserved.
2 *
3 * See the LICENSE file
4 *
5 * The origin of this software must not be misrepresented, either by
6 * explicit claim or by omission. Since few users ever read sources,
7 * credits must appear in the documentation.
8 *
9 * file: utils.h
10 *
11 * description: Header
12 *
13 * date: 19:50,07-50-2002
14 */
15
16#ifndef _FLOCK_H_
17#define _FLOCK_H_
18
19#include <windows.h>
20#include <io.h> // this?
21#include <errno.h>
22
23#define LOCK_SH 1
24#define LOCK_EX 2
25#define LOCK_NB 4
26#define LOCK_UN 8
27
28int flock (int,int);
29
30
31#endif \ No newline at end of file