Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!helios.ee.lbl.gov!nosc!humu!uhccux!cs411s03 From: cs411s03@uhccux.uhcc.hawaii.edu (Cs411s03) Newsgroups: comp.unix.wizards Subject: Re: How can a file be truncated on System V?? Summary: System V 3.2 chsize() function Keywords: chsize Message-ID: <3921@uhccux.uhcc.hawaii.edu> Date: 13 May 89 04:12:30 GMT References: <651@mitisft.Convergent.COM> <887@twwells.uucp> <13619@ncoast.ORG> Followup-To: comp.unix.wizards Distribution: usa Organization: University of Hawaii Lines: 11 The Xenix function chsize(S) can be found in /lib/libx.a under System V 3.2. It functions similarly to the BSD ftruncate() function: int chsize(fildes, size) int fildes; long size; The chsize function will change the file associated with fildes to be exactly size bytes in length ... cs411s03!uhccux