How can a file be truncated on System V??

Cs411s03 cs411s03 at uhccux.uhcc.hawaii.edu
Sat May 13 14:12:30 AEST 1989


The Xenix function chsize(S) can be found in /lib/libx.a under System V 3.2.
It functions similarly to the BSD ftruncate() function:

	int chsize(fildes, size)
	int fildes;
	long size;

The chsize function will change the file associated with fildes to be
exactly size bytes in length ...

cs411s03!uhccux



More information about the Comp.unix.wizards mailing list