010-fix-regression-in-tcsetattr-on-all-mips-archs.patch 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. From cff5747c74c41b22f1ce1340978b1c226a8cdf32 Mon Sep 17 00:00:00 2001
  2. From: Rich Felker <[email protected]>
  3. Date: Wed, 13 Jul 2016 15:04:30 -0400
  4. Subject: [PATCH] fix regression in tcsetattr on all mips archs
  5. revert commit 8c316e9e49d37ad92c2e7493e16166a2afca419f. it was wrong
  6. and does not match how the kernel API works.
  7. ---
  8. arch/mips/bits/termios.h | 6 +++---
  9. arch/mips64/bits/termios.h | 6 +++---
  10. arch/mipsn32/bits/termios.h | 6 +++---
  11. 4 files changed, 10 insertions(+), 10 deletions(-)
  12. diff --git a/arch/mips/bits/termios.h b/arch/mips/bits/termios.h
  13. index f559f76..6a1205d 100644
  14. --- a/arch/mips/bits/termios.h
  15. +++ b/arch/mips/bits/termios.h
  16. @@ -141,9 +141,9 @@ struct termios {
  17. #define TCOFLUSH 1
  18. #define TCIOFLUSH 2
  19. -#define TCSANOW 0x540e
  20. -#define TCSADRAIN 0x540f
  21. -#define TCSAFLUSH 0x5410
  22. +#define TCSANOW 0
  23. +#define TCSADRAIN 1
  24. +#define TCSAFLUSH 2
  25. #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
  26. #define EXTA 0000016
  27. diff --git a/arch/mips64/bits/termios.h b/arch/mips64/bits/termios.h
  28. index f559f76..6a1205d 100644
  29. --- a/arch/mips64/bits/termios.h
  30. +++ b/arch/mips64/bits/termios.h
  31. @@ -141,9 +141,9 @@ struct termios {
  32. #define TCOFLUSH 1
  33. #define TCIOFLUSH 2
  34. -#define TCSANOW 0x540e
  35. -#define TCSADRAIN 0x540f
  36. -#define TCSAFLUSH 0x5410
  37. +#define TCSANOW 0
  38. +#define TCSADRAIN 1
  39. +#define TCSAFLUSH 2
  40. #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
  41. #define EXTA 0000016
  42. diff --git a/arch/mipsn32/bits/termios.h b/arch/mipsn32/bits/termios.h
  43. index f559f76..6a1205d 100644
  44. --- a/arch/mipsn32/bits/termios.h
  45. +++ b/arch/mipsn32/bits/termios.h
  46. @@ -141,9 +141,9 @@ struct termios {
  47. #define TCOFLUSH 1
  48. #define TCIOFLUSH 2
  49. -#define TCSANOW 0x540e
  50. -#define TCSADRAIN 0x540f
  51. -#define TCSAFLUSH 0x5410
  52. +#define TCSANOW 0
  53. +#define TCSADRAIN 1
  54. +#define TCSAFLUSH 2
  55. #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
  56. #define EXTA 0000016
  57. --
  58. 2.8.1