summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-11-21 12:21:55 +0000
committerJim Meyering <jim@meyering.net>2002-11-21 12:21:55 +0000
commite688809a5c5997195c8bdd18d488eb3cc80cb70b (patch)
tree3f6e82a842f076c6ea65379283265e530aef7ded /src
parentd80aa4a03f793c6bbee44db1e75fdf9e55fa94b9 (diff)
downloadcoreutils-e688809a5c5997195c8bdd18d488eb3cc80cb70b.tar.xz
stty doesn't support all baud rates available in current Linux kernels.
When trying to set a high baud rate using stty, it says "invalid argument". When the high rate is already configured, "stty -a" returns 0 instead of the true baud rate. (struct speeds): Add support for all baud rates defined in linux-2.4.19.
Diffstat (limited to 'src')
-rw-r--r--src/stty.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/stty.c b/src/stty.c
index de4e26193..f8ba1972d 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -1795,6 +1795,39 @@ struct speed_map speeds[] =
#ifdef B460800
{"460800", B460800, 460800},
#endif
+#ifdef B500000
+ {"500000", B500000, 500000},
+#endif
+#ifdef B576000
+ {"576000", B576000, 576000},
+#endif
+#ifdef B921600
+ {"921600", B921600, 921600},
+#endif
+#ifdef B1000000
+ {"1000000", B1000000, 1000000},
+#endif
+#ifdef B1152000
+ {"1152000", B1152000, 1152000},
+#endif
+#ifdef B1500000
+ {"1500000", B1500000, 1500000},
+#endif
+#ifdef B2000000
+ {"2000000", B2000000, 2000000},
+#endif
+#ifdef B2500000
+ {"2500000", B2500000, 2500000},
+#endif
+#ifdef B3000000
+ {"3000000", B3000000, 3000000},
+#endif
+#ifdef B3500000
+ {"3500000", B3500000, 3500000},
+#endif
+#ifdef B4000000
+ {"4000000", B4000000, 4000000},
+#endif
{NULL, 0, 0}
};