locking.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * locking.h
  3. *
  4. * Constants for the mode parameter of the locking function.
  5. *
  6. * This file is part of the Mingw32 package.
  7. *
  8. * Contributors:
  9. * Created by Colin Peters <[email protected]>
  10. *
  11. * THIS SOFTWARE IS NOT COPYRIGHTED
  12. *
  13. * This source code is offered for use in the public domain. You may
  14. * use, modify or distribute it freely.
  15. *
  16. * This code is distributed in the hope that it will be useful but
  17. * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
  18. * DISCLAIMED. This includes but is not limited to warranties of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  20. *
  21. * $Revision: 1.2 $
  22. * $Author: bellard $
  23. * $Date: 2005/04/17 13:14:29 $
  24. *
  25. */
  26. #ifndef __STRICT_ANSI__
  27. #ifndef _LOCKING_H_
  28. #define _LOCKING_H_
  29. /* All the headers include this file. */
  30. #include <_mingw.h>
  31. #define _LK_UNLCK 0 /* Unlock */
  32. #define _LK_LOCK 1 /* Lock */
  33. #define _LK_NBLCK 2 /* Non-blocking lock */
  34. #define _LK_RLCK 3 /* Lock for read only */
  35. #define _LK_NBRLCK 4 /* Non-blocking lock for read only */
  36. #ifndef NO_OLDNAMES
  37. #define LK_UNLCK _LK_UNLCK
  38. #define LK_LOCK _LK_LOCK
  39. #define LK_NBLCK _LK_NBLCK
  40. #define LK_RLCK _LK_RLCK
  41. #define LK_NBRLCK _LK_NBRLCK
  42. #endif /* Not NO_OLDNAMES */
  43. #endif /* Not _LOCKING_H_ */
  44. #endif /* Not __STRICT_ANSI__ */