home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c495 / watcm951.arj / H_SYS.WPK / LOCKING.H next >
Encoding:
C/C++ Source or Header  |  1993-02-16  |  606 b   |  24 lines

  1. /*
  2.  *  sys/locking.h    Flags for locking() function
  3.  *
  4.  *  Copyright by WATCOM International Corp. 1988-1993.  All rights reserved.
  5.  */
  6. #ifndef __LOCKING_H_INCLUDED
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10.  
  11. #define LK_UNLCK    0    /* unlock region of a file */
  12. #define LK_LOCK     1    /* lock a region of a file */
  13. #define LK_NBLCK    2    /* non-blocking lock */
  14. #define LK_RLCK     3    /* lock for writing */
  15. #define LK_NBRLCK   4    /* non-blocking lock for writing */
  16.  
  17. int locking(int __handle,int __mode,unsigned long __nbyte);
  18.  
  19. #define __LOCKING_H_INCLUDED
  20. #ifdef __cplusplus
  21. };
  22. #endif
  23. #endif
  24.