rustix::fs

Function ftruncate

Source
pub fn ftruncate<Fd: AsFd>(fd: Fd, length: u64) -> Result<()>
Expand description

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

§References