1
0
Fork 0
forked from koniifer/ableos

Merge branch 'master' of ssh://git.ablecorp.us:20/able/ableos

This commit is contained in:
Able 2022-04-25 15:34:59 -05:00
commit a78af58cba
4 changed files with 10 additions and 10 deletions

View file

@ -10,7 +10,7 @@ use crate::{
pub fn init() {
use crate::{
network::socket::SimpleSock, relib::network::socket::Socket,
scheduler::priority::Priority::High, stdio::StdIO,
scheduler::priority::Priority::High, stdio::StdIo,
};
let mut log_socket_id = SimpleSock::new();
@ -31,7 +31,7 @@ pub fn init() {
Capabilities::empty(),
High,
"".to_string(),
StdIO::new("null".to_string()),
StdIo::new("null".to_string()),
);
scheduler.add_process(process_0);
drop(scheduler);

View file

@ -3,7 +3,7 @@ pub mod priority;
pub mod proc;
use crate::scheduler::capabilities::Capabilities;
use crate::{arch::generate_process_pass, stdio::StdIO};
use crate::{arch::generate_process_pass, stdio::StdIo};
use kernel::proccess::PID;
use priority::Priority;
use proc::Process;
@ -70,7 +70,7 @@ impl Scheduler {
capabilities: Capabilities,
priority: Priority,
working_dir: String,
stdio: StdIO,
stdio: StdIo,
) -> Process {
Process {
pid: 0,

View file

@ -2,7 +2,7 @@
use super::capabilities::Capabilities;
use super::priority::Priority;
use crate::stdio::StdIO;
use crate::stdio::StdIo;
use kernel::proccess::PID;
/// A process
@ -20,5 +20,5 @@ pub struct Process {
/// A process's current working directory
pub working_dir: String,
pub stdio: StdIO,
pub stdio: StdIo,
}

View file

@ -5,13 +5,13 @@ use {
};
#[derive(Debug, Clone)]
pub struct StdIO {
pub struct StdIo {
device: String,
}
impl StdIO {
pub fn new(device: String) -> StdIO {
StdIO { device }
impl StdIo {
pub fn new(device: String) -> StdIo {
StdIo { device }
}
pub fn write(&mut self, args: Arguments) -> Result<(), Error> {
use crate::devices::DEVICE_TABLE;