2 Copyright © 1995-2008, 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 ******************************************************************************/
48 file_descriptor
< 0 ||
49 file_descriptor
> __numslots
||
50 !__fd_array
[file_descriptor
]
54 *(BPTR
*)file_handle
= (BPTR
) __fd_array
[file_descriptor
]->fcb
->fh
;