From owner-freebsd-hackers Wed Aug 1 22:47:49 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240]) by hub.freebsd.org (Postfix) with ESMTP id 2643A37B401 for ; Wed, 1 Aug 2001 22:47:46 -0700 (PDT) (envelope-from jazepeda@pacbell.net) Received: from zippy.mybox.zip ([207.214.149.104]) by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GHF0013SERFRP@mta6.snfc21.pbi.net> for hackers@freebsd.org; Wed, 01 Aug 2001 22:47:42 -0700 (PDT) Received: by zippy.mybox.zip (Postfix, from userid 1000) id C215D182C; Wed, 01 Aug 2001 22:47:37 -0700 (PDT) Date: Wed, 01 Aug 2001 22:47:37 -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: <20010801224737.A608@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> <20010801184531.A7725@zippy.mybox.zip> <003c01c11afb$3cdc7980$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 10:31:22PM -0400, Joseph Gleason wrote: > Alright, I made a mistake. But I did read the man page. Where does it say > off_t is 64bits? > > My mistake was not digging through the include files enough to see what was > going on. off_t st_size; /* file size, in bytes */ All it takes is a printf("%d\n", sizeof(off_t)); to figure out how large that is. :^) Or, sure, you could dig thru the headers. - alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message