Issue #8078: Add constants for higher baud rates in the termios module.
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 20 Nov 2010 20:03:08 +0000 (20:03 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 20 Nov 2010 20:03:08 +0000 (20:03 +0000)
Patch by Rodolpho Eckhardt.

Misc/ACKS
Misc/NEWS
Modules/termios.c

index d61f9534794e4908895582107d0cb8cc2daa9200..99c09a36f1ca7cef5b5555d78007f496c838ed5e 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -235,6 +235,7 @@ Josip Dzolonga
 Maxim Dzumanenko
 Walter Dörwald
 Hans Eckardt
+Rodolpho Eckhardt
 Grant Edwards
 John Ehresman
 Eric Eisner
index 43afccd64284ae16333e3d3486b725e5e5e15048..0c0f5add26c99980744253031e3403d12ce113b3 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -30,6 +30,9 @@ Core and Builtins
 Library
 -------
 
+- Issue #8078: Add constants for higher baud rates in the termios module.
+  Patch by Rodolpho Eckhardt.
+
 - Issue #10407: Fix two NameErrors in distutils.
 
 - Issue #10371: Deprecated undocumented functions in the trace module.
index f370c4643fce4ffda44ddbf7681bb6f11bf8c624..edeb6f5c452f33875b00e6ba4c329993798afeb5 100644 (file)
@@ -347,6 +347,43 @@ static struct constant {
 #ifdef B230400
     {"B230400", B230400},
 #endif
+#ifdef B460800
+    {"B460800", B460800},
+#endif
+#ifdef B500000
+    {"B500000", B500000},
+#endif
+#ifdef B576000
+    {"B576000", B576000},
+#endif
+#ifdef B921600
+    {"B921600", B921600},
+#endif
+#ifdef B1000000
+    {"B1000000", B1000000},
+#endif
+#ifdef B1152000
+    {"B1152000", B1152000},
+#endif
+#ifdef B1500000
+    {"B1500000", B1500000},
+#endif
+#ifdef B2000000
+    {"B2000000", B2000000},
+#endif
+#ifdef B2500000
+    {"B2500000", B2500000},
+#endif
+#ifdef B3000000
+    {"B3000000", B3000000},
+#endif
+#ifdef B3500000
+    {"B3500000", B3500000},
+#endif
+#ifdef B4000000
+    {"B4000000", B4000000},
+#endif
+
 #ifdef CBAUDEX
     {"CBAUDEX", CBAUDEX},
 #endif