Truncate or extend a file fd to a specified length. If the file was larger than this size, the extra data will be discarded. If the file was smaller than this size, it will be extended as if by writing bytes with the value zero.
The file offset is not changed.