diff --git a/TODO.md b/TODO.md index 6f479393..fb0e7762 100644 --- a/TODO.md +++ b/TODO.md @@ -12,7 +12,6 @@ A new process should not have any capabilities at all until it is given them or - [ ] write a file - [ ] delete a file - - [ ] Network cap - [ ] open/close socket - [ ] bind/unbind socket @@ -21,11 +20,6 @@ A new process should not have any capabilities at all until it is given them or - [ ] spawn Process cap - [ ] kill Process cap - - - - - ## Riscv ## ARM diff --git a/ableos/src/alias_table/mod.rs b/ableos/src/alias_table/mod.rs deleted file mode 100644 index f009aeef..00000000 --- a/ableos/src/alias_table/mod.rs +++ /dev/null @@ -1,27 +0,0 @@ -use hashbrown::HashMap; - -pub static ALIAS_TABLE: spin::Mutex = spin::Mutex::new(AliasTable::new()); - -/// A table of aliases -/// -/// This is used to allow users to specify aliases for files and commands -pub struct AliasTable { - pub table: HashMap, -} - -impl AliasTable { - pub fn new() -> Self { - Self { - table: HashMap::new(), - } - } - - pub fn add_alias(&mut self, alias: String, path: String) { - self.table.insert(alias, path); - } - - pub fn get_alias(&self, alias: String) -> Option { - let alias_table = ALIAS_TABLE.lock(); - alias_table.table.get(&alias).map(|x| x.to_string()) - } -} diff --git a/ableos/src/scratchpad.rs b/ableos/src/scratchpad.rs index bf6a5dc0..225ef4a3 100644 --- a/ableos/src/scratchpad.rs +++ b/ableos/src/scratchpad.rs @@ -95,7 +95,7 @@ pub fn scratchpad() { debug!("{}", generate_process_pass()); } - + /* debug!("start the graphics"); let mut abcde = SCREEN_BUFFER.lock();