[Bug libstdc++/12882] New: Large file support not complete

peturr02 at ru dot is gcc-bugzilla@gcc.gnu.org
Mon Nov 3 08:42:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12882

           Summary: Large file support not complete
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: peturr02 at ru dot is
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

stdio_sync_filebuf::seekoff doesn't have large file support:

 virtual std::streampos
      seekoff(std::streamoff __off, std::ios_base::seekdir __dir,
              std::ios_base::openmode = std::ios_base::in | std::ios_base::out)
      {
[...]
        
        if (!fseek(_M_file, __off, __whence))
          __ret = std::streampos(std::ftell(_M_file));
        return __ret;
      }

Here, fseeko64/ftello64 should be used if available, else fseeko/ftello
if available, else fseek/ftell.



More information about the Gcc-bugs mailing list