From owner-freebsd-hackers Wed Aug 1 19:40: 7 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp-1.enteract.com (smtp-1.enteract.com [207.229.143.33]) by hub.freebsd.org (Postfix) with ESMTP id 9CE6137B401 for ; Wed, 1 Aug 2001 19:40:02 -0700 (PDT) (envelope-from dscheidt@tumbolia.com) Received: from shell-1.enteract.com (shell-1.enteract.com [207.229.143.40]) by smtp-1.enteract.com (Postfix) with ESMTP id 1AF416A59; Wed, 1 Aug 2001 21:40:02 -0500 (CDT) Date: Wed, 1 Aug 2001 21:40:02 -0500 (CDT) From: David Scheidt X-X-Sender: To: Joseph Gleason Cc: Subject: Re: Finding filesizes in C++ for files greater than 4gb In-Reply-To: <003c01c11afb$3cdc7980$0a2d2d0a@battleship> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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, 1 Aug 2001, Joseph Gleason wrote: : :----- Original Message ----- :From: "Alex Zepeda" :> 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 : : :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. : The types(5) manpage will tell you this. -- dscheidt@tumbolia.com Bipedalism is only a fad. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message