2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 #include <proto/arossupport.h>
8 #include <proto/utility.h>
10 #include <aros/system.h>
13 //#define dol_OldName dol_Name
15 #include <dos/dosextens.h>
16 #include <exec/types.h>
17 #include <utility/utility.h>
19 #define BUFFER_SIZE 100
21 /*****************************************************************************
36 There is a need in file/directory processing where an application
37 may need to determine whether a path is just a volume/device or
42 Name - The path to test.
44 Flags - Any combination of the following:
52 Boolean True or False.
56 Requires the programmer to open the utility.library and initialise
59 In future releases the buffer size will be set via a taglist.
67 Success = IsDosEntryA("Work:", LDF_VOLUMES)
83 27-Jul-1997 laguest Initial inclusion into the AROS tree
85 ******************************************************************************/
87 struct DosList
*DList
;
92 char Buffer
[BUFFER_SIZE
+ 1];
96 Position
= SplitName(Name
, ':', &Buffer
[0], 0, BUFFER_SIZE
+ 1);
97 if (Position
!= -1 && Name
[Position
] == NULL
)
99 DList
= AttemptLockDosList(Flags
| LDF_READ
);
102 DList
= NextDosEntry(DList
, Flags
);
103 while (DList
!= NULL
&& ReturnValue
== FALSE
)
105 DLName
= AROS_BSTR_ADDR(DList
->dol_OldName
);
107 Success
= Strnicmp(DLName
, &Buffer
[0], Position
- 1);
113 DList
= NextDosEntry(DList
, Flags
);
116 UnLockDosList(Flags
| LDF_READ
);
120 return (ReturnValue
);