Implement exec

Implement brk
This commit is contained in:
Jeremy Soller 2016-09-10 22:06:09 -06:00
parent f2ca411cd6
commit 44e8b99b46
11 changed files with 122 additions and 59 deletions

View file

@ -1,7 +1,15 @@
use std::fs::File;
use std::io::{BufRead, BufReader};
use std::thread;
pub fn main() {
println!("Hello, World!");
let mut file = File::open("initfs:etc/init.rc").expect("failed to open init.rc");
let mut reader = BufReader::new(file);
for line in reader.lines() {
println!("{}", line.expect("failed to read init.rc"));
}
loop {
thread::yield_now();
}