Add fsync. Add env scheme, currently hardcoded to get ion to launch. Make serial IRQ send data to debug scheme

This commit is contained in:
Jeremy Soller 2016-09-18 17:55:35 -06:00
commit 483d466b1a

View file

@ -78,6 +78,10 @@ impl Scheme for InitFsScheme {
Err(Error::NotPermitted)
}
fn fsync(&mut self, file: usize) -> Result<()> {
Ok(())
}
fn close(&mut self, file: usize) -> Result<()> {
self.handles.remove(&file).ok_or(Error::BadFile).and(Ok(()))
}