diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-02-16 18:46:40 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-02-16 18:46:40 +0000 |
commit | 2935bcee1071c6259db9ac175312534bad57293e (patch) | |
tree | 4ed8f40e3ae33f27a45afdb276add2e0d8ffa13a /bfd/bfd-in.h | |
parent | 842432d42fe6b95fe5476ad6e9f1eec26b0f0d55 (diff) | |
download | gdb-2935bcee1071c6259db9ac175312534bad57293e.tar.gz |
2004-02-16 Andrew Cagney <cagney@redhat.com>
* bfd-in.h (file_ptr, ufile_ptr): Configure type using
@bfd_file_ptr@.
* bfd-in2.h: Re-generate.
Diffstat (limited to 'bfd/bfd-in.h')
-rw-r--r-- | bfd/bfd-in.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index cf75f637581..30bc844b1b8 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -160,16 +160,10 @@ typedef unsigned long bfd_size_type; #endif /* not BFD64 */ -/* A pointer to a position in a file. */ -/* FIXME: This should be using off_t from <sys/types.h>. - For now, try to avoid breaking stuff by not including <sys/types.h> here. - This will break on systems with 64-bit file offsets (e.g. 4.4BSD). - Probably the best long-term answer is to avoid using file_ptr AND off_t - in this header file, and to handle this in the BFD implementation - rather than in its interface. */ -/* typedef off_t file_ptr; */ -typedef bfd_signed_vma file_ptr; -typedef bfd_vma ufile_ptr; +/* An offset into a file. BFD always uses the largest possible offset + based on the build time availability of fseek, fseeko, or fseeko64. */ +typedef @bfd_file_ptr@ file_ptr; +typedef unsigned @bfd_file_ptr@ ufile_ptr; extern void bfd_sprintf_vma (bfd *, char *, bfd_vma); extern void bfd_fprintf_vma (bfd *, void *, bfd_vma); |