Add devpts to support the ptmx

This commit is contained in:
LI Qing
2023-07-18 17:19:32 +08:00
committed by Tate, Hongliang Tian
parent 04db7c8c3d
commit 4f00e5a167
15 changed files with 814 additions and 73 deletions

View File

@ -1,4 +1,5 @@
mod null;
mod pty;
mod random;
pub mod tty;
mod urandom;
@ -22,5 +23,6 @@ pub fn init() -> Result<()> {
add_node(random, "random")?;
let urandom = Arc::new(urandom::Urandom);
add_node(urandom, "urandom")?;
pty::init()?;
Ok(())
}