[−][src]Module syscall::scheme
A trait useful for scheme handlers
Structs
Ctx | The context of a scheme syscall, such as the process id invoking it. |
Traits
Scheme | |
SchemeBlock | |
SchemeBlockMut | |
SchemeMut |
Functions
calc_seek_offset_isize | 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. |
calc_seek_offset_usize | Helper for seek calls In most cases it's easier to use a usize to track the offset and buffer size internally, but the seek interface uses isize. This wrapper ensures EOVERFLOW errors are returned as appropriate if the value in the usize can't fit in the isize. |