Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

alpha: make XTABS equivalent to TAB3

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>
Signed-off-by: Matt Turner <mattst88@gmail.com>

authored by

Eugene Syromiatnikov and committed by
Matt Turner
77e5bff1 8cbab92d

+5 -1
+5 -1
arch/alpha/include/uapi/asm/termbits.h
··· 110 110 #define VTDLY 00200000 111 111 #define VT0 00000000 112 112 #define VT1 00200000 113 - #define XTABS 01000000 /* Hmm.. Linux/i386 considers this part of TABDLY.. */ 113 + /* 114 + * Should be equivalent to TAB3, see description of TAB3 in 115 + * POSIX.1-2008, Ch. 11.2.3 "Output Modes" 116 + */ 117 + #define XTABS TAB3 114 118 115 119 /* c_cflag bit meaning */ 116 120 #define CBAUD 0000037