Function sys_file_seek
Source pub fn sys_file_seek(trapframe: &mut Trapframe) -> usize
Expand description
System call for seeking within a file
§Arguments
- handle: Handle to the KernelObject (must support FileObject)
- offset: Offset for seek operation
- whence: Seek origin (0=start, 1=current, 2=end)
§Returns
- On success: new position in file
- On error: usize::MAX