summaryrefslogtreecommitdiff
path: root/include/linux/termios_internal.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2022-08-10 02:41:40 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-09-09 11:44:35 +0300
commite7b4c812b9685e22753d6355e53fdeaaa22862dd (patch)
tree29388b5ad3a1f3eafe383a53ad35e30c7c42cd7d /include/linux/termios_internal.h
parentd04f9915fa44b52d7a91080677381a082238e9c4 (diff)
downloadlinux-e7b4c812b9685e22753d6355e53fdeaaa22862dd.tar.xz
termios: convert the last (sparc) INIT_C_CC to array
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Link: https://lore.kernel.org/r/YxDnDCR2VRTA3Etp@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.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/termios_internal.h b/include/linux/termios_internal.h
index 8a53141ab44a..d77f29e5e2b7 100644
--- a/include/linux/termios_internal.h
+++ b/include/linux/termios_internal.h
@@ -5,13 +5,19 @@
#include <linux/uaccess.h>
#include <asm/termios.h>
-#ifndef INIT_C_CC
/* 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=^O werase=^W lnext=^V
eol2=\0
*/
+
+#ifdef VDSUSP
+#define INIT_C_CC_VDSUSP_EXTRA [VDSUSP] = 'Y'-0x40,
+#else
+#define INIT_C_CC_VDSUSP_EXTRA
+#endif
+
#define INIT_C_CC { \
[VINTR] = 'C'-0x40, \
[VQUIT] = '\\'-0x40, \
@@ -25,8 +31,8 @@
[VDISCARD] = 'O'-0x40, \
[VWERASE] = 'W'-0x40, \
[VLNEXT] = 'V'-0x40, \
+ INIT_C_CC_VDSUSP_EXTRA \
[VMIN] = 1 }
-#endif
int user_termio_to_kernel_termios(struct ktermios *, struct termio __user *);
int kernel_termios_to_user_termio(struct termio __user *, struct ktermios *);