2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
9 #include "dos_intern.h"
10 #include <proto/exec.h>
12 /*****************************************************************************
15 #include <proto/dos.h>
17 AROS_LH3(BOOL
, UnLockRecord
,
20 AROS_LHA(BPTR
, fh
, D1
),
21 AROS_LHA(ULONG
, offset
, D2
),
22 AROS_LHA(ULONG
, length
, D3
),
25 struct DosLibrary
*, DOSBase
, 47, Dos
)
29 Release a lock made with LockRecord().
33 fh -- filehandle the lock was made on
34 offset -- starting position of the lock
35 length -- length of the record in bytes
41 The length and offset must match the corresponding LockRecord()
50 LockRecord(), UnLockRecords()
54 *****************************************************************************/
59 struct FileHandle
*fileH
= BADDR(fh
);
66 status
= dopacket3(DOSBase
, NULL
, fileH
->fh_Type
, ACTION_FREE_RECORD
, fileH
->fh_Arg1
, offset
, length
);