home *** CD-ROM | disk | FTP | other *** search
/ Beginning C++ Through Gam…rogramming (2nd Edition) / BCGP2E.ISO / bloodshed / devcpp-4.9.9.2_setup.exe / locking.h < prev    next >
C/C++ Source or Header  |  2005-01-29  |  818b  |  32 lines

  1. /*
  2.  * locking.h
  3.  * This file has no copyright assigned and is placed in the Public Domain.
  4.  * This file is a part of the mingw-runtime package.
  5.  * No warranty is given; refer to the file DISCLAIMER within the package.
  6.  *
  7.  * Constants for the mode parameter of the locking function.
  8.  *
  9.  */
  10.  
  11. #ifndef    _LOCKING_H_
  12. #define    _LOCKING_H_
  13.  
  14. /* All the headers include this file. */
  15. #include <_mingw.h>
  16.  
  17. #define    _LK_UNLCK    0    /* Unlock */
  18. #define    _LK_LOCK    1    /* Lock */
  19. #define    _LK_NBLCK    2    /* Non-blocking lock */
  20. #define    _LK_RLCK    3    /* Lock for read only */
  21. #define    _LK_NBRLCK    4    /* Non-blocking lock for read only */
  22.  
  23. #ifndef    NO_OLDNAMES
  24. #define    LK_UNLCK    _LK_UNLCK
  25. #define    LK_LOCK        _LK_LOCK
  26. #define    LK_NBLCK    _LK_NBLCK
  27. #define    LK_RLCK        _LK_RLCK
  28. #define    LK_NBRLCK    _LK_NBRLCK
  29. #endif    /* Not NO_OLDNAMES */
  30.  
  31. #endif    /* Not _LOCKING_H_ */
  32.