From owner-freebsd-questions@FreeBSD.ORG Tue Jan 6 09:28:48 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 5F07116A4CE for ; Tue, 6 Jan 2004 09:28:48 -0800 (PST) Received: from undead.dnn.ru (dnn.ru [212.158.164.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F6D243D1D for ; Tue, 6 Jan 2004 09:28:43 -0800 (PST) (envelope-from alex@dynaweb.ru) Received: from dynaweb.ru (dynaweb.dnn.ru [212.158.164.112]) by undead.dnn.ru (8.9.3/8.9.3) with ESMTP id UAA75368 for ; Tue, 6 Jan 2004 20:30:29 +0300 (MSK) (envelope-from alex@dynaweb.ru) Message-ID: <3FFAF127.3080309@dynaweb.ru> Date: Tue, 06 Jan 2004 20:32:23 +0300 From: Alex User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit Subject: how to use lseek() system call with over 2G files? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: alex@dynaweb.ru List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2004 17:28:48 -0000 Hi everybody! Some time ago there wasn't any possibility to create disk file larger than 2G and there was no problem with lseek(). But as for now we can do it but I looked into headers and found off_t is equal to long -> no more than 2G on i386 machines. As far as lseek() is a system call I cannot believe it cannot be used with larger files but how? Maybe it's a silly question? :0) Alex