Minor fixes to comments.
[AROS.git] / rom / dos / examinefh.c
blob4702b1a78eba14a3d36fd3e4a9c70344e33e7124
1 /*
2 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: dos.library function ExamineFH().
6 Lang: English
7 */
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 /*****************************************************************************
17 NAME */
18 #include <proto/dos.h>
20 AROS_LH2(BOOL, ExamineFH,
22 /* SYNOPSIS */
23 AROS_LHA(BPTR, lock, D1),
24 AROS_LHA(struct FileInfoBlock *, fib, D2),
26 /* LOCATION */
27 struct DosLibrary *, DOSBase, 65, Dos)
29 FUNCTION
31 INPUTS
33 RESULT
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
43 INTERNALS
46 AROS_LIBFUNC_INIT
48 /* Get pointer to filehandle */
49 struct FileHandle *fh = BADDR(lock);
50 BOOL ret;
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));
54 if (ret) {
55 fixfib(fib);
56 D(bug("[ExamineFH] '%s'\n", fib->fib_FileName));
59 return ret;
61 AROS_LIBFUNC_EXIT
62 } /* ExamineFH */