home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / hsys.z / locking.h next >
C/C++ Source or Header  |  1996-07-24  |  917b  |  34 lines

  1. /*
  2.  *  sys/locking.h    Flags for locking() function
  3.  *
  4.  *  Copyright by WATCOM International Corp. 1988-1996.  All rights reserved.
  5.  */
  6. #ifndef __LOCKING_H_INCLUDED
  7. #define __LOCKING_H_INCLUDED
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12. #ifndef _COMDEF_H_INCLUDED
  13.  #include <_comdef.h>
  14. #endif
  15.  
  16. #define _LK_UNLCK   0    /* unlock region of a file */
  17. #define LK_UNLCK    _LK_UNLCK
  18. #define _LK_LOCK    1    /* lock a region of a file */
  19. #define LK_LOCK     _LK_LOCK
  20. #define _LK_NBLCK   2    /* non-blocking lock */
  21. #define LK_NBLCK    _LK_NBLCK
  22. #define _LK_RLCK    3    /* lock for writing */
  23. #define LK_RLCK        _LK_RLCK
  24. #define _LK_NBRLCK  4    /* non-blocking lock for writing */
  25. #define LK_NBRLCK   _LK_NBRLCK
  26.  
  27. _WCRTLINK extern int locking(int __handle,int __mode,unsigned long __nbyte);
  28. _WCRTLINK extern int _locking(int __handle,int __mode,unsigned long __nbyte);
  29.  
  30. #ifdef __cplusplus
  31. };
  32. #endif
  33. #endif
  34.