home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 20.ddi / INCLUDE / SYS / LOCKING.H_ / LOCKING.H
Encoding:
C/C++ Source or Header  |  1993-02-08  |  793 b   |  31 lines

  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.  
  12. #ifndef _INC_LOCKING
  13.  
  14. #define _LK_UNLCK   0   /* unlock the file region */
  15. #define _LK_LOCK    1   /* lock the file region */
  16. #define _LK_NBLCK   2   /* non-blocking lock */
  17. #define _LK_RLCK    3   /* lock for writing */
  18. #define _LK_NBRLCK  4   /* non-blocking lock for writing */
  19.  
  20. #ifndef __STDC__
  21. /* Non-ANSI names for compatibility */
  22. #define LK_UNLCK       _LK_UNLCK
  23. #define LK_LOCK        _LK_LOCK
  24. #define LK_NBLCK       _LK_NBLCK
  25. #define LK_RLCK        _LK_RLCK
  26. #define LK_NBRLCK      _LK_NBRLCK
  27. #endif 
  28.  
  29. #define _INC_LOCKING
  30. #endif 
  31.