home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / famapi.zip / INCLUDE.ZIP / SYS / LOCKING.H < prev    next >
C/C++ Source or Header  |  1992-12-09  |  698b  |  23 lines

  1. //
  2. //        **************************************************************
  3. //         JdeBP C++ Library Routines      General Public Licence v1.00
  4. //            Copyright (c) 1991,1992     Jonathan de Boyne Pollard
  5. //        **************************************************************
  6. //
  7. //    MANDATORY FILE LOCKING (SYSTEM V)
  8. //
  9.  
  10. #if !defined(__STDDEF_H_INCLUDED)
  11. #include <_stddef.h>
  12. #endif
  13.  
  14. #if !defined(_SYS_LOCKING_H_INCLUDED)
  15.  
  16. #define LK_UNLCK    0    /* unlock the file region */
  17. #define LK_LOCK     1    /* lock the file region */
  18. #define LK_NBLCK    2    /* non-blocking lock */
  19. #define LK_RLCK     3    /* lock for writing */
  20. #define LK_NBRLCK    4    /* non-blocking lock for writing */
  21.  
  22. #define    _SYS_LOCKING_H_INCLUDED
  23. #endif