Function syscall::scheme::calc_seek_offset_isize
source · [−]pub fn calc_seek_offset_isize(
cur_offset: isize,
pos: isize,
whence: usize,
buf_len: isize
) -> Result<isize>
Expand description
Helper for seek calls Result is guaranteed to be positive. EOVERFLOW returned if the arguments would cause an overflow. EINVAL returned if the new offset is out of bounds.