re-organize modules for syscalls, windows is in bad shape

This commit is contained in:
Mackenzie Clark
2019-03-21 10:20:59 -07:00
parent 9ed593d7b6
commit 630d4bde13
11 changed files with 1238 additions and 323 deletions

View File

@ -6,7 +6,7 @@ pub struct Stdout;
pub struct Stderr;
impl FileLike for Stdin {
fn write(&mut self, buf: &[u8], _count: usize, _offset: usize) -> Result<usize, Error> {
fn write(&mut self, _buf: &[u8], _count: usize, _offset: usize) -> Result<usize, Error> {
unimplemented!()
}
@ -22,31 +22,3 @@ impl FileLike for Stdin {
unimplemented!()
}
}
//impl FileLike for Stdout {
// fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error> {
// unimplemented!()
// }
//
// fn close(self) -> Result<(), Error> {
// unimplemented!()
// }
//
// fn metadata(&self) -> Result<Metadata, Error> {
// unimplemented!()
// }
//}
//
//impl FileLike for Stderr {
// fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error> {
// unimplemented!()
// }
//
// fn close(self) -> Result<(), Error> {
// unimplemented!()
// }
//
// fn metadata(&self) -> Result<Metadata, Error> {
// unimplemented!()
// }
//}