forwarding a patch that uses the fetch macros to pull in acpica and build it (NicJA).
[AROS.git] / compiler / include / dos / record.h
blob1099988fe42c60726976ec6b4caf8484bec59ff0
1 #ifndef DOS_RECORD_H
2 #define DOS_RECORD_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Record structures and definitions.
9 Lang: english
12 #ifndef DOS_DOS_H
13 # include <dos/dos.h>
14 #endif
17 /* LockRecord() and LockRecords() locking modes. EXCLUSIVE modes mean that
18 nobody else is allowed to lock a specific record, which is allowed, when
19 locking with SHARED mode. When using IMMED modes, the timeout is ignored. */
20 #define REC_EXCLUSIVE 0
21 #define REC_EXCLUSIVE_IMMED 1
22 #define REC_SHARED 2
23 #define REC_SHARED_IMMED 3
26 /* Structure as passed to LockRecords() and UnLockRecords(). */
27 struct RecordLock64
29 BPTR rec_FH; /* (struct FileHandle *) The file to get the current
30 record from. */
31 UQUAD rec_Offset; /* The offset, the current record should start. */
32 UQUAD rec_Length; /* The length of the current record. */
33 ULONG rec_Mode; /* The mode od locking (see above). */
36 struct RecordLock32
38 BPTR rec_FH; /* (struct FileHandle *) The file to get the current
39 record from. */
40 ULONG rec_Offset; /* The offset, the current record should start. */
41 ULONG rec_Length; /* The length of the current record. */
42 ULONG rec_Mode; /* The mode od locking (see above). */
45 #if (__DOS64)
46 #define RecordLock RecordLock64
47 #else
48 #define RecordLock RecordLock32
49 #endif
51 #endif /* DOS_RECORD_H */