[git commit master 1/1] stty: make swtch and iutf8 visible/settable
Denys Vlasenko
vda.linux at googlemail.com
Mon Jan 24 15:36:15 UTC 2011
commit: http://git.busybox.net/busybox/commit/?id=271c0ce379be4b59d28e17f4774f5a078e77f64b
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
coreutils/stty.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/coreutils/stty.c b/coreutils/stty.c
index e28e15c..25c00d1 100644
--- a/coreutils/stty.c
+++ b/coreutils/stty.c
@@ -59,6 +59,10 @@
#if defined(VEOL2) && !defined(CEOL2)
# define CEOL2 _POSIX_VDISABLE
#endif
+/* glibc-2.12.1 uses only VSWTC name */
+#if defined(VSWTC) && !defined(VSWTCH)
+# define VSWTCH VSWTC
+#endif
/* ISC renamed swtch to susp for termios, but we'll accept either name */
#if defined(VSUSP) && !defined(VSWTCH)
# define VSWTCH VSUSP
@@ -221,6 +225,9 @@
#ifndef XCASE
# define XCASE 0
#endif
+#ifndef IUTF8
+# define IUTF8 0
+#endif
/* Which speeds to set */
enum speed_setting {
@@ -348,6 +355,9 @@ static const char mode_name[] =
#if IMAXBEL
MI_ENTRY("imaxbel", input, SANE_SET | REV, IMAXBEL, 0 )
#endif
+#if IUTF8
+ MI_ENTRY("iutf8", input, SANE_UNSET | REV, IUTF8, 0 )
+#endif
MI_ENTRY("opost", output, SANE_SET | REV, OPOST, 0 )
#if OLCUC
MI_ENTRY("olcuc", output, SANE_UNSET | REV, OLCUC, 0 )
@@ -502,6 +512,9 @@ static const struct mode_info mode_info[] = {
#if IMAXBEL
MI_ENTRY("imaxbel", input, SANE_SET | REV, IMAXBEL, 0 )
#endif
+#if IUTF8
+ MI_ENTRY("iutf8", input, SANE_UNSET | REV, IUTF8, 0 )
+#endif
MI_ENTRY("opost", output, SANE_SET | REV, OPOST, 0 )
#if OLCUC
MI_ENTRY("olcuc", output, SANE_UNSET | REV, OLCUC, 0 )
--
1.7.3.4
More information about the busybox-cvs
mailing list