From: "H. Peter Anvin" (Intel) <h...@zytor.com> This patch adds support to stty for the cases where:
- speed_t is a simple arbitrary baud rate, e.g. Hurd, Linux with the upcoming glibc 2.42+, some BSDs, and probably others. - speed_t is an enumeration, but there are baud rate constants that are not otherwise known. An attempt is made to extract them by calling "$(COMPILE) -E -dM" on a dummy .c file which includes <termios.h>; if this is not possible then a rather extensive fallback list is used. A small shell script is then used to turn this into a C source fragment. I have verified that I have an employer (Intel) copyright assignment that covers coreutils contributions.