Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Aug 2001 21:40:02 -0500 (CDT)
From:      David Scheidt <dscheidt@tumbolia.com>
To:        Joseph Gleason <clash@tasam.com>
Cc:        <hackers@FreeBSD.ORG>
Subject:   Re: Finding filesizes in C++ for files greater than 4gb
Message-ID:  <Pine.BSF.4.32L2.0108012139150.20699-100000@shell-1.enteract.com>
In-Reply-To: <003c01c11afb$3cdc7980$0a2d2d0a@battleship>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 1 Aug 2001, Joseph Gleason wrote:

:
:----- Original Message -----
:From: "Alex Zepeda" <jazepeda@pacbell.net>
:> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.32L2.0108012139150.20699-100000>