home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Compilers / digital marsC compier / dm / include / sys / Locking.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-03-16  |  539 b   |  29 lines

  1. /* Copyright (C) 1986-1994 by Digital Mars. $Revision: 1.1.1.1 $ */
  2. #if __SC__ || __RCC__
  3. #pragma once
  4. #endif
  5.  
  6. #ifndef __SYS_LOCKING_H
  7. #define __SYS_LOCKING_H 1
  8.  
  9. #define _LK_UNLCK    0
  10. #define _LK_LOCK     1
  11. #ifdef M_UNIX
  12. #define _LK_NBLCK    20
  13. #else
  14. #define _LK_NBLCK    2
  15. #endif
  16. #define _LK_RLCK     3
  17. #define _LK_NBRLCK   4
  18.  
  19. #ifndef __STDC__
  20. #define LK_UNLCK    _LK_UNLCK
  21. #define LK_LOCK     _LK_LOCK
  22. #define LK_NBLCK    _LK_NBLCK
  23. #define LK_RLCK     _LK_RLCK
  24. #define LK_NBRLCK   _LK_NBRLCK
  25. #endif
  26.  
  27. #endif
  28.  
  29.