This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Tested on x86_64-unknown-linux-gnu. OK to apply?
2005-06-06 Mark Mitchell <mark@codesourcery.com>
* opncls.c (bfd_fopen): New API. (bfd_openr): Use it. (bfd_fdopenr): Likewise. * bfd-in2.h: Regenerated.
SYNOPSIS...
! bfd *bfd_fopen (const char *filename, const char *target,
! const char *mode, int fd);
DESCRIPTION
! Open the file @var{filename} with the target @var{target}.
! Return a pointer to the created BFD. If @var{fd} is not -1,
! then <<fdopen>> is used to open the file; otherwise, <<fopen>>
! is used. @var{mode} is passed directly to <<fopen>> or
! <<fdopen>>.
! if (strchr (mode, '+')) ! nbfd->direction = both_direction; ! else if (strchr (mode, 'r')) ! nbfd->direction = read_direction; ! else ! nbfd->direction = write_direction;
Cheers Nick
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |