2 Copyright © 1995-2007, 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().
44 04-06-07 sonic - imported back from MorphOS source code
46 29-10-95 digulla automatically created from
47 dos_lib.fd and clib/dos_protos.h
49 *****************************************************************************/
53 struct DosInfo
*di
= BADDR(DOSBase
->dl_Root
->rn_Info
);
55 D(bug("UnLockDosList: flags = $%lx\n", flags
));
58 ReleaseSemaphore(&di
->di_DevLock
);
60 if (flags
& LDF_ENTRY
)
61 ReleaseSemaphore(&di
->di_EntryLock
);
63 if (flags
& LDF_DELETE
)
64 ReleaseSemaphore(&di
->di_DeleteLock
);
66 /* This came from MorphOS. Left for reference.