forked from AbleOS/ableos
changes i guess
This commit is contained in:
parent
feccc3ab41
commit
f38027d128
6
TODO.md
6
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
|
- [ ] 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
|
||||||
|
|
|
@ -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())
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue