ftruncate(2) for System V.3.2 needed

Pat Myrto pat at rwing.UUCP
Fri Jul 14 07:24:00 AEST 1989


In article <02KJ02SJ3cms01 at amdahl.uts.amdahl.com>, kucharsk at 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 at 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" 



More information about the Comp.unix.wizards mailing list