]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-28367: Add additional baud rates for termios (GH-13142)
authorAnthony Shaw <anthony.p.shaw@gmail.com>
Sat, 4 Jan 2020 12:56:31 +0000 (23:56 +1100)
committerT. Wouters <thomas@python.org>
Sat, 4 Jan 2020 12:56:31 +0000 (13:56 +0100)
Co-authored-by: Andrey Smirnov <andrew.smirnov@gmail.com>.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Misc/NEWS.d/next/Library/2019-05-06-22-38-47.bpo-28367.2AKen5.rst [new file with mode: 0644]
Modules/termios.c

diff --git a/Misc/NEWS.d/next/Library/2019-05-06-22-38-47.bpo-28367.2AKen5.rst b/Misc/NEWS.d/next/Library/2019-05-06-22-38-47.bpo-28367.2AKen5.rst
new file mode 100644 (file)
index 0000000..115f458
--- /dev/null
@@ -0,0 +1,13 @@
+Termios magic constants for the following baud rates:\r
+  - B500000\r
+  - B576000\r
+  - B921600\r
+  - B1000000\r
+  - B1152000\r
+  - B1500000\r
+  - B2000000\r
+  - B2500000\r
+  - B3000000\r
+  - B3500000\r
+  - B4000000\r
+Patch by Andrey Smirnov
\ No newline at end of file
index b3b8c72bf6b84c797928c2b07d8db0a7838c0adb..0fd93c06c720393cf8a5e231a8666ee2f7d2c658 100644 (file)
@@ -613,6 +613,39 @@ static struct constant {
 #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 CBAUD
     {"CBAUD", CBAUD},
 #endif