2 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
5 Desc: dos.library function ExamineFH().
9 #include <aros/debug.h>
10 #include <exec/memory.h>
11 #include <proto/exec.h>
12 #include <dos/exall.h>
13 #include "dos_intern.h"
15 /*****************************************************************************
18 #include <proto/dos.h>
20 AROS_LH2(BOOL
, ExamineFH
,
23 AROS_LHA(BPTR
, lock
, D1
),
24 AROS_LHA(struct FileInfoBlock
*, fib
, D2
),
27 struct DosLibrary
*, DOSBase
, 65, Dos
)
48 /* Get pointer to filehandle */
49 struct FileHandle
*fh
= BADDR(lock
);
52 D(bug("[ExamineFH] fh=%x fib=%x\n", fh
, fib
));
53 ret
= dopacket2(DOSBase
, NULL
, fh
->fh_Type
, ACTION_EXAMINE_FH
, fh
->fh_Arg1
, MKBADDR(fib
));
56 D(bug("[ExamineFH] '%s'\n", fib
->fib_FileName
));