arceos_api::fs

Function ax_truncate_file

Source
pub fn ax_truncate_file(file: &AxFileHandle, size: u64) -> AxResult
Available on crate feature fs only.
Expand description

Truncates the file to the specified size.