this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix termios flush operation

+8 -5
+5 -5
src/kernel/emulation/linux/ioctl/termios.c
··· 189 189 } 190 190 case BSD_TIOCFLUSH: 191 191 { 192 - int queue = (int) arg; 193 - switch (queue) 192 + int queue; 193 + switch (*((int*) arg)) 194 194 { 195 - case BSD_TCIFLUSH: 195 + case BSD_FREAD: 196 196 queue = LINUX_TCIFLUSH; break; 197 - case BSD_TCOFLUSH: 197 + case BSD_FWRITE: 198 198 queue = LINUX_TCOFLUSH; break; 199 - case BSD_TCIOFLUSH: 199 + case (BSD_FREAD | BSD_FWRITE): 200 200 queue = LINUX_TCIOFLUSH; break; 201 201 default: 202 202 *retval = -EINVAL;
+3
src/kernel/emulation/linux/ioctl/termios.h
··· 378 378 #define LINUX_TCOFLUSH 1 379 379 #define LINUX_TCIOFLUSH 2 380 380 381 + #define BSD_FREAD 1 382 + #define BSD_FWRITE 2 383 + 381 384 #endif 382 385