From owner-freebsd-fs Thu Mar 15 18:11:11 2001 Delivered-To: freebsd-fs@freebsd.org Received: from mail2.netvision.com.br (nv37.netvision.com.br [200.215.94.37]) by hub.freebsd.org (Postfix) with ESMTP id B342137B719 for ; Thu, 15 Mar 2001 18:11:08 -0800 (PST) (envelope-from andre@netvision.com.br) Received: from nv12 (nv12.netvision.com.br [200.247.217.134]) by mail2.netvision.com.br (Postfix) with SMTP id 96FC11869 for ; Fri, 16 Mar 2001 00:10:32 -0300 (BET) Content-Type: text/plain; charset="iso-8859-1" From: =?iso-8859-1?q?Andr=E9=20Luiz=20dos=20Santos?= Reply-To: andre@netvision.com.br To: fs@freebsd.org Subject: Truncating a file. Date: Thu, 15 Mar 2001 02:20:14 -0500 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <01031502201400.28129@nv12> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org With ftruncate, you can remove part of the end of a file. Is there a way to remove part of the beginning of a file? I'm developing a SOCKS5 server that stores the data received from the first connection to a local file, and when the second connection is writable, read that file and write the data to this second connection. As data is read from the local file, its beginning becomes useless, so I'd like to truncate it out. Is it possible? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message