1
0
Fork 0
forked from koniifer/ableos

changes i guess

This commit is contained in:
able 2022-06-13 22:25:39 -05:00
parent feccc3ab41
commit f38027d128
3 changed files with 1 additions and 34 deletions

View file

@ -12,7 +12,6 @@ A new process should not have any capabilities at all until it is given them or
- [ ] write a file - [ ] write a file
- [ ] delete a file - [ ] delete a file
- [ ] Network cap - [ ] Network cap
- [ ] open/close socket - [ ] open/close socket
- [ ] bind/unbind 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 - [ ] spawn Process cap
- [ ] kill Process cap - [ ] kill Process cap
## Riscv ## Riscv
## ARM ## ARM

View file

@ -1,27 +0,0 @@
use hashbrown::HashMap;
pub static ALIAS_TABLE: spin::Mutex<AliasTable> = 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<String, String>,
}
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<String> {
let alias_table = ALIAS_TABLE.lock();
alias_table.table.get(&alias).map(|x| x.to_string())
}
}

View file

@ -95,7 +95,7 @@ pub fn scratchpad() {
debug!("{}", generate_process_pass()); debug!("{}", generate_process_pass());
} }
/*
debug!("start the graphics"); debug!("start the graphics");
let mut abcde = SCREEN_BUFFER.lock(); let mut abcde = SCREEN_BUFFER.lock();