partially works

This commit is contained in:
Mackenzie Clark
2019-03-21 18:05:03 -07:00
parent 7c4b0d3b23
commit 33942d2fc9
2 changed files with 94 additions and 62 deletions

View File

@ -6,8 +6,9 @@ pub struct Stdout;
pub struct Stderr;
impl FileLike for Stdin {
fn write(&mut self, _buf: &[u8], _count: usize, _offset: usize) -> Result<usize, Error> {
unimplemented!()
fn write(&mut self, _buf: &[u8], count: usize, _offset: usize) -> Result<usize, Error> {
println!("writing to {} byte to dev stream...", count);
Ok(count)
}
fn read(&mut self, _buf: &mut [u8]) -> Result<usize, Error> {