2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
5 Function to get a dos.library file handle associated with given file
11 /* FIXME: Do we need this function ? */
13 /*****************************************************************************
17 int __get_default_file (
24 Gets dos.library file handle associated with a given file descriptor.
27 file_descriptor - the File Descriptor you wish to obtain the associated
29 file_handle - Pointer to store the associated file handle.
32 !=0 on error, 0 on success.
35 This function is not a part of the ISO C standard, it comes from clib2
36 project and was implemented to make porting of abc-shell easier.
37 Function should not be used in new code.
47 ******************************************************************************/
52 file_descriptor
< 0 ||
53 (fd
= __getfdesc(file_descriptor
)) == NULL
57 *(BPTR
*)file_handle
= fd
->fcb
->handle
;