1 .TH TRUNCATE 2 "Feb 13, 2006"
4 truncate, ftruncate \- truncate a file to a specified length (may extend)
10 int truncate(char *filename, off_t length);
11 int ftruncate(int fd, off_t length);
18 to be set to the length
20 causing data after that size to be lost. If the file is set to a
21 length larger than the current file size, the new region can be
22 written to but reads as zeroes. There will be no disk blocks reserved
23 for it. This is a hole.
26 does the same thing as
28 but operates on a file descriptor instead of a filename.