home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c045 / 2.ddi / INCLUDE / SYS / LOCKING.H$ / LOCKING.bin
Encoding:
Text File  |  1992-01-01  |  783 b   |  31 lines

  1. /***
  2. *sys\locking.h - flags for locking() function
  3. *
  4. *    Copyright (c) 1985-1991, 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    /* _INC_LOCKING */
  31.