LOCKING.LST 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. Listing:
  2. 1 (* Release 3.10 *)
  3. 2 (*-------------------------------------------------------------------------*
  4. 3 * *
  5. 4 * LOCKING.DEF - Modula-2 interface to LOCKING.H *
  6. 5 * *
  7. 6 * COPYRIGHT (C) 1989..1992 Clarion Software Corporation. *
  8. 7 * All Rights Reserved *
  9. 8 * *
  10. 9 *--------------------------------------------------------------------------*)
  11. 10
  12. 11 (*# project("#set tsc='on'") *)
  13. 12 (*# call(o_a_size=>off, o_a_copy=>off, c_conv=>on, result_optional=>on) *)
  14. 13 (*# module(implementation=>off, init_code=>off) *)
  15. 14 (*# name(prefix=>c) *)
  16. 15
  17. 16
  18. 17 DEFINITION MODULE locking;
  19. 18
  20. 19 CONST
  21. 20 LK_UNLCK = 0; (* unlock the file region *)
  22. 21 LK_LOCK = 1; (* lock the file region *)
  23. 22 LK_NBLCK = 2; (* non-blocking lock *)
  24. 23 LK_RLCK = 3; (* lock for writing *)
  25. 24 LK_NBRLCK = 4; (* non-blocking lock for writing *)
  26. 25
  27. 26 END locking.
  28. ***** ^ not supported yet
  29. 1 error