From owner-freebsd-hackers Wed Aug 1 19:31:37 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from zogbe.tasam.com (cj45658-a.reston1.va.home.com [65.9.36.73]) by hub.freebsd.org (Postfix) with ESMTP id 4E3F037B401 for ; Wed, 1 Aug 2001 19:31:35 -0700 (PDT) (envelope-from clash@tasam.com) Received: from battleship (zogbe.tasam.com [10.45.45.5] (may be forged)) by zogbe.tasam.com (8.11.4/8.11.4) with SMTP id f722VMq01091; Wed, 1 Aug 2001 22:31:28 -0400 (EDT) Message-ID: <003c01c11afb$3cdc7980$0a2d2d0a@battleship> From: "Joseph Gleason" To: "Alex Zepeda" , References: <00b201c11af3$4fef1c10$0a2d2d0a@battleship> <20010801184531.A7725@zippy.mybox.zip> Subject: Re: Finding filesizes in C++ for files greater than 4gb Date: Wed, 1 Aug 2001 22:31:22 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 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 ----- Original Message ----- From: "Alex Zepeda" To: "Joseph Gleason" ; Sent: Wednesday, August 01, 2001 21:45 Subject: Re: Finding filesizes in C++ for files greater than 4gb > 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message