public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Andreas Jaeger <aj@suse.de>
To: aj@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: libstdc++/8610: std::streamoff type  is 32-bit  in GCC 3.2 whereas it was 64-bit in GCC 2.96
Date: Sat, 08 Feb 2003 21:36:00 -0000	[thread overview]
Message-ID: <20030208213600.30343.qmail@sources.redhat.com> (raw)

The following reply was made to PR libstdc++/8610; it has been noted by GNATS.

From: Andreas Jaeger <aj@suse.de>
To: paolo@gcc.gnu.org
Cc: davido@csse.uwa.edu.au, gcc-bugs@gcc.gnu.org,
	gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Subject: Re: libstdc++/8610: std::streamoff type  is 32-bit  in GCC 3.2
 whereas it was 64-bit in GCC 2.96
Date: Sat, 08 Feb 2003 22:28:03 +0100

 paolo@gcc.gnu.org writes:
 
 > Synopsis: std::streamoff type  is 32-bit  in GCC 3.2 whereas it was 64-bit in GCC 2.96
 >
 > Responsible-Changed-From-To: unassigned->aj
 > Responsible-Changed-By: paolo
 > Responsible-Changed-When: Sat Feb  8 20:31:56 2003
 > Responsible-Changed-Why:
 >     LFS expert.
 > State-Changed-From-To: open->analyzed
 > State-Changed-By: paolo
 > State-Changed-When: Sat Feb  8 20:31:56 2003
 > State-Changed-Why:
 >     Hi Andreas, could you please have a look at this PR?
 >     It's about large file support in Linux and, having browsed
 >     your page
 >       http://www.suse.de/~aj/linux_lfs.html
 >     I think you can answer it _much_ better than me!
 >     Thanks, Paolo.
 
 Paolo, I need some help here since I don't know the internals of
 libstc++.
 
 /opt/gcc/3.4-devel/include/c++/3.4/i686-pc-linux-gnu/bits/c++io.h
 (where does this file come from?) indeed defines:
 namespace std 
 {
 // for fpos.h
   typedef long          streamoff;
   typedef ptrdiff_t     streamsize; // Signed integral type
 
 And libstdc++/config/io/c_io_libio.h has:
 
 namespace std 
 {
 // from fpos.h
   typedef _IO_ssize_t   streamsize; // Signed integral type
   typedef _IO_ssize_t   wstreamsize;
 
 #if defined(_G_IO_IO_FILE_VERSION) && _G_IO_IO_FILE_VERSION == 0x20001
   typedef _IO_off64_t   streamoff;
   typedef _IO_fpos64_t  __c_streampos;
 #else
   typedef _IO_off_t     streamoff;
   typedef _IO_fpos_t    __c_streampos;
 #endif
 
 For Linux we should IO_IO_FILE_VERSION defined and set to 0x20001.
 But why is this not done?
 
 But the problem is even more subitle.  config/io/basic_file_stdio.cc
 uses fseek/ftell which use a long int and therefore - under 32-bit -
 allow only 2 GB. You should use fseeko/ftello or fsetpos/fgetpos.
 
 Paolo, does this help?  Or did I look at the wrong files?
 
 Andreas
 -- 
  Andreas Jaeger
   SuSE Labs aj@suse.de
    private aj@arthur.inka.de
     http://www.suse.de/~aj


             reply	other threads:[~2003-02-08 21:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-08 21:36 Andreas Jaeger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-02-09 13:20 paolo
2003-02-09 12:06 Paolo Carlini
2003-02-09 10:26 Andreas Jaeger
2003-02-08 21:56 Paolo Carlini
2003-02-08 20:31 paolo
2002-11-22 10:26 davido

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030208213600.30343.qmail@sources.redhat.com \
    --to=aj@suse.de \
    --cc=aj@gcc.gnu.org \
    --cc=gcc-prs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).