From owner-freebsd-hackers Wed Aug 1 18:47: 1 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by hub.freebsd.org (Postfix) with ESMTP id 5A03337B403 for ; Wed, 1 Aug 2001 18:46:58 -0700 (PDT) (envelope-from jazepeda@pacbell.net) Received: from zippy.mybox.zip ([207.214.149.105]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GHF00E583KQAV@mta5.snfc21.pbi.net> for hackers@freebsd.org; Wed, 01 Aug 2001 18:46:54 -0700 (PDT) Received: by zippy.mybox.zip (Postfix, from userid 1000) id 049D71844; Wed, 01 Aug 2001 18:45:31 -0700 (PDT) Date: Wed, 01 Aug 2001 18:45:31 -0700 From: Alex Zepeda Subject: Re: Finding filesizes in C++ for files greater than 4gb In-reply-to: <"from clash"@tasam.com> To: Joseph Gleason , hackers@freebsd.org Message-id: <20010801184531.A7725@zippy.mybox.zip> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.2.5i References: <00b201c11af3$4fef1c10$0a2d2d0a@battleship> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Aug 01, 2001 at 09:34:43PM -0400, Joseph Gleason wrote: > In FreeBSD, how can I determine the size of a file in C++ when the file is > greater than 4gb? > > Currently, I use stat() and use st_size. That is limited to 4gb (32bit > unsigned int) You're wrong. Read the man page. No soup for you! Next! - alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message