try to make sure compiler/include/mmakefile is always refreshed correctly.
[AROS.git] / rom / dos / unlockdoslist.c
blob0e2b5d6582473f3a772bb3afe2b0c97b47519610
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <aros/debug.h>
9 #include <proto/exec.h>
10 #include "dos_intern.h"
12 /*****************************************************************************
14 NAME */
15 #include <proto/dos.h>
17 AROS_LH1(void, UnLockDosList,
19 /* SYNOPSIS */
20 AROS_LHA(ULONG, flags, D1),
22 /* LOCATION */
23 struct DosLibrary *, DOSBase, 110, Dos)
25 /* FUNCTION
26 Frees a lock on the dos lists given by LockDosList().
28 INPUTS
29 flags - the same value as given to LockDosList().
31 RESULT
33 NOTES
35 EXAMPLE
37 BUGS
39 SEE ALSO
41 INTERNALS
43 *****************************************************************************/
45 AROS_LIBFUNC_INIT
47 struct DosInfo *di = BADDR(DOSBase->dl_Root->rn_Info);
49 D(bug("UnLockDosList: flags = $%lx\n", flags));
51 if (flags & LDF_ALL)
52 ReleaseSemaphore(&di->di_DevLock);
54 if (flags & LDF_ENTRY)
55 ReleaseSemaphore(&di->di_EntryLock);
57 if (flags & LDF_DELETE)
58 ReleaseSemaphore(&di->di_DeleteLock);
60 /* This came from MorphOS. Left for reference.
61 Permit(); */
63 AROS_LIBFUNC_EXIT
64 } /* UnLockDosList */