added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / compiler / include / dos / record.h
blob71448ee636402aff87dce750f3ad9477fd6c1a43
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 RecordLock
29 BPTR rec_FH; /* (struct FileHandle *) The file to get the current
30 record from. */
31 ULONG rec_Offset; /* The offset, the current record should start. */
32 ULONG rec_Length; /* The length of the current record. */
33 ULONG rec_Mode; /* The mode od locking (see above). */
36 #endif /* DOS_RECORD_H */