From: jacob Date: Wed, 8 Dec 2010 14:21:35 +0000 (+0000) Subject: Add more possible baud rates to the Unix serial backend. These are the X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/25d0ab1e56605c1da5e526577d8894674f063a0c Add more possible baud rates to the Unix serial backend. These are the union of rates found in the termios.h of Linux 2.6.24 and "SunOS 5.6 Generic_105181-29 sun4u sparc SUNW,Ultra-4" machines. After a patch by Thomas Bechtold. git-svn-id: svn://svn.tartarus.org/sgt/putty@9028 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/unix/uxser.c b/unix/uxser.c index 22f4a065..59f8aa74 100644 --- a/unix/uxser.c +++ b/unix/uxser.c @@ -129,9 +129,51 @@ static const char *serial_configure(Serial serial, Config *cfg) #ifdef B115200 CHECKBAUD(115200); #endif +#ifdef B153600 + CHECKBAUD(153600); +#endif #ifdef B230400 CHECKBAUD(230400); #endif +#ifdef B307200 + CHECKBAUD(307200); +#endif +#ifdef B460800 + CHECKBAUD(460800); +#endif +#ifdef B500000 + CHECKBAUD(500000); +#endif +#ifdef B576000 + CHECKBAUD(576000); +#endif +#ifdef B921600 + CHECKBAUD(921600); +#endif +#ifdef B1000000 + CHECKBAUD(1000000); +#endif +#ifdef B1152000 + CHECKBAUD(1152000); +#endif +#ifdef B1500000 + CHECKBAUD(1500000); +#endif +#ifdef B2000000 + CHECKBAUD(2000000); +#endif +#ifdef B2500000 + CHECKBAUD(2500000); +#endif +#ifdef B3000000 + CHECKBAUD(3000000); +#endif +#ifdef B3500000 + CHECKBAUD(3500000); +#endif +#ifdef B4000000 + CHECKBAUD(4000000); +#endif #undef CHECKBAUD #undef SETBAUD cfsetispeed(&options, bflag);