ftruncate(2) for System V.3.2 needed

Doug McCallum dougm at queso.ico.isc.com
Wed Jul 12 05:05:43 AEST 1989


In article <14020065 at hpisod2.HP.COM> decot at hpisod2.HP.COM (Dave Decot) writes:

   Path: ico!nbires!ncar!ames!apple!motcsd!hpda!hpcupt1!hpisod2!decot
   From: decot at hpisod2.HP.COM (Dave Decot)
   Newsgroups: comp.unix.wizards
   Date: 10 Jul 89 06:56:10 GMT
   References: <1132 at ssp15.idca.tds.philips.nl>
   Organization: Hewlett Packard, Cupertino
   Lines: 14

>   F_FREESP is not in SVID Issue 2, so unless this feature is in AT&T's V.3.2,
>   and this person has AT&T's version, this isn't going to help this person.

Another option is to use the XENIX support and use the F_CHGSIZE call
under V.3.2.  ftruncate can be implemented as:

	#define ftruncate(f,len) fcntl(f, F_CHSIZE, len)



More information about the Comp.unix.wizards mailing list