From patchwork Mon Dec 7 20:30:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 9926 X-Patchwork-Delegate: rth@twiddle.net Received: (qmail 57948 invoked by alias); 7 Dec 2015 20:30:23 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 57937 invoked by uid 89); 7 Dec 2015 20:30:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: hall.aurel32.net From: Aurelien Jarno To: libc-alpha@sourceware.org Cc: Richard Henderson , Aurelien Jarno Subject: [PATCH] alpha: fix visibility issues in termios.h Date: Mon, 7 Dec 2015 21:30:16 +0100 Message-Id: <1449520216-7354-1-git-send-email-aurelien@aurel32.net> Fix IXANY, IUCLC, IMAXBEL, IUTF8 visibility for alpha. This was missed 14 years ago when the same change has been done for other architectures. Fix NL2, NL3 visibility for alpha. This fixes the following conformance failures: FAIL: conform/POSIX2008/termios.h/conform FAIL: conform/UNIX98/termios.h/conform --- ChangeLog | 6 ++++++ sysdeps/unix/sysv/linux/alpha/bits/termios.h | 17 ++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 379ba75..7be1eb1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-12-07 Aurelien Jarno + + * sysdeps/unix/sysv/linux/alpha/bits/termios.h (IXANY, IUCLC, + IMAXBEL, IUTF8): Make always visible since they're needed by POSIX. + (NL2, NL3): Guard BSD terminal modes definitions with [__USE_MISC]. + 2015-12-04 Paul Eggert Fix typo in strncat, wcsncat manual entries diff --git a/sysdeps/unix/sysv/linux/alpha/bits/termios.h b/sysdeps/unix/sysv/linux/alpha/bits/termios.h index b862fb4..45eea17 100644 --- a/sysdeps/unix/sysv/linux/alpha/bits/termios.h +++ b/sysdeps/unix/sysv/linux/alpha/bits/termios.h @@ -70,13 +70,10 @@ struct termios #define ICRNL 0000400 #define IXON 0001000 #define IXOFF 0002000 -#ifdef __USE_MISC - /* POSIX.1 doesn't want these... */ -# define IXANY 0004000 -# define IUCLC 0010000 -# define IMAXBEL 0020000 -# define IUTF8 0040000 -#endif +#define IXANY 0004000 +#define IUCLC 0010000 +#define IMAXBEL 0020000 +#define IUTF8 0040000 /* c_oflag bits */ #define OPOST 0000001 @@ -93,8 +90,10 @@ struct termios # define NLDLY 00001400 # define NL0 00000000 # define NL1 00000400 -# define NL2 00001000 -# define NL3 00001400 +# if defined __USE_MISC +# define NL2 00001000 +# define NL3 00001400 +# endif # define TABDLY 00006000 # define TAB0 00000000 # define TAB1 00002000