From owner-freebsd-fs Thu Mar 15 18:16:16 2001 Delivered-To: freebsd-fs@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 2686937B71A for ; Thu, 15 Mar 2001 18:16:14 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f2G2G1u26317; Thu, 15 Mar 2001 18:16:01 -0800 (PST) Date: Thu, 15 Mar 2001 18:16:01 -0800 From: Alfred Perlstein To: =?iso-8859-1?Q?Andr=E9_Luiz_dos_Santos?= Cc: fs@FreeBSD.ORG Subject: Re: Truncating a file. Message-ID: <20010315181601.O29888@fw.wintelcom.net> References: <01031502201400.28129@nv12> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <01031502201400.28129@nv12>; from andre@netvision.com.br on Thu, Mar 15, 2001 at 02:20:14AM -0500 X-all-your-base: are belong to us. Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * André Luiz dos Santos [010315 18:11] wrote: > > 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? No. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message