1 #pragma once
2 
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 
7 #define LOCK_SH 1
8 #define LOCK_EX 2
9 #define LOCK_NB 4
10 #define LOCK_UN 8
11 
12 #define L_SET 0
13 #define L_INCR 1
14 #define L_XTND 2
15 
16 int flock(int, int);
17 
18 #ifdef __cplusplus
19 }
20 #endif
21