From owner-freebsd-questions@FreeBSD.ORG Tue Jan 6 19:42:34 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89D0216A4CE for ; Tue, 6 Jan 2004 19:42:34 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDEF243D41 for ; Tue, 6 Jan 2004 19:42:27 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i073gQWB001096; Tue, 6 Jan 2004 21:42:26 -0600 (CST) (envelope-from dan) Date: Tue, 6 Jan 2004 21:42:26 -0600 From: Dan Nelson To: Scott W Message-ID: <20040107034226.GN38169@dan.emsphone.com> References: <3FFAF127.3080309@dynaweb.ru> <20040106174828.GD38169@dan.emsphone.com> <44smissuq2.fsf@be-well.ilk.org> <3FFB76C2.2040604@mindcore.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FFB76C2.2040604@mindcore.net> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.5.1i cc: freebsd-questions@freebsd.org Subject: Re: how to use lseek() system call with over 2G files? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2004 03:42:34 -0000 In the last episode (Jan 06), Scott W said: > Lowell Gilbert wrote: > > off_t has *never* been anything but 64-bit in FreeBSD. > > This is interesting, having had to deal with the LARGEFILE_64_SOURCE > and _LP64 'hacks' (llseek(), creat64(), etc etc...back in Solaris > from 2.6 on, which seem to still be in place in Solaris 9. Are all > file operations and mmap() 64 bit capable then in FreeBSD (or > presumably Open/Net/FreeBSD?) I don't see any LARGEFILE constants in > FreeBSD.... Correct. The whole reason for the largefile stuff was to ease the transition from 32-bit off_t to 64-bit off_t. Even now, I don't think Linux, Solaris, or AIX enable 64-bit off_t by default. Heck, Solaris and AIX still default to building 32-bit /binaries/, even though they've been on 64-bit CPUs for ages. My guess is the "transition period" will last at long as x86 CPUs exist :) Tru64 always ran on the 64-bit Alpha, so it's another OS that never had to deal with it. -- Dan Nelson dnelson@allantgroup.com