Lines Matching refs:SystemError

7 use crate::{io::SeekFrom, syscall::SystemError};
45 pub fn read_u8(&mut self) -> Result<u8, SystemError> { in read_u8() argument
47 return Err(SystemError::E2BIG); in read_u8()
54 pub fn read_u16(&mut self) -> Result<u16, SystemError> { in read_u16() argument
56 return Err(SystemError::E2BIG); in read_u16()
68 pub fn read_u32(&mut self) -> Result<u32, SystemError> { in read_u32() argument
70 return Err(SystemError::E2BIG); in read_u32()
82 pub fn read_u64(&mut self) -> Result<u64, SystemError> { in read_u64() argument
84 return Err(SystemError::E2BIG); in read_u64()
101 pub fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), SystemError> { in read_exact() argument
103 return Err(SystemError::E2BIG); in read_exact()
113 pub fn read_u16_into(&mut self, buf: &mut [u16]) -> Result<(), SystemError> { in read_u16_into() argument
115 return Err(SystemError::E2BIG); in read_u16_into()
131 pub fn seek(&mut self, origin: SeekFrom) -> Result<usize, SystemError> { in seek() argument
145 return Err(SystemError::EINVAL); in seek()
150 return Err(SystemError::EOVERFLOW); in seek()
157 pub fn write_u8(&mut self, value: u8) -> Result<u8, SystemError> { in write_u8() argument
159 return Err(SystemError::E2BIG); in write_u8()
169 pub fn write_u16(&mut self, value: u16) -> Result<u16, SystemError> { in write_u16() argument
171 return Err(SystemError::E2BIG); in write_u16()
183 pub fn write_u32(&mut self, value: u32) -> Result<u32, SystemError> { in write_u32() argument
185 return Err(SystemError::E2BIG); in write_u32()
197 pub fn write_u64(&mut self, value: u64) -> Result<u64, SystemError> { in write_u64() argument
199 return Err(SystemError::E2BIG); in write_u64()
216 pub fn write_exact(&mut self, buf: &[u8]) -> Result<(), SystemError> { in write_exact() argument
218 return Err(SystemError::E2BIG); in write_exact()