Cleanup termios and ioctls and add tcflush

This commit is contained in:
Jeremy Soller
2019-01-27 19:19:50 -07:00
parent 602f015e93
commit d2502056a8
3 changed files with 148 additions and 157 deletions
+1 -1
View File
@@ -618,7 +618,7 @@ pub unsafe extern "C" fn realpath(pathname: *const c_char, resolved: *mut c_char
resolved
};
let mut out = slice::from_raw_parts_mut(ptr as *mut u8, limits::PATH_MAX);
let out = slice::from_raw_parts_mut(ptr as *mut u8, limits::PATH_MAX);
{
let file = match File::open(&CStr::from_ptr(pathname), O_PATH | O_CLOEXEC) {
Ok(file) => file,