Add termios read/write file

This commit is contained in:
Jeremy Soller
2017-07-23 10:53:24 -06:00
parent 854b6470c4
commit 36a34e70b2
6 changed files with 122 additions and 5 deletions
+4
View File
@@ -31,6 +31,10 @@ impl Resource for PtyMaster {
fn pty(&self) -> Weak<RefCell<Pty>> {
Rc::downgrade(&self.pty)
}
fn flags(&self) -> usize {
self.flags
}
fn path(&self, buf: &mut [u8]) -> Result<usize> {
self.pty.borrow_mut().path(buf)