2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 #include <proto/exec.h>
9 #include "dos_intern.h"
11 /*****************************************************************************
14 #include <proto/dos.h>
16 AROS_LH1(struct DosList
*, AttemptLockDosList
,
19 AROS_LHA(ULONG
, flags
, D1
),
22 struct DosLibrary
*, DOSBase
, 111, Dos
)
25 Tries to get a lock on some of the dos lists. If all went
26 well a handle is returned that can be used for FindDosEntry().
27 Don't try to busy wait until the lock can be granted - use
28 LockDosList() instead.
31 flags -- what lists to lock
34 Handle to the dos list or NULL. This is not a direct pointer
35 to the first list element but to a pseudo element instead.
47 *****************************************************************************/
50 AROS_LIBBASE_EXT_DECL(struct DosLibrary
*,DOSBase
)
54 if(!AttemptSemaphore(&DOSBase
->dl_DosListLock
))
59 if(!AttemptSemaphoreShared(&DOSBase
->dl_DosListLock
))
63 return (struct DosList
*)&DOSBase
->dl_DevInfo
;
66 } /* AttemptLockDosList */