2 Copyright © 1995-2013, 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
)
28 Release a lock made with LockRecord().
31 fh - filehandle the lock was made on
32 offset - starting position of the lock
33 length - length of the record in bytes
38 The length and offset must match the corresponding LockRecord()
46 LockRecord(), UnLockRecords()
50 *****************************************************************************/
55 struct FileHandle
*fileH
= BADDR(fh
);
62 status
= dopacket3(DOSBase
, NULL
, fileH
->fh_Type
, ACTION_FREE_RECORD
, fileH
->fh_Arg1
, offset
, length
);