diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-02-11 23:23:20 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-02-11 23:23:20 +0000 |
commit | 7c1927339f8310bab476aaa4e74e20dbf1cd3deb (patch) | |
tree | 555ca47d80702ec8ffb6e7892410ba7baa3d4035 /bfd/libbfd.h | |
parent | 63338fd920b3e8eaad113e0047eff7caaf14f67c (diff) | |
download | gdb-7c1927339f8310bab476aaa4e74e20dbf1cd3deb.zip gdb-7c1927339f8310bab476aaa4e74e20dbf1cd3deb.tar.gz gdb-7c1927339f8310bab476aaa4e74e20dbf1cd3deb.tar.bz2 |
2004-02-11 Andrew Cagney <cagney@redhat.com>
* bfd-in.h: Update copyright.
(bfd_tell): Change return type to file_ptr.
* bfd-in2.h: Re-generate.
* cache.c: Update copyright.
(bfd_cache_lookup_worker): Use real_fseek, do not cast offset
parameter.
(close_one): Use real_ftell.
* bfdio.c: Update copyright.
(real_ftell, real_fseek): New functions.
(bfd_tell): Use real_fseek and real_ftell, change return type to
file_ptr.
(bfd_seek): Use real_ftell and real_fseek, change type of
file_position to a file_ptr.
* libbfd-in.h: Update copyright.
(real_ftell, real_fseek): Declare.
* libbfd.h: Re-generate.
Diffstat (limited to 'bfd/libbfd.h')
-rw-r--r-- | bfd/libbfd.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/bfd/libbfd.h b/bfd/libbfd.h index 40e1b78..62043f3 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -5,9 +5,10 @@ /* libbfd.h -- Declarations used by bfd library *implementation*. (This include file is not for users of the library.) - Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002, 2003 - Free Software Foundation, Inc. + + Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, + 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + Written by Cygnus Support. This file is part of BFD, the Binary File Descriptor library. @@ -599,6 +600,11 @@ extern void _bfd_abort #undef abort #define abort() _bfd_abort (__FILE__, __LINE__, __PRETTY_FUNCTION__) +/* Manipulate a system FILE but using BFD's "file_ptr", rather than + the system "off_t" or "off64_t", as the offset. */ +extern file_ptr real_ftell (FILE *file); +extern int real_fseek (FILE *file, file_ptr offset, int whence); + FILE * bfd_cache_lookup_worker (bfd *); |