Date: Thu, 15 Mar 2001 18:16:01 -0800 From: Alfred Perlstein <bright@wintelcom.net> To: =?iso-8859-1?Q?Andr=E9_Luiz_dos_Santos?= <andre@netvision.com.br> Cc: fs@FreeBSD.ORG Subject: Re: Truncating a file. Message-ID: <20010315181601.O29888@fw.wintelcom.net> In-Reply-To: <01031502201400.28129@nv12>; from andre@netvision.com.br on Thu, Mar 15, 2001 at 02:20:14AM -0500 References: <01031502201400.28129@nv12>
next in thread | previous in thread | raw e-mail | index | archive | help
* André Luiz dos Santos <andre@netvision.com.br> [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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010315181601.O29888>