From owner-freebsd-questions@FreeBSD.ORG Tue Jan 6 19:02:44 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 BDBEA16A4CE for ; Tue, 6 Jan 2004 19:02:44 -0800 (PST) Received: from ms-smtp-01-eri0.southeast.rr.com (ms-smtp-01-lbl.southeast.rr.com [24.25.9.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCAA743D5E for ; Tue, 6 Jan 2004 19:02:29 -0800 (PST) (envelope-from wegster@mindcore.net) Received: from mindcore.net (rdu162-234-100.nc.rr.com [24.162.234.100]) i0732QHG020244; Tue, 6 Jan 2004 22:02:27 -0500 (EST) Message-ID: <3FFB76C2.2040604@mindcore.net> Date: Tue, 06 Jan 2004 22:02:26 -0500 From: Scott W User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20031129 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lowell Gilbert References: <3FFAF127.3080309@dynaweb.ru> <20040106174828.GD38169@dan.emsphone.com> <44smissuq2.fsf@be-well.ilk.org> In-Reply-To: <44smissuq2.fsf@be-well.ilk.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine 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:02:44 -0000 Lowell Gilbert wrote: >Dan Nelson writes: > > > >>In the last episode (Jan 06), Alex said: >> >> >>>Hi everybody! >>> >>>Some time ago there wasn't any possibility to create disk file larger >>>than 2G and there was no problem with lseek(). >>> >>> >>Some time ago meaning around 1997? FreeBSD has had 64-bit file access >>since at least 2.2.0. I don't remember if earlier versions had support >>for it or not. >> >> > >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.... Scott