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-in.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-in.h')
-rw-r--r-- | bfd/libbfd-in.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h index 0ec808d..10cafef 100644 --- a/bfd/libbfd-in.h +++ b/bfd/libbfd-in.h @@ -1,8 +1,9 @@ /* 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. @@ -594,6 +595,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 *); |