[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.14.1.1 bfd_fopen

Synopsis
 
bfd *bfd_fopen (const char *filename, const char *target,
    const char *mode, int fd);
Description
Open the file filename with the target target. Return a pointer to the created BFD. If fd is not -1, then fdopen is used to open the file; otherwise, fopen is used. mode is passed directly to fopen or fdopen.

Calls bfd_find_target, so target is interpreted as by that function.

The new BFD is marked as cacheable iff fd is -1.

If NULL is returned then an error has occured. Possible errors are bfd_error_no_memory, bfd_error_invalid_target or system_call error.



This document was generated by system on July, 22 2007 using texi2html