Truncates a file to the specified length.
#include <unistd.h> int ftruncate64 ( int fildes, off64_t len);
(IN) Specifies a file descriptor.
(IN) Specifies the length of the file.
If successful, returns 0. Otherwise, returns -1 and sets errno to one of the following:
If the size of the file was previously smaller than the len parameter, the ftruncate64 function increases the size of the file to len, and zero fills the extended area.
If the ftruncate64 function fails, the file is unaffected.
The ftruncate64 function is equivalent to ftruncate except that it handles files larger than 2 GB.