将TTY与stdio进行连接,实现基本的stdio功能 (#217)

* 将stdio与tty接上
This commit is contained in:
login
2023-03-31 12:54:37 +08:00
committed by GitHub
parent 5fb12ce447
commit 20e3152e1e
21 changed files with 528 additions and 169 deletions

View File

@ -6,3 +6,12 @@ pub struct TimeSpec {
pub tv_sec: i64,
pub tv_nsec: i64,
}
impl TimeSpec {
pub fn new(sec: i64, nsec: i64) -> TimeSpec {
return TimeSpec {
tv_sec: sec,
tv_nsec: nsec,
};
}
}