alnyan/yggdrasil: WIP remove start_terminal_session() temporarily
This commit is contained in:
@@ -12,7 +12,7 @@ use crate::mem::MaybeUninit;
|
||||
use crate::path::Path;
|
||||
use crate::sys::cvt_io;
|
||||
use yggdrasil_rt::{
|
||||
io::{FileMode, OpenOptions},
|
||||
// io::{FileMode, OpenOptions},
|
||||
sys as syscall,
|
||||
};
|
||||
|
||||
@@ -125,18 +125,19 @@ pub unsafe fn get_terminal_options<F: raw::AsRawFd>(fd: F) -> crate::io::Result<
|
||||
}
|
||||
|
||||
#[unstable(feature = "yggdrasil_os", issue = "none")]
|
||||
pub unsafe fn start_terminal_session<P: AsRef<Path>>(terminal: P) -> crate::io::Result<()> {
|
||||
let terminal = terminal.as_ref().to_str().unwrap();
|
||||
pub unsafe fn start_terminal_session<P: AsRef<Path>>(_terminal: P) -> crate::io::Result<()> {
|
||||
todo!()
|
||||
// let terminal = terminal.as_ref().to_str().unwrap();
|
||||
|
||||
cvt_io(syscall::start_session())?;
|
||||
// cvt_io(syscall::start_session())?;
|
||||
|
||||
// TODO implement open flags to explicitly set stdin/stdout/stderr
|
||||
// // TODO implement open flags to explicitly set stdin/stdout/stderr
|
||||
|
||||
cvt_io(syscall::open(None, terminal, OpenOptions::READ, FileMode::empty()))?;
|
||||
cvt_io(syscall::open(None, terminal, OpenOptions::WRITE, FileMode::empty()))?;
|
||||
cvt_io(syscall::open(None, terminal, OpenOptions::WRITE, FileMode::empty()))?;
|
||||
// cvt_io(syscall::open(None, terminal, OpenOptions::READ, FileMode::empty()))?;
|
||||
// cvt_io(syscall::open(None, terminal, OpenOptions::WRITE, FileMode::empty()))?;
|
||||
// cvt_io(syscall::open(None, terminal, OpenOptions::WRITE, FileMode::empty()))?;
|
||||
|
||||
Ok(())
|
||||
// Ok(())
|
||||
}
|
||||
|
||||
#[unstable(feature = "yggdrasil_os", issue = "none")]
|
||||
|
||||
Reference in New Issue
Block a user