summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-11-20 20:03:08 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-11-20 20:03:08 (GMT)
commita78f74ce02f5092e4c385eb2aee709d00942d0ed (patch)
tree587d293f86c3a141a31a5d6b587660f84c432fec
parent74abf6f873ff8fa37f7418c97ce2f0eb27ee09b6 (diff)
downloadcpython-a78f74ce02f5092e4c385eb2aee709d00942d0ed.zip
cpython-a78f74ce02f5092e4c385eb2aee709d00942d0ed.tar.gz
cpython-a78f74ce02f5092e4c385eb2aee709d00942d0ed.tar.bz2
Issue #8078: Add constants for higher baud rates in the termios module.
Patch by Rodolpho Eckhardt.
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS3
-rw-r--r--Modules/termios.c37
3 files changed, 41 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index d61f953..99c09a3 100644
--- 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
diff --git a/Misc/NEWS b/Misc/NEWS
index 43afccd..0c0f5ad 100644
--- 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.
diff --git a/Modules/termios.c b/Modules/termios.c
index f370c46..edeb6f5 100644
--- a/Modules/termios.c
+++ b/Modules/termios.c
@@ -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