*BSD News Article 11327


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA1582 ; Tue, 23 Feb 93 14:49:28 EST
Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!sun-barr!cs.utexas.edu!usc!howland.reston.ans.net!gatech!emory!ogicse!mintaka.lcs.mit.edu!ai-lab!hal.gnu.ai.mit.edu!mycroft
From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
Newsgroups: comp.unix.bsd
Subject: Re: [386BSD] truncating the beginning of a file
Message-ID: <1m0lejINNhpr@life.ai.mit.edu>
Date: 18 Feb 93 18:44:35 GMT
Article-I.D.: life.1m0lejINNhpr
References: <1lm5qhINN8vb@life.ai.mit.edu> <C2HKn4.Bry@sugar.neosoft.com>
Organization: /etc/organization
Lines: 17
NNTP-Posting-Host: hal.ai.mit.edu


In article <C2HKn4.Bry@sugar.neosoft.com> peter@NeoSoft.com (Peter da
Silva) writes:
>
> As for putting the beginning of the file's data in there, I'd like to
> suggest putting the *end* of the file's data in there for regular
> files, [...]

This is not what I had in mind.  I simply want to be able to chop off
the beginning of a file, like ftruncate() chops off the end.  I can
think of several important applications which would benefit greatly
from this.

-- 
 \  /   Charles Hannum, mycroft@ai.mit.edu
 /\ \   PGP public key available on request.  MIME, AMS, NextMail accepted.
Scheme  White heterosexual atheist male (WHAM) pride!