[PATCH] Cygwin: cfsetspeed: allow speed to be a numerical baud rate
Corinna Vinschen
corinna-cygwin@cygwin.com
Mon Jul 12 18:49:09 GMT 2021
On Jul 12 08:57, Ken Brown wrote:
> The attached patch addresses
>
> https://cygwin.com/pipermail/cygwin/2021-July/248887.html
>
> I don't really understand the GPL issue, but I hope it's OK.
>
> Ken
> >From 0321ecd99050ad702a528797af48ea4d01531508 Mon Sep 17 00:00:00 2001
> From: Ken Brown <kbrown@cornell.edu>
> Date: Sun, 11 Jul 2021 07:04:58 -0400
> Subject: [PATCH] Cygwin: cfsetspeed: allow speed to be a numerical baud rate
>
> The Linux man page for cfsetspeed(3) specifies that the speed argument
> must be one of the constants Bnnn (e.g., B9600) defined in termios.h.
> But Linux in fact allows the speed to be the numerical baud rate
> (e.g., 9600). For consistency with Linux, we now do the same.
>
> Addresses: https://cygwin.com/pipermail/cygwin/2021-July/248887.html
> ---
> winsup/cygwin/release/3.2.1 | 4 +++
> winsup/cygwin/termios.cc | 59 +++++++++++++++++++++++++++++++++++++
> winsup/doc/new-features.xml | 11 +++++--
> 3 files changed, 71 insertions(+), 3 deletions(-)
LGTM, please push.
Thanks,
Corinna
More information about the Cygwin-patches
mailing list