2 Copyright © 1995-2013, 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
)
25 Release an array of record locks obtained with LockRecords().
28 recArray - array of record locks (previously locked with LockRecords())
31 success - Boolean success indicator.
34 An array of records may not be modified when records are locked.
45 *****************************************************************************/
49 while (NULL
!= BADDR(recArray
->rec_FH
))
51 LONG success
= UnLockRecord(recArray
->rec_FH
, recArray
->rec_Offset
,
52 recArray
->rec_Length
);
54 if (success
!= DOSTRUE
)
59 /* everything OK -> advance to the next entry */