daily update
[deliverable/binutils-gdb.git] / bfd / cache.c
index ef4a006b40e1bd6b6caf215bcb28273a3e9cf0df..6db6a6b4d56dbd5ffc7fe385444f1c4a3682a372 100644 (file)
@@ -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;
This page took 0.023736 seconds and 4 git commands to generate.