home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 6.ddi / MWHC.006 / L < prev    next >
Encoding:
Text File  |  1992-12-09  |  667 b   |  36 lines

  1. /*
  2.  *   locking.h -- extra-ANSI 
  3.  *
  4.  *   Constants needed by the file-locking function to determine
  5.  *   locking, unlocking, and locking with retries.
  6.  *
  7.  *           Copyright (c) 1990, MetaWare Incorporated
  8.  */
  9.  
  10. #ifndef _LOCKING_H
  11. #define _LOCKING_H
  12.  
  13. #ifdef __CPLUSPLUS__
  14. extern "C" {
  15. #endif
  16.  
  17. #define _LK_UNLCK   0
  18. #define _LK_LOCK    1
  19. #define _LK_NBLCK   2
  20. #define _LK_RLCK    3
  21. #define _LK_NBRLCK  4
  22.  
  23. #if __HIGHC__
  24.  
  25. #define LK_UNLCK   _LK_UNLCK 
  26. #define LK_LOCK    _LK_LOCK 
  27. #define LK_NBLCK   _LK_NBLCK 
  28. #define LK_RLCK    _LK_RLCK 
  29. #define LK_NBRLCK  _LK_NBRLCK 
  30.  
  31. #endif
  32. #ifdef __CPLUSPLUS__
  33. }
  34. #endif
  35. #endif /* _LOCKING_H */
  36.