some fixes to accented characters
[tangerine.git] / rom / dos / unlockrecords.c
blob82904c9db0c7cf64fc6b4a07da07298020b7340a
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
8 #include "dos_intern.h"
10 /*****************************************************************************
12 NAME */
13 #include <dos/record.h>
14 #include <proto/dos.h>
16 AROS_LH1(BOOL, UnLockRecords,
18 /* SYNOPSIS */
19 AROS_LHA(struct RecordLock *, recArray, D1),
21 /* LOCATION */
22 struct DosLibrary *, DOSBase, 48, Dos)
24 /* FUNCTION
26 Release an array of record locks obtained with LockRecords().
28 INPUTS
30 recArray -- array of record locks (previously locked with LockRecords())
32 RESULT
34 NOTES
36 A array of records may not be modified when records are locked.
38 EXAMPLE
40 BUGS
42 SEE ALSO
44 LockRecords()
46 INTERNALS
48 *****************************************************************************/
50 AROS_LIBFUNC_INIT
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)
59 return success;
62 /* everything OK -> advance to the next entry */
63 recArray++;
66 return DOSTRUE;
68 AROS_LIBFUNC_EXIT
69 } /* UnLockRecords */