Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!novavax!twwells!bill From: bill@twwells.com (T. William Wells) Newsgroups: comp.lang.c Subject: Re: PD ftruncate needed Keywords: ftruncate Message-ID: <1989Jun17.133122.7777@twwells.com> Date: 17 Jun 89 13:31:22 GMT References: <2132@calypso.oakhill.UUCP> Distribution: usa Organization: None, Ft. Lauderdale, FL Lines: 13 In article <2132@calypso.oakhill.UUCP> edj@oakhill.UUCP (Eric Jones) writes: : I am currently porting a C program from a BSD to a System V based : operating system. The program calls the BSD function "ftruncate", : which does not exist under System V. You lose. There is no way to do this in SysV 3.0 and earlier. Xenix, I think, has a way, and I've heard that later versions of SysV have a way. However, if you want portability, don't try to truncate a file to other than length zero. --- Bill { uunet | novavax | ankh | sunvice } !twwells!bill bill@twwells.com