Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!lll-crg!ucdavis!ucbvax!info-vax From: @ge-crd.ARPA:montnaro@battenkill Newsgroups: mod.computers.vax Subject: VMS version of ftruncate() Message-ID: <8511212109.AA01764@ucbvax.berkeley.edu> Date: Thu, 21-Nov-85 16:09:53 EST Article-I.D.: ucbvax.8511212109.AA01764 Posted: Thu Nov 21 16:09:53 1985 Date-Received: Sun, 24-Nov-85 06:58:53 EST Sender: usenet@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 32 Approved: info-vax@sri-kl.arpa Received: by battenkill.steinmetz.uucp (2.0/3.14) id AA05134; Wed, 20 Nov 85 08:41:35 est Date: Wed, 20 Nov 85 08:41:35 est From: montnaro@battenkill (Montanaro) Return-Path: Message-Id: <8511201341.AA05134@battenkill.steinmetz.uucp> To: @csbvax:info-vax@sri-kl.arpa Subject: VMS version of ftruncate() We are still running VMS 3.7 and the old DEC C compiler (1.5?) which does not have ftruncate() in the run-time library. We have an application which reads a file, munches on the data for awhile, rewinds the file, writes out the munched upon data, then wants to truncate the file at that point. Not only do we not have ftruncate(), but it appears that rather than overwriting the old information, the new information is inserted ahead of the old! Has anyone written a version of ftruncate for VMS? Please reply directly to me, since I do not normally read info-vax. Thanks in advance, ========== Skip Montanaro ARPA: montanaro@ge-crd.arpa uucp: ..!seismo!rpics!steinmetz!battenkill!montnaro \_________________ ________________________/ \/ (I think - I'm no address expert) ==========