arch/ppc-sam440: oops - found my missing KrnCli/KrnSti implementations
[AROS.git] / rom / dos / info.c
blob0c3d93b947a2bbd2a6400b714e8d837fdd398c88
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
8 #include <proto/exec.h>
10 #include "dos_intern.h"
12 /*****************************************************************************
14 NAME */
16 #include <proto/dos.h>
18 AROS_LH2(LONG, Info,
20 /* SYNOPSIS */
21 AROS_LHA(BPTR , lock, D1),
22 AROS_LHA(struct InfoData *, parameterBlock, D2),
24 /* LOCATION */
25 struct DosLibrary *, DOSBase, 19, Dos)
27 /* FUNCTION
29 Get information about a volume in the system.
31 INPUTS
33 lock -- a lock on any file on the volume for which information
34 should be supplied, or 0
35 parameterBlock -- pointer to an InfoData structure
37 RESULT
39 Boolean indicating success or failure. If TRUE (success) the
40 'parameterBlock' is filled with information on the volume.
42 NOTES
43 Supplying a lock of 0 will return InfoData from the task
44 that is returned from GetFileSysTask().
45 (Usually the boot volumes' filesystem "SYS:")
47 EXAMPLE
49 BUGS
51 SEE ALSO
53 <dos/dos.h>
55 INTERNALS
57 *****************************************************************************/
59 AROS_LIBFUNC_INIT
61 struct FileLock *fl = (struct FileLock *)BADDR(lock);
62 LONG status;
64 status = dopacket2(DOSBase, NULL, fl ? fl->fl_Task : GetFileSysTask(), ACTION_INFO, lock, MKBADDR(parameterBlock));
65 return status;
67 AROS_LIBFUNC_EXIT
68 } /* Info */