* [RFC PATCH] alpha: make XTABS equivalent to TAB3
@ 2017-09-14 11:53 Eugene Syromiatnikov
0 siblings, 0 replies; only message in thread
From: Eugene Syromiatnikov @ 2017-09-14 11:53 UTC (permalink / raw)
To: linux-alpha; +Cc: linux-kernel, Richard Henderson, Ivan Kokshaysky, Matt Turner
XTABS is an old name for "expand tabs to spaces" flag, which was a
separate flag on some BSD implementations. POSIX, however, specifies
that this effect is enabled with TAB3 output mode.
Currently, alpha is the only architecture that has the value of
the XTABS flag not equivalent to TAB3.
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
---
arch/alpha/include/uapi/asm/termbits.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/arch/alpha/include/uapi/asm/termbits.h b/arch/alpha/include/uapi/asm/termbits.h
index 879dd35..5510770 100644
--- a/arch/alpha/include/uapi/asm/termbits.h
+++ b/arch/alpha/include/uapi/asm/termbits.h
@@ -109,7 +109,11 @@ struct ktermios {
#define VTDLY 00200000
#define VT0 00000000
#define VT1 00200000
-#define XTABS 01000000 /* Hmm.. Linux/i386 considers this part of TABDLY.. */
+/*
+ * Should be equivalent to TAB3, see description of TAB3 in
+ * POSIX.1-2008, Ch. 11.2.3 "Output Modes"
+ */
+#define XTABS TAB3
/* c_cflag bit meaning */
#define CBAUD 0000037
--
2.9.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-09-14 11:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-14 11:53 [RFC PATCH] alpha: make XTABS equivalent to TAB3 Eugene Syromiatnikov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox