aboutsummaryrefslogtreecommitdiff
path: root/bfd/cache.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2005-11-03 16:06:11 +0000
committerDaniel Jacobowitz <drow@false.org>2005-11-03 16:06:11 +0000
commit2e6f4fae0724d2926e46be477cd12c772d7e79d9 (patch)
tree91e79b112cb26de09486cf4ece65091202b81d4e /bfd/cache.c
parent6f2942edf01d584dcc76b960a50de9f67f13e7c3 (diff)
downloadfsf-binutils-gdb-2e6f4fae0724d2926e46be477cd12c772d7e79d9.zip
fsf-binutils-gdb-2e6f4fae0724d2926e46be477cd12c772d7e79d9.tar.gz
fsf-binutils-gdb-2e6f4fae0724d2926e46be477cd12c772d7e79d9.tar.bz2
* configure.in: Check for fopen64.
* libbfd-in.h (real_fopen): New prototype. * configure, config.in, libbfd.h: Regenerated. * bfdio.c (real_fopen): New function. * opncls.c (bfd_fopen, bfd_fill_in_gnu_debuglink_section): Use it. * cache.c (bfd_open_file): Likewise.
Diffstat (limited to 'bfd/cache.c')
-rw-r--r--bfd/cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/cache.c b/bfd/cache.c
index ef4a006..6db6a6b 100644
--- a/bfd/cache.c
+++ b/bfd/cache.c
@@ -476,15 +476,15 @@ bfd_open_file (bfd *abfd)
{
case read_direction:
case no_direction:
- abfd->iostream = (PTR) fopen (abfd->filename, FOPEN_RB);
+ abfd->iostream = (PTR) real_fopen (abfd->filename, FOPEN_RB);
break;
case both_direction:
case write_direction:
if (abfd->opened_once)
{
- abfd->iostream = (PTR) fopen (abfd->filename, FOPEN_RUB);
+ abfd->iostream = (PTR) real_fopen (abfd->filename, FOPEN_RUB);
if (abfd->iostream == NULL)
- abfd->iostream = (PTR) fopen (abfd->filename, FOPEN_WUB);
+ abfd->iostream = (PTR) real_fopen (abfd->filename, FOPEN_WUB);
}
else
{
@@ -514,7 +514,7 @@ bfd_open_file (bfd *abfd)
if (stat (abfd->filename, &s) == 0 && s.st_size != 0)
unlink_if_ordinary (abfd->filename);
#endif
- abfd->iostream = (PTR) fopen (abfd->filename, FOPEN_WUB);
+ abfd->iostream = (PTR) real_fopen (abfd->filename, FOPEN_WUB);
abfd->opened_once = TRUE;
}
break;