| 1 | #ifndef _SYS_FILE_H |
| 2 | #define _SYS_FILE_H |
| 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 | #endif |