home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / useful / os-include / dos / record.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-24  |  697 b   |  35 lines

  1. #ifndef DOS_RECORD_H
  2. #define DOS_RECORD_H
  3. /*
  4. **
  5. **    $VER: record.h 36.5 (12.07.90)
  6. **    Includes Release 39.108
  7. **
  8. **    include file for record locking
  9. **
  10. **    (C) Copyright 1989-1992 Commodore-Amiga, Inc.
  11. **        All Rights Reserved
  12. **
  13. */
  14.  
  15. #ifndef DOS_DOS_H
  16. #include "dos/dos.h"
  17. #endif
  18.  
  19. /* Modes for LockRecord/LockRecords() */
  20. #define REC_EXCLUSIVE        0
  21. #define REC_EXCLUSIVE_IMMED    1
  22. #define REC_SHARED        2
  23. #define REC_SHARED_IMMED    3
  24.  
  25. /* struct to be passed to LockRecords()/UnLockRecords() */
  26.  
  27. struct RecordLock {
  28.     BPTR    rec_FH;        /* filehandle */
  29.     ULONG    rec_Offset;    /* offset in file */
  30.     ULONG    rec_Length;    /* length of file to be locked */
  31.     ULONG    rec_Mode;    /* Type of lock */
  32. };
  33.  
  34. #endif /* DOS_RECORD_H */
  35.