Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
793 B

  1. /***
  2. *sys\locking.h - flags for locking() function
  3. *
  4. * Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This file defines the flags for the locking() function.
  8. * [System V]
  9. *
  10. ****/
  11. #ifndef _INC_LOCKING
  12. #define _LK_UNLCK 0 /* unlock the file region */
  13. #define _LK_LOCK 1 /* lock the file region */
  14. #define _LK_NBLCK 2 /* non-blocking lock */
  15. #define _LK_RLCK 3 /* lock for writing */
  16. #define _LK_NBRLCK 4 /* non-blocking lock for writing */
  17. #ifndef __STDC__
  18. /* Non-ANSI names for compatibility */
  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. #define _INC_LOCKING
  26. #endif