2 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
5 Desc: dos.library function Examine().
9 #include <aros/debug.h>
10 #include <exec/memory.h>
11 #include <proto/exec.h>
12 #include "dos_intern.h"
14 /*****************************************************************************
17 #include <proto/dos.h>
19 AROS_LH2(LONG
, Examine
,
22 AROS_LHA(BPTR
, lock
, D1
),
23 AROS_LHA(struct FileInfoBlock
*, fib
, D2
),
26 struct DosLibrary
*, DOSBase
, 17, Dos
)
30 Fill in a FileInfoBlock structure concerning a file or directory
31 associated with a particular lock.
35 lock -- lock to examine
36 fib -- FileInfoBlock where the result of the examination is stored
40 A boolean telling whether the operation was successful or not.
44 FileInfoBlocks should be allocated with AllocDosObject(). You may make
45 a copy of the FileInfoBlock but, however, this copy may NOT be passed
54 Lock(), UnLock(), ExNext(), AllocDosObject(), ExAll(), <dos/dos.h>
58 *****************************************************************************/
63 struct FileLock
*fl
= BADDR(lock
);
66 ASSERT_VALID_PTR_OR_NULL(BADDR(lock
));
67 ASSERT_VALID_FILELOCK(lock
);
69 D(bug("[Examine] lock=%x fib=%x\n", fl
, fib
));
70 ret
= dopacket2(DOSBase
, NULL
, fl
? fl
->fl_Task
: GetFileSysTask(), ACTION_EXAMINE_OBJECT
, lock
, MKBADDR(fib
));
73 D(bug("[Examine] '%s'\n", fib
->fib_FileName
));