Date: Wed, 01 Aug 2001 22:47:37 -0700 From: Alex Zepeda <jazepeda@pacbell.net> To: Joseph Gleason <clash@tasam.com>, hackers@freebsd.org Subject: Re: Finding filesizes in C++ for files greater than 4gb Message-ID: <20010801224737.A608@zippy.mybox.zip> In-Reply-To: <"from clash"@tasam.com> References: <00b201c11af3$4fef1c10$0a2d2d0a@battleship> <20010801184531.A7725@zippy.mybox.zip> <003c01c11afb$3cdc7980$0a2d2d0a@battleship>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010801224737.A608>
