diff --git a/Misc/NEWS.d/next/Library/2024-11-27-23-13-21.gh-issue-127335.IiqYeX.rst b/Misc/NEWS.d/next/Library/2024-11-27-23-13-21.gh-issue-127335.IiqYeX.rst new file mode 100644 index 00000000000000..0e8ddfe0cd2ecb --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-11-27-23-13-21.gh-issue-127335.IiqYeX.rst @@ -0,0 +1,2 @@ +Add the ``TIOCM_OUT1``, ``TIOCM_OUT2``, and ``TIOCM_LOOP`` constants to the +:mod:`termios` module. diff --git a/Modules/termios.c b/Modules/termios.c index efb5fcc17fa5ef..23d5d54765627c 100644 --- a/Modules/termios.c +++ b/Modules/termios.c @@ -1232,6 +1232,15 @@ static struct constant { #ifdef TIOCM_ST {"TIOCM_ST", TIOCM_ST}, #endif +#ifdef TIOCM_OUT1 + {"TIOCM_OUT1", TIOCM_OUT1}, +#endif +#ifdef TIOCM_OUT2 + {"TIOCM_OUT2", TIOCM_OUT2}, +#endif +#ifdef TIOCM_LOOP + {"TIOCM_LOOP", TIOCM_LOOP}, +#endif #ifdef TIOCNOTTY {"TIOCNOTTY", TIOCNOTTY}, #endif