home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / Sys / locking.h next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  619 b   |  27 lines

  1. /*  locking.h
  2.  
  3.     Definitions for mode parameter of locking() function.
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 10.0
  9.  *
  10.  *      Copyright (c) 1990, 2000 by Inprise Corporation
  11.  *      All Rights Reserved.
  12.  *
  13.  */
  14.  
  15. /* $Revision:   9.0  $ */
  16.  
  17. #if !defined(__LOCKING_H)
  18. #define __LOCKING_H
  19.  
  20. #define LK_UNLCK  0     /* unlock file region */
  21. #define LK_LOCK   1     /* lock file region, try for 10 seconds */
  22. #define LK_NBLCK  2     /* lock file region, don't block */
  23. #define LK_RLCK   3     /* same as LK_LOCK */
  24. #define LK_NBRLCK 4     /* same as LK_NBLCK */
  25.  
  26. #endif  /* __LOCKING_H */
  27.