pub fn ftruncate<Fd: AsFd>(fd: Fd, length: u64) -> Result<()>
fs
ftruncate(fd, length)—Sets the length of a file.
ftruncate(fd, length)