Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site axiom.UUCP Path: utzoo!linus!axiom!smk From: smk@axiom.UUCP (Steven M. Kramer) Newsgroups: net.unix-wizards Subject: Re: truncating a file opened via open() Message-ID: <54@axiom.UUCP> Date: Sat, 22-Jun-85 16:26:52 EDT Article-I.D.: axiom.54 Posted: Sat Jun 22 16:26:52 1985 Date-Received: Mon, 24-Jun-85 08:09:26 EDT References: <340@cmu-cs-edu1.ARPA> <786@turtlevax.UUCP> <217@luke.UUCP> <2315@sun.uucp> Organization: Axiom Technology, Newton MA Lines: 9 I wrote a few routines for non-4.2 machines that mimicked the 4.2 routines. Ftruncate was one of them. I probably missed some wierd conditions (like file descriptors refering to non-reg files, ..., and errno's), but my ftruncate works OK in a pinch. I posted the source to net.sources. -- --steve kramer {allegra,genrad,ihnp4,utzoo,philabs,uw-beaver}!linus!axiom!smk (UUCP) linus!axiom!smk@mitre-bedford (MIL)