2004-02-16 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Mon, 16 Feb 2004 18:46:40 +0000 (18:46 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 16 Feb 2004 18:46:40 +0000 (18:46 +0000)
* bfd-in.h (file_ptr, ufile_ptr): Configure type using
@bfd_file_ptr@.
* bfd-in2.h: Re-generate.

bfd/ChangeLog
bfd/bfd-in.h
bfd/bfd-in2.h

index 0c4caf5726fcf1215553d165151e678e78c4f863..04e82983c1f2570b3cf547bf9acb370840d649d3 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2004-02-14  Andrew Cagney  <cagney@redhat.com>
 
        * configure.host (HDEFINES): When hppa*-*-hpux*, define
index cf75f6375812c3cb6f3efad793ca75b3c0b2e132..30bc844b1b88d5bce59e9181709d35b6722a8a2d 100644 (file)
@@ -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);
index ce809d49d31633ba2f5ed2f624e193d48f62f9a8..74bbccdac486d531aa7b4fa12d469a309771ca8e 100644 (file)
@@ -167,16 +167,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);
This page took 0.029397 seconds and 4 git commands to generate.