locking.h 648 B

12345678910111213141516171819202122232425262728293031
  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 within this package.
  5. */
  6. #ifndef _INC_LOCKING
  7. #define _INC_LOCKING
  8. #ifndef _WIN32
  9. #error Only Win32 target is supported!
  10. #endif
  11. /* All the headers include this file. */
  12. #include <_mingw.h>
  13. #define _LK_UNLCK 0
  14. #define _LK_LOCK 1
  15. #define _LK_NBLCK 2
  16. #define _LK_RLCK 3
  17. #define _LK_NBRLCK 4
  18. #ifndef NO_OLDNAMES
  19. #define LK_UNLCK _LK_UNLCK
  20. #define LK_LOCK _LK_LOCK
  21. #define LK_NBLCK _LK_NBLCK
  22. #define LK_RLCK _LK_RLCK
  23. #define LK_NBRLCK _LK_NBRLCK
  24. #endif
  25. #endif