2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Retrieve the full pathname from a filehandle.
8 #include <proto/exec.h>
9 #include <dos/filesystem.h>
10 #include "dos_intern.h"
12 #include <aros/debug.h>
14 BOOL
namefrom_internal(struct DosLibrary
*DOSBase
, BPTR lock
, STRPTR buffer
, LONG length
, BOOL filehandle
);
16 /*****************************************************************************
19 #include <proto/dos.h>
21 AROS_LH3(BOOL
, NameFromFH
,
24 AROS_LHA(BPTR
, lock
, D1
),
25 AROS_LHA(STRPTR
, buffer
, D2
),
26 AROS_LHA(LONG
, length
, D3
),
29 struct DosLibrary
*, DOSBase
, 68, Dos
)
33 Get the full path name associated with file-handle into a
37 fh - File-handle to file or directory.
38 buffer - Buffer to fill. Contains a NUL terminated string if
40 length - Size of the buffer in bytes.
43 !=0 if all went well, 0 in case of an error. IoErr() will
44 give additional information in that case.
46 *****************************************************************************/
47 /*AROS alias NameFromFH NameFromLock */
51 return namefrom_internal(DOSBase
, lock
, buffer
, length
, TRUE
);