diff options
author | Pedro Alves <palves@redhat.com> | 2017-02-17 01:26:12 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2017-02-17 01:26:12 +0000 |
commit | c7c3d11bead272b718bade379e3441ff239bbd16 (patch) | |
tree | a6b92625643c23692755fe0625947b56e5fe82fe /bfd/bfdio.c | |
parent | 4265548c65907f095e887148f61af4813b106737 (diff) | |
download | gdb-c7c3d11bead272b718bade379e3441ff239bbd16.zip gdb-c7c3d11bead272b718bade379e3441ff239bbd16.tar.gz gdb-c7c3d11bead272b718bade379e3441ff239bbd16.tar.bz2 |
bfd: Rename real_{ftell, fseek, fopen}
Give these bfd-internal symbols with external linkage a _bfd_ prefix
to avoid collisions in the global symbol namespace.
bfd/ChangeLog:
2017-02-17 Pedro Alves <palves@redhat.com>
* bfdio.c (real_ftell): Rename to ...
(_bfd_real_ftell): ... this.
(real_fseek): Rename to ...
(_bfd_real_fseek): ... this.
(real_fopen): Rename to ...
(_bfd_real_fopen): ... this.
* libbfd-in.h (real_ftell): Rename to ...
(_bfd_real_ftell): ... this.
(real_fseek): Rename to ...
(_bfd_real_fseek): ... this.
(real_fopen): Rename to ...
(_bfd_real_fopen): ... this.
* cache.c, dwarf2.c, opncls.c: Adjust all callers.
* libbfd.h: Regenerate.
Diffstat (limited to 'bfd/bfdio.c')
-rw-r--r-- | bfd/bfdio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/bfdio.c b/bfd/bfdio.c index e73acdf..792ccda 100644 --- a/bfd/bfdio.c +++ b/bfd/bfdio.c @@ -41,7 +41,7 @@ #endif file_ptr -real_ftell (FILE *file) +_bfd_real_ftell (FILE *file) { #if defined (HAVE_FTELLO64) return ftello64 (file); @@ -53,7 +53,7 @@ real_ftell (FILE *file) } int -real_fseek (FILE *file, file_ptr offset, int whence) +_bfd_real_fseek (FILE *file, file_ptr offset, int whence) { #if defined (HAVE_FSEEKO64) return fseeko64 (file, offset, whence); @@ -82,7 +82,7 @@ close_on_exec (FILE *file) } FILE * -real_fopen (const char *filename, const char *modes) +_bfd_real_fopen (const char *filename, const char *modes) { #ifdef VMS char *vms_attr; |