Function rustix::fs::ftruncate

pub fn ftruncate<Fd: AsFd>(fd: &Fd, length: u64) -> io::Result<()>
Documentation

ftruncate(fd, length)—Sets the length of a file.

References