summaryrefslogtreecommitdiffstats
path: root/third_party/rust/termion/src/sys/redox/mod.rs
blob: 2a9b875e326a58625e177655de2a719a3c7f64e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate redox_termios;
extern crate syscall;

use std::io;

pub use self::redox_termios::Termios;

pub mod attr;
pub mod size;
pub mod tty;

// Support function for converting syscall error to io error
fn cvt(result: Result<usize, syscall::Error>) -> io::Result<usize> {
    result.map_err(|err| io::Error::from_raw_os_error(err.errno))
}