kms.library: Fix wrong LVO number
[AROS.git] / rom / dos / namefromfh.c
blob60eb1d3cbd881eab654fcbfdc9abd4b29196f7da
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Retrieve the full pathname from a filehandle.
6 Lang: english
7 */
8 #include <proto/exec.h>
9 #include "dos_intern.h"
11 #include <aros/debug.h>
13 BOOL namefrom_internal(struct DosLibrary *DOSBase, BPTR lock, STRPTR buffer, LONG length, BOOL filehandle);
15 /*****************************************************************************
17 NAME */
18 #include <proto/dos.h>
20 AROS_LH3(BOOL, NameFromFH,
22 /* SYNOPSIS */
23 AROS_LHA(BPTR, lock, D1),
24 AROS_LHA(STRPTR, buffer, D2),
25 AROS_LHA(LONG, length, D3),
27 /* LOCATION */
28 struct DosLibrary *, DOSBase, 68, Dos)
31 FUNCTION
32 Get the full path name associated with file-handle into a
33 user supplied buffer.
35 INPUTS
36 fh - File-handle to file or directory.
37 buffer - Buffer to fill. Contains a NUL terminated string if
38 all went well.
39 length - Size of the buffer in bytes.
41 RESULT
42 !=0 if all went well, 0 in case of an error. IoErr() will
43 give additional information in that case.
45 *****************************************************************************/
46 /*AROS alias NameFromFH NameFromLock */
48 AROS_LIBFUNC_INIT
50 return namefrom_internal(DOSBase, lock, buffer, length, TRUE);
52 AROS_LIBFUNC_EXIT