summaryrefslogtreecommitdiff
path: root/src/stty.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-10-08 00:40:55 +0000
committerJim Meyering <jim@meyering.net>1994-10-08 00:40:55 +0000
commitd734172c73f2bf1e850e896a615f7d6f1dbf4445 (patch)
treeccd6e3216931c8d4717188e252f2de3c515b3c8d /src/stty.c
parent5a31cea3d4d2f9293fdb794b950952ae89753883 (diff)
downloadcoreutils-d734172c73f2bf1e850e896a615f7d6f1dbf4445.tar.xz
merge with 1.10q
Diffstat (limited to 'src/stty.c')
-rw-r--r--src/stty.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/stty.c b/src/stty.c
index b98d1a9b8..16351edf5 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -126,6 +126,15 @@
#if defined(VFLUSH) && !defined(VFLUSHO) /* Ultrix 4.2 */
#define VFLUSHO VFLUSH
#endif
+#if defined(CTLECH) && !defined(ECHOCTL) /* Ultrix 4.3 */
+#define ECHOCTL CTLECH
+#endif
+#if defined(TCTLECH) && !defined(ECHOCTL) /* Ultrix 4.2 */
+#define ECHOCTL TCTLECH
+#endif
+#if defined(CRTKIL) && !defined(ECHOKE) /* Ultrix 4.2 and 4.3 */
+#define ECHOKE CRTKIL
+#endif
#if defined(VFLUSHO) && !defined(CFLUSHO)
#define CFLUSHO Control ('o')
#endif
@@ -905,8 +914,16 @@ main (argc, argv)
new_mode.c_cflag &= (~CIBAUD);
if (speed_was_set || memcmp (&mode, &new_mode, sizeof (mode)) != 0)
#endif
+ {
+ int i;
error (1, 0,
"standard input: unable to perform all requested operations");
+ printf ("new_mode: mode\n");
+ for (i=0; i<sizeof(new_mode); i++)
+ printf ("0x%02x: 0x%02x\n",
+ *(((unsigned char *) &new_mode) + i),
+ *(((unsigned char *) &mode) + i));
+ }
}
}