2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
8 #include <aros/debug.h>
9 #include <proto/exec.h>
10 #include "dos_intern.h"
12 /*****************************************************************************
15 #include <proto/dos.h>
17 AROS_LH1(void, UnLockDosList
,
20 AROS_LHA(ULONG
, flags
, D1
),
23 struct DosLibrary
*, DOSBase
, 110, Dos
)
26 Frees a lock on the dos lists given by LockDosList().
29 flags - the same value as given to LockDosList().
43 *****************************************************************************/
47 struct DosInfo
*di
= BADDR(DOSBase
->dl_Root
->rn_Info
);
49 D(bug("UnLockDosList: flags = $%lx\n", flags
));
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.