Function rustix::fs::ftruncate

source ·
pub fn ftruncate<Fd: AsFd>(fd: Fd, length: u64) -> Result<()>
Available on crate feature fs only.
Expand description

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

References