1
0

file.h 261 B

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