Skip to contentSkip to conversation

sparc: Merge asm-sparc{,64}/termbits.h

PATCH In review Sam Ravnborg 1 participant 1 message Jun 6, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 17/21 sparc: Merge asm-sparc{,64}/termbits.h

The type of tcflag_t differs from 32 and 64 bit. For 32 bit it is long
For 64 bit it is int

Although these have same size then I was not sure that it was OK to change the 64 bit version to long as this is part of the ABI.

---
 include/asm-sparc/termbits.h   |    5 +
 include/asm-sparc64/termbits.h |  261 +---------------------------------------
 2 files changed, 6 insertions(+), 260 deletions(-)
include/asm-sparc/termbits.h +5 -0
index 90cf221..d6ca3e2 100644
@@ -5,7 +5,12 @@
 
 typedef unsigned char   cc_t;
 typedef unsigned int    speed_t;
+
+#if defined(__sparc__) && defined(__arch64__)
+typedef unsigned int    tcflag_t;
+#else
 typedef unsigned long   tcflag_t;
+#endif
 
 #define NCC 8
 struct termio {
include/asm-sparc64/termbits.h +1 -260

261 lines not on this page · raw message

Signature · 1 line
1.5.4.1.143.ge7e51