Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!leah!rpi!crdgw1!ge-dab!steinmetz!davidsen From: davidsen@steinmetz.ge.com (Wm. E. Davidsen Jr) Newsgroups: comp.unix.wizards Subject: Re: How can a file be truncated on System V?? Keywords: link, unlink, directory Message-ID: <13725@steinmetz.ge.com> Date: 2 May 89 17:56:24 GMT References: <651@mitisft.Convergent.COM> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: General Electric CRD, Schenectady, NY Lines: 11 There was a method in wizards a few years ago I believe. It had to do with using O_TRUNC, which seems to truncate to the position of the current file pointer. There was a trick with reopen or dup or ??? which allowed opening of an already open file. Does this jog anyone's memory? I think the question at that time was "how do I do ftruncate?" -- bill davidsen (wedu@crd.GE.COM) {uunet | philabs}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me