From owner-freebsd-hackers Wed Aug 1 23:31: 8 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.121.85]) by hub.freebsd.org (Postfix) with ESMTP id 670B737B401 for ; Wed, 1 Aug 2001 23:31:04 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (dialup-209.245.131.20.Dial1.SanJose1.Level3.net [209.245.131.20]) by gull.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id XAA06880; Wed, 1 Aug 2001 23:31:01 -0700 (PDT) Message-ID: <3B68F3CD.DBE3A4FA@mindspring.com> Date: Wed, 01 Aug 2001 23:31:41 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Joseph Gleason Cc: Alex Zepeda , hackers@FreeBSD.ORG Subject: Re: Finding filesizes in C++ for files greater than 4gb References: <00b201c11af3$4fef1c10$0a2d2d0a@battleship> <20010801184531.A7725@zippy.mybox.zip> <003c01c11afb$3cdc7980$0a2d2d0a@battleship> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Joseph Gleason wrote: > Alright, I made a mistake. But I did read the man page. Where does it say > off_t is 64bits? The same place it says char is 8 bits, short is 16 bits, and int and long are 32 bits: in your assumptions. It might be useful (for some definitions of "useful") to have a man page which tells you the size of these things, but FreeBSD runs on architectures where these are different, so you would not be able to have one man page that does it. The correct thing to do is to use off_t when speaking of file lengths/offsets, and then let the machine support what it can support. If you simply "must" know, there's always "sizeof(off_t)". -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message