From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30607 invoked by alias); 15 Apr 2004 18:16:36 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 30589 invoked from network); 15 Apr 2004 18:16:35 -0000 Received: from unknown (HELO masquerade.micron.com) (137.201.242.130) by sources.redhat.com with SMTP; 15 Apr 2004 18:16:35 -0000 Received: from mail-srv2.micron.com (localhost [127.0.0.1]) by masquerade.micron.com (8.12.9/8.12.2) with ESMTP id i3FIGfSN000119 for ; Thu, 15 Apr 2004 12:16:41 -0600 (MDT) Received: from ntxboimbx07.micron.com (ntxboimbx07.micron.com [137.201.80.94]) by mail-srv2.micron.com (8.12.9/8.12.2) with ESMTP id i3FIGe7C000109; Thu, 15 Apr 2004 12:16:41 -0600 (MDT) From: lrtaylor@micron.com content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: fstream Date: Thu, 15 Apr 2004 18:16:00 -0000 Message-ID: <363801FFD7B74240A329CEC3F7FE4CC4015F3C0E@ntxboimbx07.micron.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: To: , X-Scanned-By: MIMEDefang 2.37 X-SW-Source: 2004-04/txt/msg00200.txt.bz2 I believe the size of the files you can open depend on your operating system and file system rather than on C++. For example, I believe that Windows generally doesn't support files larger than 2 GB. I believe most 32-bit Linux distributions also don't generally support files larger than 2GB out of the box. Without knowing what platform and type of file system that you're running on, it's hard to say much more, though. Cheers, Lyle -----Original Message----- From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On Behalf Of Jacob Smith Sent: Thursday, April 15, 2004 12:14 PM To: gcc-help@gcc.gnu.org Subject: fstream How would I go about finding out the largest file stream I can open=20 (read/write) on my system (P4)? I've ascertained that the=20 std::fstream::pos_type has a sizeof() 8, but anytime I access somewhere=20 beyond the 2**31-bit mark, the state of the stream becomes=20 good()=3D=3Dfalse. If the maximum size is upper-bound by the 2**31-bit mark= =20 (or whatever), is there anything in the standard libraries to let me=20 open larger files (i.e. a memory-map or sumsuch)? thanks, -j.