Function sys_file_truncate
Source pub fn sys_file_truncate(trapframe: &mut Trapframe) -> usize
Expand description
System call for truncating a file
§Arguments
- handle: Handle to the KernelObject (must support FileObject)
- length: New length of the file
§Returns
- On success: 0
- On error: usize::MAX