Implement exec
Implement brk
This commit is contained in:
parent
f2ca411cd6
commit
44e8b99b46
11 changed files with 122 additions and 59 deletions
|
@ -6,7 +6,7 @@ use super::Scheme;
|
|||
pub struct DebugScheme;
|
||||
|
||||
impl Scheme for DebugScheme {
|
||||
fn open(&mut self, path: &[u8], _flags: usize) -> Result<usize> {
|
||||
fn open(&mut self, _path: &[u8], _flags: usize) -> Result<usize> {
|
||||
Ok(0)
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,8 @@ impl InitFsScheme {
|
|||
pub fn new() -> InitFsScheme {
|
||||
let mut files: BTreeMap<&'static [u8], &'static [u8]> = BTreeMap::new();
|
||||
|
||||
files.insert(b"init", include_bytes!("../../build/userspace/init"));
|
||||
files.insert(b"bin/init", include_bytes!("../../build/userspace/init"));
|
||||
files.insert(b"etc/init.rc", b"echo testing\n");
|
||||
|
||||
InitFsScheme {
|
||||
next_id: 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue