2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Function to get a dos.library file handle associated with given file
9 #include "__arosc_privdata.h"
12 /*****************************************************************************
16 int __get_default_file (
23 Gets dos.library file handle associated with a given file descriptor.
26 file_descriptor - the File Descriptor you wish to obtain the associated
28 file_handle - Pointer to store the associated file handle.
31 !=0 on error, 0 on success.
34 This function is not a part of the ISO C standard, it comes from clib2
35 project and was implemented to make porting of abc-shell easier.
45 ******************************************************************************/
50 file_descriptor
< 0 ||
51 (fd
= __getfdesc(file_descriptor
)) == NULL
55 *(BPTR
*)file_handle
= (BPTR
) fd
->fcb
->fh
;