2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <exec/memory.h>
9 #include <proto/exec.h>
10 #include <dos/dosextens.h>
11 #include <dos/exall.h>
12 #include "dos_intern.h"
14 /*****************************************************************************
17 #include <proto/dos.h>
19 AROS_LH5(void, ExAllEnd
,
22 AROS_LHA(BPTR
, lock
, D1
),
23 AROS_LHA(struct ExAllData
*, buffer
, D2
),
24 AROS_LHA(LONG
, size
, D3
),
25 AROS_LHA(LONG
, data
, D4
),
26 AROS_LHA(struct ExAllControl
*, control
, D5
),
29 struct DosLibrary
*, DOSBase
, 165, Dos
)
33 Stop an ExAll() operation before returning ERROR_NO_MORE_ENTRIES.
37 The inputs should correspond to the inputs for the ExAll() function.
39 lock -- lock on the directory that is being examined
40 buffer -- buffer for data returned
41 size -- size of 'buffer' in bytes
42 type -- type of data to be returned
43 control -- control data structure
49 The control data structure must have been allocated with AllocDosObject().
57 ExAll(), AllocDosObject()
61 *****************************************************************************/
65 if (((struct InternalExAllControl
*)control
)->fib
== NULL
)
67 /* Get pointer to filehandle */
68 struct FileLock
*fl
= (struct FileLock
*)BADDR(lock
);
69 dopacket5(DOSBase
, NULL
, fl
->fl_Task
, ACTION_EXAMINE_ALL_END
, (SIPTR
)lock
, (IPTR
)buffer
, (IPTR
)size
, (IPTR
)data
, (IPTR
)control
);
73 control
->eac_LastKey
= 0;