Define XTABS to TAB3 on alpha to match Linux 4.16

Message ID alpine.DEB.2.20.1804201603210.14779@digraph.polyomino.org.uk
State New, archived
Headers

Commit Message

Joseph Myers April 20, 2018, 4:03 p.m. UTC
  This patch makes the alpha bits/termios.h define XTABS to TAB3, so
matching a change made in Linux 4.16 as well as matching other
architectures where the values are already equal.

Tested with build-many-glibcs.py for alpha-linux-gnu.

2018-04-20  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
	(XTABS): Define to TAB3.
  

Comments

Dmitry V. Levin April 20, 2018, 5:47 p.m. UTC | #1
On Fri, Apr 20, 2018 at 04:03:38PM +0000, Joseph Myers wrote:
> This patch makes the alpha bits/termios.h define XTABS to TAB3, so
> matching a change made in Linux 4.16 as well as matching other
> architectures where the values are already equal.
> 
> Tested with build-many-glibcs.py for alpha-linux-gnu.
> 
> 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
> 
> 	* sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
> 	(XTABS): Define to TAB3.
> 
> diff --git a/sysdeps/unix/sysv/linux/alpha/bits/termios.h b/sysdeps/unix/sysv/linux/alpha/bits/termios.h
> index 7bf8bfe..24423e8 100644
> --- a/sysdeps/unix/sysv/linux/alpha/bits/termios.h
> +++ b/sysdeps/unix/sysv/linux/alpha/bits/termios.h
> @@ -117,7 +117,7 @@ struct termios
>  #define   VT1	00200000
>  
>  #ifdef __USE_MISC
> -# define XTABS	01000000 /* Hmm.. Linux/i386 considers this part of TABDLY.. */
> +# define XTABS	TAB3
>  #endif
>  
>  /* c_cflag bit meaning */

Yes, this is correct.
  

Patch

diff --git a/sysdeps/unix/sysv/linux/alpha/bits/termios.h b/sysdeps/unix/sysv/linux/alpha/bits/termios.h
index 7bf8bfe..24423e8 100644
--- a/sysdeps/unix/sysv/linux/alpha/bits/termios.h
+++ b/sysdeps/unix/sysv/linux/alpha/bits/termios.h
@@ -117,7 +117,7 @@  struct termios
 #define   VT1	00200000
 
 #ifdef __USE_MISC
-# define XTABS	01000000 /* Hmm.. Linux/i386 considers this part of TABDLY.. */
+# define XTABS	TAB3
 #endif
 
 /* c_cflag bit meaning */