summaryrefslogtreecommitdiff
path: root/include/linux/termios_internal.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2022-08-10 00:17:04 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-09-09 11:44:34 +0300
commit38fc315a73f7a1b2d19eb32dd55de089b78b2a54 (patch)
tree158b5f3e9a07e974f80c1a386f778287a9148f1e /include/linux/termios_internal.h
parentc9874d3ffeaf8ee215187692ed918b3031d996d1 (diff)
downloadlinux-38fc315a73f7a1b2d19eb32dd55de089b78b2a54.tar.xz
termios: consolidate values for VDISCARD in INIT_C_CC
On old systems it used to be ^O. Linux had never actually used the value, but INIT_C_CC (on i386) did initialize it to ^O; unfortunately, it had a typo in the comment claiming that to be ^U. Most of the architectures copied the (correct) definition along with mistaken comment. alpha, powerpc and sparc tried to make the definition match comment. However, util-linux still resets it to ^O on any architecture, ^O is the historical value, kernel ignores it anyway and finally, Linus said "Just change everybody to do the same, nobody cares about VDISCARD". Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Link: https://lore.kernel.org/r/YxDmy//MKzs3ye7l@ZenIV Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/termios_internal.h')
-rw-r--r--include/linux/termios_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/termios_internal.h b/include/linux/termios_internal.h
index 103ca0370948..7eb3598c109d 100644
--- a/include/linux/termios_internal.h
+++ b/include/linux/termios_internal.h
@@ -9,7 +9,7 @@
/* intr=^C quit=^\ erase=del kill=^U
eof=^D vtime=\0 vmin=\1 sxtc=\0
start=^Q stop=^S susp=^Z eol=\0
- reprint=^R discard=^U werase=^W lnext=^V
+ reprint=^R discard=^O werase=^W lnext=^V
eol2=\0
*/
#define INIT_C_CC "\003\034\177\025\004\0\1\0\021\023\032\0\022\017\027\026\0"