2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <dos/dosextens.h>
9 #include <proto/utility.h>
11 /*****************************************************************************
14 #include <proto/dos.h>
16 AROS_LH1(LONG
, RemDosEntry
,
19 AROS_LHA(struct DosList
*, dlist
, D1
),
22 struct DosLibrary
*, DOSBase
, 112, Dos
)
25 Removes a given dos list entry from the dos list. Automatically
26 locks the list for writing.
29 dlist - pointer to dos list entry.
32 !=0 if all went well, 0 otherwise.
35 Since anybody who wants to use a device or volume node in the
36 dos list has to lock the list, filesystems may be called with
37 the dos list locked. So if you want to add a dos list entry
38 out of a filesystem don't just wait on the lock but serve all
39 incoming requests until the dos list is free instead.
49 *****************************************************************************/
57 dl
= LockDosList(LDF_ALL
| LDF_WRITE
);
61 if(dl
->dol_Next
== dlist
)
63 dl
->dol_Next
= dlist
->dol_Next
;
70 UnLockDosList(LDF_ALL
| LDF_WRITE
);