Bug 17783 - TIOCSER_TEMT conditions inconsistent
Summary: TIOCSER_TEMT conditions inconsistent
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.21
: P2 normal
Target Milestone: 2.29
Assignee: Adhemerval Zanella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-02 17:10 UTC by Joseph Myers
Modified: 2019-01-03 13:40 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Myers 2015-01-02 17:10:43 UTC
sysdeps/unix/sysv/linux/powerpc/bits/termios.h defines TIOCSER_TEMT if __USE_MISC, sysdeps/unix/sysv/linux/sparc/bits/termios.h if __USE_GNU; the glibc API should be consistent about the conditions for this macro, on platforms where it exists at all.  (MIPS defines it unconditionally - bug 17782 - I intend to fix that by using __USE_MISC as the most conservative fix, but the API still needs to be made consistent across platforms.)
Comment 1 Sourceware Commits 2015-01-02 18:32:46 UTC
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  253a59ccb571dc67b6dc303192d8d99378a35c75 (commit)
      from  27dae0113e527aa2a94350d1f624c6e7c81139ce (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=253a59ccb571dc67b6dc303192d8d99378a35c75

commit 253a59ccb571dc67b6dc303192d8d99378a35c75
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Fri Jan 2 18:31:41 2015 +0000

    Fix MIPS TIOCSER_TEMT namespace (bug 17782).
    
    sysdeps/unix/sysv/linux/mips/bits/termios.h defines TIOCSER_TEMT
    unconditionally, but it's in the user's namespace.  This patch
    conditions it on __USE_MISC, as on powerpc.  I've filed bug 17783 for
    the residual inconsistency in conditions on this macro (sparc defines
    it for __USE_GNU only).
    
    	[BZ #17782]
    	* sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
    	Condition macro definition on [__USE_MISC].

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                   |    4 ++++
 NEWS                                        |    2 +-
 sysdeps/unix/sysv/linux/mips/bits/termios.h |    4 +++-
 3 files changed, 8 insertions(+), 2 deletions(-)
Comment 2 Sourceware Commits 2019-01-03 13:39:28 UTC
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  6f343c1f338ca70411772309a3bbb1d67c71f419 (commit)
       via  51f4beb0812fa407fb9638637c81b4f303e2241f (commit)
       via  f69c5cb2a53c242e24f41145f64e3480856a4dd6 (commit)
       via  3aa4a07ec1b2b6b2ba90d2fb54eaefe194b210f1 (commit)
       via  22679ddf10487fe419c07de46427cf0173d008e3 (commit)
       via  72eb6ecc7efeab35554d54c64dc3358edd1db822 (commit)
       via  9c5d0d02c1122d10c2407333eeecd1ee2285084b (commit)
       via  7b832018881cbc860c70b7a768dae9cfb7b55663 (commit)
       via  3127003e756f3202462a11d8e5bd2b994b056c91 (commit)
       via  48c1dd963233930f55c48fe3f38ce6c2362fc373 (commit)
       via  e5a50db36eaa6e8c6427b3a971563240b633ca85 (commit)
       via  8083afa55d8c68abc02902e9a6ff16be5f301940 (commit)
      from  4d7d7dc6fe52216bab2a1a171966028276b0dde3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6f343c1f338ca70411772309a3bbb1d67c71f419

commit 6f343c1f338ca70411772309a3bbb1d67c71f419
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Oct 9 18:57:53 2018 -0300

    termios: Consolidate termios.h
    
    This patch consolidates the Linux termios.h by removing the arch-specific
    one.
    
    No semantic change is expected, checked on a build against x86_64-linux-gnu,
    alpha-linux-gnu, mips64-linux-gnu, and sparc64-linux-gnu.
    
    	* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
    	bits/termios-misc.h.
    	* sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
    	* sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
    	* sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=51f4beb0812fa407fb9638637c81b4f303e2241f

commit 51f4beb0812fa407fb9638637c81b4f303e2241f
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Oct 9 17:41:28 2018 -0300

    termios: Add powerpc termios-misc
    
    PowerPC termios.h header contains additional BSD terminal mode definitions
    (sgttyb, tchars, ltchars, and associated TIOCPKT_* symbolic constants).
    This patch moves all powerpc termios specific definition to its own header.
    
    No semantic change is expected, checked on a build against a
    powerpc64le-linux-gnu build.
    
    	* sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
    	* sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
    	(struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
    	TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
    	TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
    	_VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
    	termios-misc.h.
    	* sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
    	(sysdep_headers): Add termios-misc.h.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f69c5cb2a53c242e24f41145f64e3480856a4dd6

commit f69c5cb2a53c242e24f41145f64e3480856a4dd6
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Oct 9 17:28:27 2018 -0300

    termios: Remove Linux _IOT_termios
    
    It is used only on hurd.
    
    No semantic change is expected, checked on a build against x86_64-linux-gnu,
    alpha-linux-gnu, mips64-linux-gnu, and sparc64-linux-gnu.
    
    	* sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
    	* sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3aa4a07ec1b2b6b2ba90d2fb54eaefe194b210f1

commit 3aa4a07ec1b2b6b2ba90d2fb54eaefe194b210f1
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Oct 9 15:54:16 2018 -0300

    termios: Consolidate tcflow symbolic constants
    
    This patch consolidates the termios symbolic constants for use with tcflow
    in its own header.  The Linux generic implementation values match the
    kernel UAPI and each architecture with deviate values have their own
    implementation (currently only mips).
    
    No semantic change is expected, checked on a build against x86_64-linux-gnu,
    alpha-linux-gnu, mips64-linux-gnu, and sparc64-linux-gnu.
    
    	* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
    	termios-tcflow.h.
    	* sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
    	* sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
    	* sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
    	TCSAFLUSH): Move to termios-tcflow.h.
    	* sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=22679ddf10487fe419c07de46427cf0173d008e3

commit 22679ddf10487fe419c07de46427cf0173d008e3
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Oct 9 15:34:31 2018 -0300

    termios: Consolidate local mode definitions
    
    This patch consolidates the termios symbolic constants used for local
    mode with c_lflag member on its own header.  The Linux generic implementation
    values match the kernel UAPI and each architecture with deviate values
    have their own implementation (in this case alpha, mips, and powerpc).
    
    No semantic change is expected, checked on a build against x86_64-linux-gnu,
    alpha-linux-gnu, mips64-linux-gnu, and sparc64-linux-gnu.
    
    	* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
    	termios-c_lflag.h.
    	* sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
    	* sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
    	* sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
    	* sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
    	* sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
    	ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
    	[__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
    	[__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
    	Likewise.
    	* sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=72eb6ecc7efeab35554d54c64dc3358edd1db822

commit 72eb6ecc7efeab35554d54c64dc3358edd1db822
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Oct 9 15:03:30 2018 -0300

    termios: Consolidate control mode definitions
    
    This patch consolidates the termios symbolic constants used for output
    mode with c_cflag memver on its own header.  The Linux generic
    implementation values match the kernel UAPI and each architecture with
    deviate values have their own implementation (in this case alpha and
    powerpc).
    
    No semantic change is expected, checked on a build against x86_64-linux-gnu,
    alpha-linux-gnu, mips64-linux-gnu, and sparc64-linux-gnu.
    
    	* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
    	termios-c_cflag.h.
    	* sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
    	* sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
    	* sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
    	* sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
    	CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
    	termios-c_cflag.h.
    	* sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9c5d0d02c1122d10c2407333eeecd1ee2285084b

commit 9c5d0d02c1122d10c2407333eeecd1ee2285084b
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Oct 9 14:35:03 2018 -0300

    termios: Consolidate Baud Rate Selection definitions (BZ#23783)
    
    This patch consolidates the termios symbolic constants used for baud rates
    selection used along with speed_t on its own header.  The Linux generic
    implementation values match the kernel UAPI and each architecture with
    deviate values have their own implementation (in this case alpha and
    powerpc).
    
    No semantic change is expected, checked on a build against x86_64-linux-gnu,
    alpha-linux-gnu, mips64-linux-gnu, and sparc64-linux-gnu.
    
    	[BZ #23783]
    	* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
    	termios-baud.h.
    	* sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
    	* sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
    	* sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
    	* sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
    	* sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
    	B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
    	B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
    	__MAX_BAUD): Move to termios-baud.h.
    	[__USE_MISC] (CBAUD, CBAUDEX): Likewise.
    	* sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7b832018881cbc860c70b7a768dae9cfb7b55663

commit 7b832018881cbc860c70b7a768dae9cfb7b55663
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Oct 9 11:56:06 2018 -0300

    termios: Consolidate Output Modes definitions
    
    This patch consolidates the termios symbolic constants used for ouput
    modes with c_oflag member on its own header.  The Linux generic implementation
    values match the kernel UAPI and each architecture with deviate values
    have their own implementation (in this case alpha, powerpc, and sparc).
    
    No semantic change is expected, checked on a build against x86_64-linux-gnu,
    alpha-linux-gnu, mips64-linux-gnu, and sparc64-linux-gnu.
    
    	* sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
    	termios-c_oflag.h.
    	* sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
    	* sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
    	* sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
    	* sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
    	* sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
    	ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1):  Move to
    	termios-c_oflag.h.
    	[__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
    	CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
    	FFR1): Likewise.
    	[USE_MISC] (XTABS): Likewise.
    	* sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3127003e756f3202462a11d8e5bd2b994b056c91

commit 3127003e756f3202462a11d8e5bd2b994b056c91
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Oct 9 11:02:40 2018 -0300

    termios: Consolidate Input Modes definitions.
    
    This patch consolidates the termios symbolic constants used for input
    modes with c_iflag member on its own header.  The Linux generic implementation
    values match the kernel UAPI and each architecture with deviate values
    have their own implementation (in this case alpha and powerpc).
    
    No semantic change is expected, checked on a build against x86_64-linux-gnu,
    alpha-linux-gnu, mips64-linux-gnu, and sparc64-linux-gnu.
    
    	* sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
    	termios-c_iflag.h.
    	* sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
    	* sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
    	* sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
    	* sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
    	INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
    	IUTF8): Move to termios-c_iflag.h.
    	* sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=48c1dd963233930f55c48fe3f38ce6c2362fc373

commit 48c1dd963233930f55c48fe3f38ce6c2362fc373
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Oct 9 10:26:14 2018 -0300

    termios: Consolidate termios c_cc symbolic constants
    
    This patch consolidates the termios symbolic constants used as subscript
    for the array c_cc on its own header.  The Linux generic implementation
    values match the kernel UAPI and each architecture with deviate values
    have their own implementation (in this case alpha, mips64, sparc64, and
    powerpc).
    
    No semantic change is expected, checked on a build against x86_64-linux-gnu,
    alpha-linux-gnu, mips64-linux-gnu, and sparc64-linux-gnu.
    
    	* sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
    	termios-cc.h.
    	* sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
    	* sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
    	* sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
    	* sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
    	* sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
    	* sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
    	VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
    	VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
    	* sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
    	* sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e5a50db36eaa6e8c6427b3a971563240b633ca85

commit e5a50db36eaa6e8c6427b3a971563240b633ca85
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Oct 9 10:00:14 2018 -0300

    termios: Consolidate struct termios
    
    This patch consolidates the struct termios definition on its own header
    and adds arch-defined ones for ABIs that deviate from generic
    implementation. They are:
    
      - alpha which has a slight different layout than generic one (c_cc
        field is defined prior c_line).
    
      - sparc and mips which do not have the c_ispeed/c_ospeed fields.
    
    No semantic change is expected, checked on a build against x86_64-linux-gnu,
    alpha-linux-gnu, mips64-linux-gnu, and sparc64-linux-gnu.
    
    	* sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
    	* sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
    	* sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
    	* sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
    	* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
    	termios-struct.h.
    	* sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
    	termios-struct.h.
    	* sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
    	Likewise.
    	* sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
    	Likewise.
    	* sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
    	Likewise.
    	* sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
    	Likewise.
    	* sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
    	_HAVE_C_OSPEED): Define.
    	* sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
    	_HAVE_C_OSPEED): Likewise.
    	* sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
    	_HAVE_C_OSPEED): Likewise.
    	* sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
    	(cfsetospeed): Check for define value instead of existence.
    	[_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
    	* sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
    	&& _HAVE_C_ISPEED] (__tcgetattr): Likewise.
    	* sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
    	&& _HAVE_C_ISPEED] (__tcsetattr): Likewise.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8083afa55d8c68abc02902e9a6ff16be5f301940

commit 8083afa55d8c68abc02902e9a6ff16be5f301940
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Mon Oct 8 17:51:32 2018 -0300

    termios: Define TIOCSER_TEMT with __USE_MISC (BZ#17783)
    
    This patch defines TIOCSER_TEMT on all architectures using the __USE_MISC
    guards similar to BZ#17782 fix.  Latest Linux UAPI defines TIOCSER_TEMT
    with the same value for all architectures, so it is safe to use the value
    as default for all ABIs.
    
    Checked on x86_64linux-gnu and build against sparc64-linux-gnu and
    powerpc64le-linux-gnu.
    
    	[BZ #17783]
    	* sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
    	Define.
    	* sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
    	(TIOCSER_TEMT): Likewise.
    	* sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
    	(TEOCSER_TEMT): Likewise.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                          |  166 ++++++++++++
 sysdeps/unix/sysv/linux/Makefile                   |    7 +-
 sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h  |   46 ++++
 sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h  |   40 +++
 .../unix/sysv/linux/alpha/bits/termios-c_cflag.h   |   35 +++
 .../unix/sysv/linux/alpha/bits/termios-c_iflag.h   |   38 +++
 .../unix/sysv/linux/alpha/bits/termios-c_lflag.h   |   42 +++
 .../unix/sysv/linux/alpha/bits/termios-c_oflag.h   |   66 +++++
 .../unix/sysv/linux/alpha/bits/termios-struct.h    |   37 +++
 sysdeps/unix/sysv/linux/alpha/bits/termios.h       |  223 ----------------
 sysdeps/unix/sysv/linux/bits/termios-baud.h        |   48 ++++
 sysdeps/unix/sysv/linux/bits/termios-c_cc.h        |   40 +++
 sysdeps/unix/sysv/linux/bits/termios-c_cflag.h     |   34 +++
 sysdeps/unix/sysv/linux/bits/termios-c_iflag.h     |   40 +++
 sysdeps/unix/sysv/linux/bits/termios-c_lflag.h     |   58 ++++
 sysdeps/unix/sysv/linux/bits/termios-c_oflag.h     |   61 +++++
 sysdeps/unix/sysv/linux/bits/termios-misc.h        |   21 ++
 sysdeps/unix/sysv/linux/bits/termios-struct.h      |   36 +++
 sysdeps/unix/sysv/linux/bits/termios-tcflow.h      |   26 ++
 sysdeps/unix/sysv/linux/bits/termios.h             |  167 +-----------
 sysdeps/unix/sysv/linux/kernel_termios.h           |    3 +
 sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h   |   43 +++
 .../unix/sysv/linux/mips/bits/termios-c_lflag.h    |   46 ++++
 sysdeps/unix/sysv/linux/mips/bits/termios-struct.h |   34 +++
 sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h |   26 ++
 sysdeps/unix/sysv/linux/mips/bits/termios.h        |  222 ----------------
 sysdeps/unix/sysv/linux/mips/kernel_termios.h      |    3 +
 .../unix/sysv/linux/powerpc/bits/termios-baud.h    |   45 ++++
 .../unix/sysv/linux/powerpc/bits/termios-c_cc.h    |   41 +++
 .../unix/sysv/linux/powerpc/bits/termios-c_cflag.h |   35 +++
 .../unix/sysv/linux/powerpc/bits/termios-c_iflag.h |   38 +++
 .../unix/sysv/linux/powerpc/bits/termios-c_lflag.h |   45 ++++
 .../unix/sysv/linux/powerpc/bits/termios-c_oflag.h |   65 +++++
 .../unix/sysv/linux/powerpc/bits/termios-misc.h    |   72 +++++
 sysdeps/unix/sysv/linux/powerpc/bits/termios.h     |  279 --------------------
 sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h  |   46 ++++
 sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h  |   43 +++
 .../unix/sysv/linux/sparc/bits/termios-c_oflag.h   |   64 +++++
 .../unix/sysv/linux/sparc/bits/termios-struct.h    |   34 +++
 sysdeps/unix/sysv/linux/sparc/bits/termios.h       |  225 ----------------
 sysdeps/unix/sysv/linux/sparc/kernel_termios.h     |    3 +
 sysdeps/unix/sysv/linux/speed.c                    |    4 +-
 sysdeps/unix/sysv/linux/tcgetattr.c                |    8 +-
 sysdeps/unix/sysv/linux/tcsetattr.c                |    4 +-
 44 files changed, 1546 insertions(+), 1113 deletions(-)
 create mode 100644 sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h
 create mode 100644 sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h
 create mode 100644 sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h
 create mode 100644 sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h
 create mode 100644 sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h
 create mode 100644 sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h
 create mode 100644 sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h
 delete mode 100644 sysdeps/unix/sysv/linux/alpha/bits/termios.h
 create mode 100644 sysdeps/unix/sysv/linux/bits/termios-baud.h
 create mode 100644 sysdeps/unix/sysv/linux/bits/termios-c_cc.h
 create mode 100644 sysdeps/unix/sysv/linux/bits/termios-c_cflag.h
 create mode 100644 sysdeps/unix/sysv/linux/bits/termios-c_iflag.h
 create mode 100644 sysdeps/unix/sysv/linux/bits/termios-c_lflag.h
 create mode 100644 sysdeps/unix/sysv/linux/bits/termios-c_oflag.h
 create mode 100644 sysdeps/unix/sysv/linux/bits/termios-misc.h
 create mode 100644 sysdeps/unix/sysv/linux/bits/termios-struct.h
 create mode 100644 sysdeps/unix/sysv/linux/bits/termios-tcflow.h
 create mode 100644 sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h
 create mode 100644 sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h
 create mode 100644 sysdeps/unix/sysv/linux/mips/bits/termios-struct.h
 create mode 100644 sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h
 delete mode 100644 sysdeps/unix/sysv/linux/mips/bits/termios.h
 create mode 100644 sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h
 create mode 100644 sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h
 create mode 100644 sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h
 create mode 100644 sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h
 create mode 100644 sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h
 create mode 100644 sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h
 create mode 100644 sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h
 delete mode 100644 sysdeps/unix/sysv/linux/powerpc/bits/termios.h
 create mode 100644 sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h
 create mode 100644 sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h
 create mode 100644 sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h
 create mode 100644 sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h
 delete mode 100644 sysdeps/unix/sysv/linux/sparc/bits/termios.h
Comment 3 Adhemerval Zanella 2019-01-03 13:40:34 UTC
Fixed on 2.29 (commit 8083afa55d).