Xref: utzoo comp.unix.wizards:17269 comp.sources.wanted:8080 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!rpi!batcomputer!cornell!uw-beaver!sumax!polari!rwing!pat From: pat@rwing.UUCP (Pat Myrto) Newsgroups: comp.unix.wizards,comp.sources.wanted Subject: Re: ftruncate(2) for System V.3.2 needed Summary: Need value for F_FREESP to try ftruncate() Message-ID: <747@rwing.UUCP> Date: 13 Jul 89 21:24:00 GMT References: <1132@ssp15.idca.tds.philips.nl> <02KJ02SJ3cms01@amdahl.uts.amdahl.com> Organization: Very Little Organization, Seattle WA Lines: 25 In article <02KJ02SJ3cms01@amdahl.uts.amdahl.com>, kucharsk@uts.amdahl.com (William Kucharski) writes: < < ... [ Most of posted source deleted ] ... < /* < * This relies on the UNDOCUMENTED F_FREESP argument to < * fcntl(2), which truncates the file so that it ends at the < * position indicated by fl.l_start. < * < * Will minor miracles never cease? < */ < < if (fcntl(fd, F_FREESP, &fl) < 0) < return(-1); This ioctl() call looks like something that would be interesting to try, however, the value of F_FREESP is not to be found in *ANY* of the includes on my site - could someome perhaps indicate what numerical value F_FREESP is supposed to be on USG type systems? Thanks... -- pat@rwing ...!nwnexus!mltco!camco!happym!\ (Pat Myrto), Seattle, WA ...!uunet!pilchuck!rwing!pat ...!uw-beaver!sumax!polari!/ WISDOM: "Travelling unarmed is like boating without a life jacket"