Lines Matching refs:SystemError
8 use crate::{driver::net::NetDriver, kwarn, libs::rwlock::RwLock, syscall::SystemError};
41 type Error = SystemError;
45 <Self as FromPrimitive>::from_i32(value).ok_or(SystemError::EINVAL) in try_from()
72 fn read(&self, buf: &mut [u8]) -> (Result<usize, SystemError>, Endpoint); in read() argument
80 fn write(&self, buf: &[u8], to: Option<Endpoint>) -> Result<usize, SystemError>; in write() argument
92 fn connect(&mut self, endpoint: Endpoint) -> Result<(), SystemError>; in connect() argument
101 fn bind(&mut self, _endpoint: Endpoint) -> Result<(), SystemError> { in bind() argument
102 return Err(SystemError::ENOSYS); in bind()
112 fn shutdown(&self, _type: ShutdownType) -> Result<(), SystemError> { in shutdown() argument
113 return Err(SystemError::ENOSYS); in shutdown()
121 fn listen(&mut self, _backlog: usize) -> Result<(), SystemError> { in listen() argument
122 return Err(SystemError::ENOSYS); in listen()
130 fn accept(&mut self) -> Result<(Box<dyn Socket>, Endpoint), SystemError> { in accept() argument
131 return Err(SystemError::ENOSYS); in accept()
177 ) -> Result<usize, SystemError> { in ioctl() argument
182 fn metadata(&self) -> Result<SocketMetadata, SystemError>; in metadata() argument
198 ) -> Result<(), SystemError> { in setsockopt() argument
200 return Err(SystemError::ENOSYS); in setsockopt()