Skip to content
Snippets Groups Projects

Handle TCSETSW and TCSETSF in ioctl

Merged coolreader18 requested to merge coolreader18/relibc:fix-tcsetattr into master
1 unresolved thread
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -84,7 +84,7 @@ pub unsafe extern "C" fn ioctl(fd: c_int, request: c_ulong, out: *mut c_void) ->
}
}
// TODO: give these different behaviors
TCSETS..=TCSETSF => {
TCSETS | TCSETSW | TCSETSF => {
let termios = &*(out as *const termios::termios);
if e(dup_write(fd, "termios", termios)) == !0 {
-1
Loading