2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include "dos_intern.h"
10 /*****************************************************************************
13 #include <dos/record.h>
14 #include <proto/dos.h>
16 AROS_LH1(BOOL
, UnLockRecords
,
19 AROS_LHA(struct RecordLock
*, recArray
, D1
),
22 struct DosLibrary
*, DOSBase
, 48, Dos
)
26 Release an array of record locks obtained with LockRecords().
30 recArray -- array of record locks (previously locked with LockRecords())
36 A array of records may not be modified when records are locked.
48 *****************************************************************************/
52 while (NULL
!= BADDR(recArray
->rec_FH
))
54 LONG success
= UnLockRecord(recArray
->rec_FH
, recArray
->rec_Offset
,
55 recArray
->rec_Length
);
57 if (success
!= DOSTRUE
)
62 /* everything OK -> advance to the next entry */