Lines Matching refs:SystemError
4 use system_error::SystemError;
16 fn open(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in open() argument
17 fn close(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in close() argument
18 fn flush_buffer(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in flush_buffer() argument
36 ) -> Result<usize, SystemError>; in read() argument
43 ) -> Result<usize, SystemError>; in write() argument
44 fn ioctl(&self, tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<usize, SystemError>; in ioctl() argument
49 fn set_termios(&self, tty: Arc<TtyCore>, old: Option<Termios>) -> Result<(), SystemError>; in set_termios() argument
51 fn poll(&self, tty: Arc<TtyCore>) -> Result<usize, SystemError>; in poll() argument
52 fn hangup(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in hangup() argument
61 ) -> Result<usize, SystemError>; in receive_buf() argument
70 ) -> Result<usize, SystemError>; in receive_buf2() argument
73 fn write_wakeup(&self, _tty: &TtyCoreData) -> Result<(), SystemError> { in write_wakeup() argument
74 Err(SystemError::ENOSYS) in write_wakeup()
102 pub fn ldisc_setup(tty: Arc<TtyCore>, o_tty: Option<Arc<TtyCore>>) -> Result<(), SystemError> { in ldisc_setup() argument
107 if err == SystemError::ENOSYS { in ldisc_setup()
116 let ret: Result<(), SystemError> = ld.open(o_tty.clone()); in ldisc_setup()